| 246 | | * row is updated when ipptoPSPS is run. At that time the calibration data is updated with the resulting values and the state is changed to reflect the PSPS export. |
| 247 | | |
| 248 | | |
| 249 | | |
| | 249 | * row is updated when ipptoPSPS is run. At that time the calibration data is updated with the resulting values and the state columns are changed to reflect the PSPS export. state => active |
| | 250 | |
| | 251 | Separating the state into two steps allows the results of the re-processing to be made available prior to |
| | 252 | PSPS injest if the user requests data from the corresponding release. The data will not be the "default" for |
| | 253 | the given exposure until the calibration is complete at the time of PSPS ingest. |
| | 254 | |
| | 255 | ==== DVO Release ==== |
| | 256 | This schema allows (but does not require) the contents of DVO releases to be recorded. This would allow users |
| | 257 | of the DVO catalog to refer explicitly to a given set of pixels and calibration. |
| | 258 | |
| | 259 | == Released Skycell == |
| | 260 | The concepts for sky cells are similar to individual exposures. A row in the table refers to a particular |
| | 261 | release and (tess_id, skycell_id). |
| | 262 | |
| | 263 | Here is the proposed table definition |
| | 264 | |
| | 265 | {{{ |
| | 266 | REATE TABLE relSkycell ( |
| | 267 | relstack_id BIGINT AUTO_INCREMENT, |
| | 268 | rel_id BIGINT, |
| | 269 | skycell_id varchar(64) |
| | 270 | tess_id varchar(64) |
| | 271 | state VARCHAR(16), -- current, pending, archive, drop |
| | 272 | data_state VARCHAR(16), -- nightly, relphot, relastro, psps |
| | 273 | skycal_id BIGINT, -- link to the run that supplied the data |
| | 274 | -- for this release. |
| | 275 | -- NOTE: it is the skycal_id that we save, |
| | 276 | -- not the stack_id |
| | 277 | add_id BIGINT, |
| | 278 | zpt_obs FLOAT, -- calibrated zero point for this release of |
| | 279 | -- this skycell |
| | 280 | zpt_stdev FLOAT, |
| | 281 | path_base VARCHAR(255), -- path_base of any supporting files, |
| | 282 | -- updated WCS for example, |
| | 283 | -- we may just build a new cmf |
| | 284 | flags UNSIGNED INT, |
| | 285 | registered DATETIME, |
| | 286 | time_stamp DATETIME, |
| | 287 | PRIMARY KEY (rel_id), |
| | 288 | KEY (rel_id, tess_id, skycell_id), -- NOTE: no foreign key constraint |
| | 289 | -- becase we don't reference the |
| | 290 | -- stack directly. Insert query should |
| | 291 | -- enforce match. |
| | 292 | FOREIGN KEY(rel_id) REFERENCES ippRelease(rel_id), |
| | 293 | FOREIGN KEY(skycal_id) REFERENCES skycalRun(skycal_id), |
| | 294 | FOREIGN KEY(add_id) REFERENCES addRun(add_id) |
| | 295 | ) ENGINE=innodb DEFAULT CHARASET=latin1; |
| | 296 | }}} |
| | 297 | |
| | 298 | Note that the skycell is defined by the id of the sky calibration run, not the stack_id. The idea |
| | 299 | is that processing for the stack is not complete until stack photometry and sky calibration is performed. |
| | 300 | |
| | 301 | XXX: What about nightly science stacks? We don't do photometry and calibration on them currently and it's not |
| | 302 | clear if the results of those stages are necessary. Now those data *are* easily findable in the current |
| | 303 | system because the label is not changed. I.E. MD09 nightly stack from 2012-09-06 can be found from data_group |
| | 304 | MD09.20120906 or by selection by MJD-OBS. |
| | 305 | |