obiwan.qa.unique_ccds_dr3

Searches a DataRelase like directory for all legacysurvey*ccd.fits files, creates a no-duplicate set of all CCDs included in that DR, and writes the list to disk.

Used to create the list of CCDs that DR3 processed. Adn the list that eboss processed for DR3-era target selection, which is a superset of the CCDs that DR3 processed

Functions

final_expids(outdir)
mpi_expids_per_bri([nproc, data_dir, outdir]) Use MPI because there are so many legacysurvey*ccds.fits table in a DR
surveyccds_cut_to_expids(expid_npy_fn, …)
param expid_npy_fn:
 derived/ccds_unique.npy
obiwan.qa.unique_ccds_dr3.mpi_expids_per_bri(nproc=1, data_dir='./', outdir='./')[source]

Use MPI because there are so many legacysurvey*ccds.fits table in a DR

Parameters:
  • nproc – > 1 for mpi4py
  • bricks – list of bricks
obiwan.qa.unique_ccds_dr3.surveyccds_cut_to_expids(expid_npy_fn, survey_ccds_fn)[source]
Parameters:
  • expid_npy_fn – derived/ccds_unique.npy
  • survey_ccds_fn – legacysurveydir_dr5/survey-ccds-legacypipe_wgain.fits.gz