From bc46ba336b2c4d5c03fb702dbeaf8f7211752b21 Mon Sep 17 00:00:00 2001 From: John Parejko Date: Thu, 14 Nov 2024 12:14:39 -0800 Subject: [PATCH] Add nodata flags to apdb and imsim schemas --- python/lsst/sdm_schemas/schemas/apdb.yaml | 12 +++++++++++- python/lsst/sdm_schemas/schemas/imsim.yaml | 11 ++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/python/lsst/sdm_schemas/schemas/apdb.yaml b/python/lsst/sdm_schemas/schemas/apdb.yaml index 41aa3cf9..2ef95d9e 100644 --- a/python/lsst/sdm_schemas/schemas/apdb.yaml +++ b/python/lsst/sdm_schemas/schemas/apdb.yaml @@ -2051,7 +2051,17 @@ tables: - name: pixelFlags_edge "@id": "#DiaSource.pixelFlags_edge" datatype: boolean - description: Some of the source footprint is outside usable exposure region (masked EDGE or NO_DATA, or centroid off image). + description: Some of the source footprint is outside usable exposure region (masked EDGE or centroid off image). + fits:tunit: + - name: pixelFlags_nodata + "@id": "#DiaSource.pixelFlags_nodata" + datatype: boolean + description: NO_DATA pixel in the source footprint. + fits:tunit: + - name: pixelFlags_nodataCenter + "@id": "#DiaSource.pixelFlags_nodataCenter" + datatype: boolean + description: NO_DATA pixel in the 3x3 region around the centroid. fits:tunit: - name: pixelFlags_interpolated "@id": "#DiaSource.pixelFlags_interpolated" diff --git a/python/lsst/sdm_schemas/schemas/imsim.yaml b/python/lsst/sdm_schemas/schemas/imsim.yaml index 3d48c67c..be33f4dc 100644 --- a/python/lsst/sdm_schemas/schemas/imsim.yaml +++ b/python/lsst/sdm_schemas/schemas/imsim.yaml @@ -7868,8 +7868,17 @@ tables: - name: pixelFlags_edge "@id": "#DiaSource.pixelFlags_edge" datatype: boolean - description: Some of the source footprint is outside usable exposure region (masked EDGE or NO_DATA, or centroid off image). + description: Some of the source footprint is outside usable exposure region (masked EDGE or centroid off image). fits:tunit: + - name: pixelFlags_nodata + "@id": "#DiaSource.pixelFlags_nodata" + datatype: boolean + description: NO_DATA pixel in the source footprint. + fits:tunit: + - name: pixelFlags_nodataCenter + "@id": "#DiaSource.pixelFlags_nodataCenter" + datatype: boolean + description: NO_DATA pixel in the 3x3 region around the centroid. - name: pixelFlags_interpolated "@id": "#DiaSource.pixelFlags_interpolated" datatype: boolean