Closed moeyensj closed 2 years ago
Additional commit now adds support for metadata fields in index_observations.py
. The usage is as follows:
python index_observations.py /mnt/data/projects/thor/thor_data/nsc/preprocessed /mnt/data/projects/precovery/precovery_data/nsc/precovery_month_db_32_test NSC_DR2 --nside 32 --dataset_name "NOIRLab Source Catalog (DR2)" --reference_doi https://doi.org/10.3847/1538-3881/abd6e1 --documentation_url https://datalab.noirlab.edu/nscdr2/index.php --sia_url https://datalab.noirlab.edu/sia/nsc_dr2
This PR adds a dataset_id column to the frames table:
This column is also extended to the
PrecoveryCandidate
andFrameCandidate
classes allowing the user to know from which dataset the observation actually came which will be useful as we start indexing more data.A datasets table that is designed to track metadata for the input dataset is also added. All quantities except the
id
are optional and nullable.If we merge this PR, existing indexed observation databases will need to be updated with the new column and table. This can be accomplished with the following snippet: