-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forced photometry doesn't take into account 0 values in the noise and background maps #312
Comments
I hadn't encountered this. I think filling with nan is good. I can do that later today. |
However, the data may be entirely valid even if the bg map is 0. is it better to set the values to NaN or to set them to e.g., 0 for the bg and the median noise value for the noise? |
OK, I think this is pushed to my version. And the |
Thanks @dlakaplan, these fixes solve the problems. |
* master: (126 commits) autoformat added css and js sourcemaps wrapped endpoints in a DRF ViewSet remove unused import Removed extra line Improved suppression and added user option made source query card collapsible fix reset query form button Now clears all fields and removes validation classes. rewrote sesame and coord validator API to use DRF use minified datatables-pipeline script Filtered out Astropy warnings Fixes for #298 and #312 fix migration file 0001_initial.py query form redesign, sesame resolver, coord validator Redesigned the source query form layout. Generalized the object name resolution to use Sesame via Astropy. Created an API endpoint for Sesame queries and coord validation. Upon successful Sesame name resolution, the coord input box is filled with the result. Upon failure, the exception message is shown to the user as a form validation error. 2-epoch metric query fields added but are disabled until PR #305 is merged. Closes #166. added new GET params to docstring Remove other branch changes Fixed measurement count display Fixed default no_forced value Changed JS9 overlay behaviour added currently working tests ... # Conflicts: # pipeline/management/commands/runpipeline.py
Current the forced photometry code doesn't seem to be taking into account the border of 0 values you get from the maps selavy produces (this can be in areas where there is image data present).
This causes divide by zero errors:
One simple fix is to mask these at the data load stage with NaN's so they are caught later on in the NaN check, what do you think @dlakaplan?
The text was updated successfully, but these errors were encountered: