Here are the steps used to put the 3PI.PV1 calibration info into the database on 2013-08-06

# dump Images.dat
ftlist columns=NAME,MCAL,DMCAL,SECZ,EXPTIME,TZERO,PHOTCO,FLAGS,UBERCAL_DIST /data/ipp060.0/gpc1/catdir/LAP.ThreePi.20120706.v2/Images.working.dat T > Images.working.txt


# loop over entries and select values for each exposure from the up to 60 rows in the images table
# Note this program has hardcoded values for the photcode information. A correct implementation would
# get the values from there.
perl extractinfo < Images.working.txt > 3pi.pv1.calibration.txt



# read that file and update the relExp entries
perl updatecalib 3pi.pv1.calibration.txt >& updatecalib.log

See also  http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/3pi.pv1.calibrationextraction

