- Timestamp:
- 09/05/21 07:13:17 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/hawc/processing/DiskToDB/write-calibration-query.sh
r20103 r20104 97 97 UPDATE DataOnDisk 98 98 SET DataOnDisk.calibration = 6 99 WHERE DataOnDisk.header != 0; 99 WHERE DataOnDisk.header != 0 100 AND NIGHT=${NIGHT} 101 AND Telescope=${TEL}; 100 102 101 103 CREATE TEMPORARY TABLE Calibration_tmp … … 205 207 UPDATE DataOnDisk 206 208 SET DataOnDisk.calibration = 0 207 WHERE DataOnDisk.header = 0; 209 WHERE DataOnDisk.header = 0 210 AND NIGHT=${NIGHT} 211 AND Telescope=${TEL}; 208 212 209 213 -- Set Status to 2 if there was no drs file with step = 1 in the NIGHT 210 214 UPDATE DataOnDisk 211 215 SET DataOnDisk.calibration = 2 212 WHERE EXISTS(SELECT * FROM Calibration WHERE NIGHT=${NIGHT}) = 0; 216 WHERE EXISTS( 217 SELECT * FROM Calibration 218 WHERE NIGHT=${NIGHT} 219 AND Telescope=${TEL} 220 ) = 0; 213 221 "\ >> ${OUTPUT}
Note:
See TracChangeset
for help on using the changeset viewer.