-
Notifications
You must be signed in to change notification settings - Fork 24
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
Fix spectra coaddition and cosmic masking #2377
Commits on Sep 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6561cc4 - Browse repository at this point
Copy the full SHA 6561cc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for d911f70 - Browse repository at this point
Copy the full SHA d911f70View commit details
Commits on Sep 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a3abe0c - Browse repository at this point
Copy the full SHA a3abe0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 491840a - Browse repository at this point
Copy the full SHA 491840aView commit details
Commits on Sep 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6207f1c - Browse repository at this point
Copy the full SHA 6207f1cView commit details -
add an advanced test that checks the that relationship between
extracted spectrum S and true spectrum S = R * M where R is resolution matrix is preserved exactly after the coadd
Configuration menu - View commit details
-
Copy full SHA for ca818df - Browse repository at this point
Copy the full SHA ca818dfView commit details
Commits on Sep 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 39089e6 - Browse repository at this point
Copy the full SHA 39089e6View commit details -
and fix the bug with masked pixels uncovered by the test
Configuration menu - View commit details
-
Copy full SHA for b2f71bb - Browse repository at this point
Copy the full SHA b2f71bbView commit details
Commits on Sep 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 86dcd70 - Browse repository at this point
Copy the full SHA 86dcd70View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf3ff51 - Browse repository at this point
Copy the full SHA cf3ff51View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e6c013 - Browse repository at this point
Copy the full SHA 5e6c013View commit details -
further get rid of duplicated code
There was some divergence there already i.e. gradivar=1./gradvar vs gradivar = (gradvar>0)/(gradvar+(gradvar==0))
Configuration menu - View commit details
-
Copy full SHA for 5ba2743 - Browse repository at this point
Copy the full SHA 5ba2743View commit details
Commits on Sep 30, 2024
-
Stephen Bailey authored and Stephen Bailey committed
Sep 30, 2024 Configuration menu - View commit details
-
Copy full SHA for 176c7ca - Browse repository at this point
Copy the full SHA 176c7caView commit details
Commits on Oct 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4aae55b - Browse repository at this point
Copy the full SHA 4aae55bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ae2e569 - Browse repository at this point
Copy the full SHA ae2e569View commit details -
fix incorrect behaviour of coadd_cameras when mask is not present
The test case was also incorrect
Configuration menu - View commit details
-
Copy full SHA for 67962a7 - Browse repository at this point
Copy the full SHA 67962a7View commit details -
fix another bug in the coadd_cameras
When resolution matrices were added, the non-masked ivars were used. (this is kinda irrelevant with the oncoming fix, but important first step)
Configuration menu - View commit details
-
Copy full SHA for fc8abf2 - Browse repository at this point
Copy the full SHA fc8abf2View commit details -
fix coadd_cameras in a similar fashion to coadd()
Now it passes a similar dedicated test
Configuration menu - View commit details
-
Copy full SHA for 5fd5f47 - Browse repository at this point
Copy the full SHA 5fd5f47View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9409a3a - Browse repository at this point
Copy the full SHA 9409a3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 29e6d7b - Browse repository at this point
Copy the full SHA 29e6d7bView commit details -
fix the coadd_cameras recent changes
Also add a generic test of coadd_cameras validating the coadded matrix The currently added test cannot be fully enabled, (it was enabled with the threshold instead) because of what happens with edge pixels and how to interpret resolution matrix there
Configuration menu - View commit details
-
Copy full SHA for 1cd2542 - Browse repository at this point
Copy the full SHA 1cd2542View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c914f0 - Browse repository at this point
Copy the full SHA 1c914f0View commit details -
update the coadd_cameras test so it test the exact correctness
of the flux + resolution matrix. It now only exclude the pixels that are next to the arm edges
Configuration menu - View commit details
-
Copy full SHA for cfb8966 - Browse repository at this point
Copy the full SHA cfb8966View commit details -
simplify the logic in coadd() to avoid multiple
if mask is None instead set to the mask to zero if there is no one. this way we need just one code-path
Configuration menu - View commit details
-
Copy full SHA for 26895ff - Browse repository at this point
Copy the full SHA 26895ffView commit details -
produce correct resolution matrix even for pixels that are flagged
in all exposures Also move the resolution_weight into sepearate function
Configuration menu - View commit details
-
Copy full SHA for a308dab - Browse repository at this point
Copy the full SHA a308dabView commit details -
put common functionality in separate function
Make sure that if the combined ivar is zero from masked pixels we still get preserve the ivar and resolution matrix
Configuration menu - View commit details
-
Copy full SHA for 0d37f14 - Browse repository at this point
Copy the full SHA 0d37f14View commit details -
Configuration menu - View commit details
-
Copy full SHA for 526e298 - Browse repository at this point
Copy the full SHA 526e298View commit details
Commits on Oct 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a6a5d28 - Browse repository at this point
Copy the full SHA a6a5d28View commit details -
Configuration menu - View commit details
-
Copy full SHA for d947fb0 - Browse repository at this point
Copy the full SHA d947fb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0febb8 - Browse repository at this point
Copy the full SHA b0febb8View commit details -
if we are masking a cosmic using gradient we must mask both pixels
leading to large gradient Add a test of cosmics
Configuration menu - View commit details
-
Copy full SHA for 07683d9 - Browse repository at this point
Copy the full SHA 07683d9View commit details -
Stephen Bailey authored and Stephen Bailey committed
Oct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for dd74fc1 - Browse repository at this point
Copy the full SHA dd74fc1View commit details
Commits on Oct 3, 2024
-
correctly deal with masked pixels when coadd()'ing
i.e. the only way to get mask=0 in a pixel must be to have at least one mask=0 pixel in the stack
Configuration menu - View commit details
-
Copy full SHA for b7396fa - Browse repository at this point
Copy the full SHA b7396faView commit details -
Stephen Bailey authored and Stephen Bailey committed
Oct 3, 2024 Configuration menu - View commit details
-
Copy full SHA for 49ab8b5 - Browse repository at this point
Copy the full SHA 49ab8b5View commit details -
Merge branch 'resol_fix' of https://github.com/desihub/desispec into …
…resol_fix
Stephen Bailey authored and Stephen Bailey committedOct 3, 2024 Configuration menu - View commit details
-
Copy full SHA for 5848546 - Browse repository at this point
Copy the full SHA 5848546View commit details -
Configuration menu - View commit details
-
Copy full SHA for f8163c8 - Browse repository at this point
Copy the full SHA f8163c8View commit details -
Merge branch 'resol_fix' of https://github.com/desihub/desispec into …
…resol_fix
Stephen Bailey authored and Stephen Bailey committedOct 3, 2024 Configuration menu - View commit details
-
Copy full SHA for f149fe0 - Browse repository at this point
Copy the full SHA f149fe0View commit details -
Configuration menu - View commit details
-
Copy full SHA for d9062cc - Browse repository at this point
Copy the full SHA d9062ccView commit details -
Merge branch 'resol_fix' of https://github.com/desihub/desispec into …
…resol_fix
Stephen Bailey authored and Stephen Bailey committedOct 3, 2024 Configuration menu - View commit details
-
Copy full SHA for 01eee32 - Browse repository at this point
Copy the full SHA 01eee32View commit details -
Stephen Bailey authored and Stephen Bailey committed
Oct 3, 2024 Configuration menu - View commit details
-
Copy full SHA for ac1b9c1 - Browse repository at this point
Copy the full SHA ac1b9c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c2f367 - Browse repository at this point
Copy the full SHA 8c2f367View commit details -
Configuration menu - View commit details
-
Copy full SHA for 388dee4 - Browse repository at this point
Copy the full SHA 388dee4View commit details -
fix the bug in the original implementation and the new
one when the comismic maskign would mask completely unrelated pixels when one of the spectra in the set is fully masked
Configuration menu - View commit details
-
Copy full SHA for 7031fb8 - Browse repository at this point
Copy the full SHA 7031fb8View commit details -
Add camera option to mask_cosmics for printing Also put the check for the minimum number of spectra needed for cosmic masking inside the function to avoid having it in two places
Configuration menu - View commit details
-
Copy full SHA for 78acd70 - Browse repository at this point
Copy the full SHA 78acd70View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7bc6b68 - Browse repository at this point
Copy the full SHA 7bc6b68View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6382c00 - Browse repository at this point
Copy the full SHA 6382c00View commit details -
add a final test of the coadd_cameras with cosmics
(motivated by desire of having all the lines of coadd()/coadd_cameras() test-covered)
Configuration menu - View commit details
-
Copy full SHA for 5b2056e - Browse repository at this point
Copy the full SHA 5b2056eView commit details -
Move the chi2 threshold into a function also get rid of harcoded value of 3 for min_cosmic rejection
Configuration menu - View commit details
-
Copy full SHA for 3d17312 - Browse repository at this point
Copy the full SHA 3d17312View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b2b5ab - Browse repository at this point
Copy the full SHA 7b2b5abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 84e1183 - Browse repository at this point
Copy the full SHA 84e1183View commit details -
put some protection against coadding of spectra that
deviate clearly more than prescribed by variance vector. In that case I ignore the chi^2 stats and just try to empirically estimate the threshold. It will never work particularly well, but it is better than doing what we are doing
Configuration menu - View commit details
-
Copy full SHA for 0ffcc4a - Browse repository at this point
Copy the full SHA 0ffcc4aView commit details
Commits on Oct 4, 2024
-
make a much cleaner interface for mask_cosmics as it does not need to get all the spectra + indices + mask Now it will just accept the spectra that needs masking and it will return the boolean mask of cosmics. That will also make it easier to store that information in the future
Configuration menu - View commit details
-
Copy full SHA for 987d359 - Browse repository at this point
Copy the full SHA 987d359View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c08364 - Browse repository at this point
Copy the full SHA 4c08364View commit details -
Stephen Bailey authored and Stephen Bailey committed
Oct 4, 2024 Configuration menu - View commit details
-
Copy full SHA for d8811d7 - Browse repository at this point
Copy the full SHA d8811d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4d7d01 - Browse repository at this point
Copy the full SHA c4d7d01View commit details -
resolve whitespace merge conflict
Stephen Bailey authored and Stephen Bailey committedOct 4, 2024 Configuration menu - View commit details
-
Copy full SHA for 4d67246 - Browse repository at this point
Copy the full SHA 4d67246View commit details -
Configuration menu - View commit details
-
Copy full SHA for a161a7d - Browse repository at this point
Copy the full SHA a161a7dView commit details -
Merge branch 'resol_fix' of https://github.com/desihub/desispec into …
…resol_fix
Stephen Bailey authored and Stephen Bailey committedOct 4, 2024 Configuration menu - View commit details
-
Copy full SHA for 1ae5f61 - Browse repository at this point
Copy the full SHA 1ae5f61View commit details
Commits on Oct 5, 2024
-
docstring formatting and whitespace
Stephen Bailey authored and Stephen Bailey committedOct 5, 2024 Configuration menu - View commit details
-
Copy full SHA for f3bc12b - Browse repository at this point
Copy the full SHA f3bc12bView commit details