From 528be8d250f5b6a43e94f62604ccca2d40ea633f Mon Sep 17 00:00:00 2001
From: fred3m <fred.moolekamp@gmail.com>
Date: Tue, 26 Sep 2023 08:45:18 -0700
Subject: [PATCH] Add coverage colunns to hsc schema.

---
 yml/hsc.yaml | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/yml/hsc.yaml b/yml/hsc.yaml
index 0e4b3844..183d1efa 100644
--- a/yml/hsc.yaml
+++ b/yml/hsc.yaml
@@ -28,6 +28,12 @@ tables:
     description: Fiducial ICRS Right Ascension of centroid used for database indexing
     mysql:datatype: DOUBLE
     fits:tunit: deg
+  - name: deblend_incompleteData
+    "@id": "#Object.deblend_incompleteData"
+    datatype: boolean
+    description: One or more bands were not deblended due to an inability to model the PSF.
+    mysql:datatype: BOOLEAN
+    fits:tunit:
   - name: deblend_nChild
     "@id": "#Object.deblend_nChild"
     datatype: int
@@ -1157,6 +1163,12 @@ tables:
     description: Position in ra/dec. Measured on g-band.
     mysql:datatype: DOUBLE
     fits:tunit: deg
+  - name: g_dataCoverage
+    "@id": "#Object.dataCoverage"
+    datatype: double
+    description: Fraction of data that contained good data, ie. 1 - number of no data pixels/total number of pixels in the g-band.
+    mysql:datatype: DOUBLE
+    fits:tunit:
   - name: i_ap03Flux
     "@id": "#Object.i_ap03Flux"
     datatype: double
@@ -2117,6 +2129,12 @@ tables:
     description: Position in ra/dec. Measured on i-band.
     mysql:datatype: DOUBLE
     fits:tunit: deg
+  - name: i_dataCoverage
+    "@id": "#Object.dataCoverage"
+    datatype: double
+    description: Fraction of data that contained good data, ie. 1 - number of no data pixels/total number of pixels in the i-band.
+    mysql:datatype: DOUBLE
+    fits:tunit:
   - name: r_ap03Flux
     "@id": "#Object.r_ap03Flux"
     datatype: double
@@ -3077,6 +3095,12 @@ tables:
     description: Position in ra/dec. Measured on r-band.
     mysql:datatype: DOUBLE
     fits:tunit: deg
+  - name: r_dataCoverage
+    "@id": "#Object.dataCoverage"
+    datatype: double
+    description: Fraction of data that contained good data, ie. 1 - number of no data pixels/total number of pixels in the r-band.
+    mysql:datatype: DOUBLE
+    fits:tunit:
   - name: y_ap03Flux
     "@id": "#Object.y_ap03Flux"
     datatype: double
@@ -4037,6 +4061,12 @@ tables:
     description: Position in ra/dec. Measured on y-band.
     mysql:datatype: DOUBLE
     fits:tunit: deg
+  - name: y_dataCoverage
+    "@id": "#Object.dataCoverage"
+    datatype: double
+    description: Fraction of data that contained good data, ie. 1 - number of no data pixels/total number of pixels in the y-band.
+    mysql:datatype: DOUBLE
+    fits:tunit:
   - name: z_ap03Flux
     "@id": "#Object.z_ap03Flux"
     datatype: double
@@ -4997,6 +5027,12 @@ tables:
     description: Position in ra/dec. Measured on z-band.
     mysql:datatype: DOUBLE
     fits:tunit: deg
+  - name: z_dataCoverage
+    "@id": "#Object.dataCoverage"
+    datatype: double
+    description: Fraction of data that contained good data, ie. 1 - number of no data pixels/total number of pixels in the z-band.
+    mysql:datatype: DOUBLE
+    fits:tunit:
 
 - name: Source
   "@id": "#Source"