Closed maho3 closed 3 days ago
Here are some plots showing that the new move_to_footprint
centers the simulation box over the survey footprint.
Simulation cuboid wrapping the survey volume, when it has been transformed to the origin.
Simulation box overlapping with the survey footprint in comoving space (without transformations).
This PR moves the code in cmass/survey/remap_cuboid.py into a helper function within cmass/survey/ngc_selection.py, for the reasons discussed in #40.
Changes:
rotate
function is replaced withmove_to_footprint
which applies a better rotation/translation operation to more evenly center the box on the survey footprintrandom_rotate_translate
option which allows you to augment the dataset by randomly moving the boxAll of the above has been validated in
matts_tests/test_remove_cuboid.py