Skip to content
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

Qsocat qn columns #144

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Qsocat qn columns #144

wants to merge 3 commits into from

Conversation

abrodze
Copy link
Member

@abrodze abrodze commented Nov 12, 2024

This PR updates the ZWARN column for QN-identified QSOs with new Redrock redshifts. Previously only the Z, ZERR columns were updated for these objects, meaning the ZWARN value was set from the initial Redrock run.

This PR follows desispec #2407, which extended the list of saved attributes from the QN informed redrock rerun to include ZWARN. Backward compatibility is maintained with the update_qn_zwarn argument.

I verified update_qn_zwarn=False and update_qn_zwarn=True give identical catalogs aside from the zwarn column in ~1%. Comparing to the existing healpix Loa catalog, I found changes for Z, ZERR, ZWARN. The Z/ZERR changes are limited to 1.4<z<1.6 where I believe we expect some shuffling from updates to the QN afterburner script.

Test catalog with default update_qn_zwarn=True here: /global/cfs/cdirs/desi/users/abrodze/test_qsocat/QSO_cat_loa_main_dark_healpix_test.fits

@dylanagreen please check that things look right.

Copy link
Contributor

@dylanagreen dylanagreen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the code I don't see anywhere that looks obviously incorrect. I think the code follows the same formatting already intrinsic in the file, given that I expect that this should run without any issues.

@@ -580,7 +603,8 @@ def build_qso_catalog_from_healpix(redux='/global/cfs/cdirs/desi/spectro/redux/'
* dir_output (str): directory where the QSO catalog will be saved.
* npool (int): nbr of workers used for the parallelisation.
* keep_qso_targets (bool): if True save only QSO targets. default=True
* keep_all (bool): if True return all the targets. if False return only targets which are selected as QSO. default=False
* keep_all (bool): if True return all the targets. if False return only targets which are selected as QSO. default=Falsei
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accidental spurious i char at the end of this line

@abrodze
Copy link
Member Author

abrodze commented Nov 12, 2024

I realized I checked this branch against loa v0 of the QSO catalogs, not v1. When making the correct comparison, only changes come from the ZWARN column for 1.4% of the catalog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants