WFPC2 Associations Maintenance

The WFPC2 Associations Maintenance consits of two sets of procedures:

  1. the Jitter Extraction Pipeline (JEP)
  2. and the Association Builder (AB)

Once in a while, after having received a new bunch of CD-ROMs from STScI, the archive operator submits an archive request to run the WFPC2 Associations Maintenance.

The submission takes place via a script that:

The ECF Request Handler picks up such request:

  1. rh_get retrieves the necessary jitter files (with the -O option to leave unchanged the file names preserving the gen_date_str in the file name)

  2. rh_proc runs (on each individual jitter pair) the jitter extraction script, which:

  3. rh_proc runs the script (overall action) which computes the associations (Association Builder).

Maintenace drivers
Driver (dads_received) Process which takes care of Process Acronym
New exposure New OMS Jitter Extraction Pipeline + Association Builder JEP + AB
Re-archived exposure New OMS Jitter Extraction Pipeline + Association Builder JEP + AB
Unchanged exposure Re-archived OMS Jitter Extraction Pipeline + Association Builder JEP + AB
Re-archived exposure Unchanged OMS SQL script (the jitter pipeline doesn't look at this kind of cases) SQL
Change in DB
(e.g., changed FILTER or EXPTIME)
CHDB script CHDB


What is triggering the (re)computation of an association ?

The association builder script shall run:

The association builder script will:


Which datasets have to be picked up by the association builder ?

Each of the three processes (JEP, SQL, CHDB) takes care of marking those datasets which have to undergo to a new run of the association builder script. The signalling is done using the "R" value in the jitter field of the dads_received table.


dads_received before
jittercurr
OMS " " "Y"
CAL Anything "Y"
dads_received before
jittercurr
OMS "Y" "Y"
CAL " " "Y"
dads_received before
jittercurr
OMS "Y" "Y"
CAL Anything "Y"
JEP
SQL
CHDB
dads_received after
jittercurr
OMS "Y" "Y"
CAL "R" "Y"
dads_received after
jittercurr
OMS "Y" "Y"
CAL "R" "Y"
dads_received after
jittercurr
OMS "Y" "Y"
CAL "R" "Y"


Jitter field value "R" for the archive_class=CAL means (Re)build the association for this dataset.

(Re)building Associations

Each of the datasets having the field jitter = "R" (in the table dads_received, for archive_class = CAL ) MUST be considered when (re)building the associations.

More precisely, due to the fact that an association is computed for all the datasets belonging to the same proposal, the association building procedure must run on all the pep_ids which those "R" datasets belong to.

Generation Dates

The gen_date_str field is not triggering the WFPC2 Maintenance pipeline. It will be used instead to trigger the Preview pipeline. The gen_date_str of the jitter file considered is entered in the jit_member table.

The gen_date_str (and the respective gen_date) of the CAL entry in dads_received is stored in the hst_association_members table.

The gen_date_str (and the respective gen_date) field computed as the maximum of all the gen_date_str of the members is stored in the hst_associations table.

What triggers the Preview pipeline ?

The Preview pipeline is driven by a change in the gen_date_str field of dads_received for the archive_class = CAL where dataset_name like "U%A" (OK Severin?)

The field gen_date_str (in dads_received) gets populated by the hstscience program by looking at the gen_date field of the hst_associations table.

The following table shows for each of the maintenance drivers:

The last line (Preview Pipeline) is used to identify if the Preview pipeline has to be run.

When is gen_date changing ?
Driver: OMS New OMS Re-Archived CAL Rearchived Change in the DB
Maintenance script: JEP+AB SQL CHDB
Possible cases: CAL New CAL Unchanged CAL New CAL Unchanged OMS
any
CAL Re-Archived CAL Unchanged
jit_member
gen_date:
New No sense New New any Already taken in consideration by SQL any
hst_association_members
gen_date:
New No sense New Unchanged New Unchanged
hst_associations
gen_date:
New No sense New Unchanged New Unchanged
Preview Pipeline: Run! - Run! !Re Run! Re Run! - No *

* Only the description of the association changes, not the data, nor the shifts


The gen_date in the hst_associations table is not able to trigger the execution of the Preview pipeline when a jitter file gets re-archived!

Solution

A new field is needed in the hst_associations table. This new field is the analogous of the preview field in dads_received.
Hence, let's call preview this new field.
The preview field will be set to blank by JP or by SQL whenever required.

hstscience will need to look at this new field!

Is this acceptable for you, CADC ???


Last update: 19 December 1997 amicol@eso.org