-
Notifications
You must be signed in to change notification settings - Fork 22
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
Target selection for the first MWS Stream Program (GD1) #814
Conversation
… match to Gaia DR3
… targeting bitmasks
…rgets and finalizing the output data array
… writing them to file
@segasai: There's a new version of the target file here:
It's very close, now, to your version:
Let me know if you think this is good enough to proceed. |
Thank you @geordie666 ! I think those numbers look good enough for me! |
I think I've now finished the code for the end-to-end process of adding the GD1 stream targets. Previously I had:
I've now also written code to add the new targets to the MTL ledgers. The overall process is as described in this thread on Slack. New targets are added to the secondary ledgers, and existing targets are merged with primary/secondary targets adopting the state of the highest-priority target. An example of how adding the new targets would look after running on the current MTL ledgers is here:
And an example of "merging" a new and old target is:
where the printed columns are:
I think I'm basically ready to merge and tag the code and process the new targets. Before I do that, though, we should finalize whether these are the correct priorities and numbers of observations for the GD1 stream targets: https://github.com/desihub/desitarget/blob/ADM-stream-MWS/py/desitarget/data/targetmask.yaml#L420-L422 |
This PR is now almost ready to merge. I'm waiting on exact priorities for the new target classes from the Milky Way Group, then I'll proceed. |
This PR adds code for the first MWS stream program (GD1). It builds on the work provided by @segasai's as part of Issue #812.
As a side-effort, this PR also updates any units that are written to files produced by
desitarget
to be FITS-compliant.This is still work in progress, but the code to create the actual target files is in place.
Remaining work before merging this PR includes:
gaia_zeropoint
mentioned in Issue Y4 Y5 MWS program selection #812.Possible additional work might include:
@segasai and/or @sazabi4. I posted this PR before completely finishing my implementation in the hope that you could check my working. Could you please:
/global/cfs/cdirs/desi/target/catalogs/streamcache/gd1-dr9-cache.fits
is in agreement with @segasai's database-derived cache./pscratch/sd/a/adamyers/dr9/2.7.0.dev5481/streamtargets/main/resolve/bright/streamtargets-gd1-bright.fits
seem reasonable. The different classes are stored as bit-masks in theSCND_TARGET
column, with the following interpretations:GD1_BRIGHT_PM
, bit-number2**55
, "Bright targets with Gaia in GD1 stream"GD1_FAINT_NO_PM
, bit-number2**56
, "Faint targets without Gaia in GD1 stream"GD1_FILLER
, bit-number2**57
, "Filler targets in GD1 stream"read_data()
function provided with Issue Y4 Y5 MWS program selection #812 produces ~113M sources. This is manageable, but large.