willclarkson / rubinCadenceScratchWIC

scratch repository to share prototype metrics relevant to 2021 Rubin Cadence Notes
MIT License
0 stars 2 forks source link

Refactor the delta mag methods inside the ebv3d object (readExtinctions.py) #11

Closed willclarkson closed 3 years ago

willclarkson commented 3 years ago

Currently the method that determines the closest distance to a particular delta-mag loads the extinction map each time it is run. This method should probably be refactored into the ebv3d object.

willclarkson commented 3 years ago

Some progress made: see new methods ebv3d.getDistanceAtMag(), ebv3d.showMollview() and testDeltamags(). Next up: updating the notebook 2021-04-06_tryExtinction3D.ipynb to use the refactored version (and also to load the map once and use it twice).

willclarkson commented 3 years ago

Implemented. See "Example 1.1" in 2021-04-06_tryExtinction3d.ipynb for example usage.