dnarayanan / powderday

powderday dust radiative transfer
BSD 3-Clause "New" or "Revised" License
22 stars 16 forks source link

Added remove_stars_outside_grid method for AMR grids #186

Closed anchwr closed 2 years ago

anchwr commented 2 years ago

Currently there's no remove_stars_outside_grid method in SED_gen.py for Enzo simulations. This causes powderday to crash with Enzo, so I've added a way to check the grid boundaries for AMR grids. The current method is pretty general and could probably be simplified if we were able to check it against a few different AMR simulations.

dnarayanan commented 2 years ago

thanks -- this looks great!