IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Version 7 and Version 8 of ippReleaseManagement


Ignore:
Timestamp:
Sep 20, 2012, 4:21:37 PM (14 years ago)
Author:
bills
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ippReleaseManagement

    v7 v8  
    237237
    238238=== Life cycle of a relExp ===
     239==== Nightly science ====
    239240We envision the following potential events in the history of a released exposure for the nightly science
    240241releases
    241242 * created during nightly science processing once the warp has been completed before the addRun is processed. State active.
    242  * updated to include the add_id of the addRun
    243 
    244 For a "GR" release
     243 * updated to include the add_id of the addRun
     244
     245==== Grand Reprocessing ====
     246For the grand reprocessing, the relExp goes through two states
     247
    245248 * row is created when addstar is performed. State set to pending.
    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
     251Separating the state into two steps allows the results of the re-processing to be made available prior to
     252PSPS injest if the user requests data from the corresponding release. The data will not be the "default" for
     253the given exposure until the calibration is complete at the time of PSPS ingest.
     254
     255==== DVO Release ====
     256This schema allows (but does not require) the contents of DVO releases to be recorded. This would allow users
     257of the DVO catalog to refer explicitly to a given set of pixels and calibration.
     258
     259== Released Skycell ==
     260The concepts for sky cells are similar to individual exposures. A row in the table refers to a particular
     261release and (tess_id, skycell_id).
     262
     263Here is the proposed table definition
     264
     265{{{
     266REATE 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
     298Note that the skycell is defined by the id of the sky calibration run, not the stack_id. The idea
     299is that processing for the stack is not complete until stack photometry and sky calibration is performed.
     300
     301XXX: What about nightly science stacks? We don't do photometry and calibration on them currently and it's not
     302clear if the results of those stages are necessary. Now those data *are* easily findable in the current
     303system because the label is not changed. I.E. MD09 nightly stack from 2012-09-06 can be found from data_group
     304MD09.20120906 or by selection by MJD-OBS.
     305