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
Reweight area estimation in QA plots to better reflect the imaging survey footprint #304
Conversation
…and executable (and test).
…XP information seems to be missing from the DR4 survey bricks file
This is an outstanding development, @geordie666, thank you! But can you please provide a couple examples of how you're calling the code differently? For example, it looks like I'm asking because I use your pixel weights in the spectral mocks code to determine the target density and the downsampling factor from the mocks... |
The mocks part of the code will still call the
but the real-imaging-data part of the code will call the imaging-based weights map, e.g., in
To make the weights map, follow the help message in the
To then use that weight map in the (real-imaging-data) QA pass it to the existing
That's the top-line information, at least, although it's nothing more than is in the help messages for those scripts. Let me know if you need more information. |
This PR creates the tools to better handle imaging survey areas for QA. It includes:
desitarget.imagefootprint
to build HEALPix weight maps of the imaging footprint.desitarget.io
to resample maps to any HEALPixnside
.desitarget.QA
to handle the new imaging area weight maps.The code was developed from an earlier script by Anand Raichoor. The main algorithm works by Monte Carlo sampling the Legacy Surveys coadd files for a given Data Release at the pixel-level. A large density of RA/Dec points are generated in order to determine the area-weighted fraction of locations that are in pixels that have one or more observations.
Generating 10million random points per sq. deg., the weight map can be produced at a rate of about 2500 bricks per minute across 32 processors on a single node on cori.
Here is a comparison of the DR4 QA plots before
and after
the adoption of the new imaging weights.