IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links
wiki:ippToPsps

Version 20 (modified by rhenders, 16 years ago) ( diff )

--

IPP to PSPS interface: ippToPsps

Links

Datastore test area for PSPS

Introduction

ippToPsps is the interface between IPP and PSPS. In short, ippToPsps creates FITS files from data found in IPP smf and cmf files, as well as relevant DVO databases, then publishes them to a datastore in the form of jobs. On the PSPS side, the DXLayer polls the datastore, collects jobs when they become available, then converts the contents to csv files before sending them on to special MSSQL loader software, which inserts them into the PSPS database. Ultimately there will be feedback from PSPS regarding errors in the received data, to which ippToPsps will need to respond.

It is intended that the binary tables in the FITS files generated by ippToPsps will match the PSPS database schemas perfectly, the consequence being that any alterations to the PSPS database schema will only affect ippToPsps code, and not the DXLayer. A certain amount of data validation will be performed by ippToPsps before publication.

Architecture

ippToPsps

ippToPsps is a C program within the IPP build. When given the correct arguments it will generate a single FITS for the specified product (above). The program is run from a perl script, which itself generates a list of exposure IDs based on arguments provided by the user (label etc). An instance of ippToPsps is run per exposure ID.

DXLayer

...

Loader

...

Products

ippToPsps creates three products.

  • Detections
  • Diffs
  • Stacks

Detections

Input

Input is one {{smf}} file for a given exposure and an associated DVO database from which to retrieve object, and other, IDs.

Output

A FITS output file is generated with the following extensions:

1 Primary extension

1 FrameMeta extension

1 ImageMeta extension per chip

1 Detection extension per chip

So, 122 extensions in all, included the obligatory primary header.

Validation

Some validation is performed to aid the data's insertion into the PSPS database.

Diffs

Input

A set of cmf files, one for each skycell covered by a particular exposure.

Output

A FITS output file is generated with the following extensions:

...

Validation

Unresolved fields

Below are tables detailing which fields in the PSPS FITS files are still not populated by ippToPsps.

Unresolved fields for camera stage ('detections')

FrameMeta

PSPS field PSPS type PSPS Description IPP source Comments
surveyID TINYINT survey flag identifier e.g. 3PI, M31, MD, STS - need common enum
filterID TINYINT filter identifier IPP uses string (g.00000). Need enum.
cameraID SMALLINT camera identifier set to 1?
cameraConfigID SMALLINT camera configuration identifier set to 0?
telescopeID SMALLINT telescope identifier set to 1?
analysisVer SMALLINT version number of analysis
p1Recip SMALLINT IPP phase 1 recipe ID
p2Recip SMALLINT IPP phase 2 recipe ID
p3Recip SMALLINT IPP phase 3 recipe ID
nP2Images SMALLINT number of OTA/CCD images in this P2 exposure always 60?
astroScat REAL global astrometric scatter have values per chip, but global?
photoScat REAL global photometric scatter
nAstRef INT number of astrometric reference sources have values per chip, but global?
nPhoRef INT number of photometric reference sources have values per chip, but global?
polyOrder TINYINT polynomial order of astrometry fit smf.phu.NPLYTERM?
calibModNum SMALLINT calibration modification number

ImageMeta

PSPS field PSPS type PSPS Description IPP source Comments
filterID TINYINT filter ID IPP uses string (g.00000). Need enum.
bias REAL detector bias level missing from smf
biasScat REAL scatter in bias level missing from smf
photoScat REAL photometric scatter for chip smf.phu.ZPT_OBS?
nPhoRef INT number of photometric reference sources smf.chip.NPSFSTAR? smf.chip.NSTARS?
psfFwhm REAL PSF full width at half maximum smf.chip.FWHM_MAJ?
psfModelID INT PSF model identifier missing from smf
psfExtra1 REAL PSF parameters missing from smf
psfExtra2 REAL PSF parameters missing from smf
detectorID SMALLINT identifier for actual CCD chip IPP uses string (CCID58-1-02a2). Need enum.
qaFlags INT Q/A flags PSPS needs two flag fields
detrend1 BIGINT identifier of detrend image 1 IPP uses strings, PSPS wants INTs
detrend2 BIGINT identifier of detrend image 2 IPP uses strings, PSPS wants INTs
detrend3 BIGINT identifier of detrend image 3 IPP uses strings, PSPS wants INTs
detrend4 BIGINT identifier of detrend image 4 IPP uses strings, PSPS wants INTs
detrend5 BIGINT identifier of detrend image 5 IPP uses strings, PSPS wants INTs
detrend6 BIGINT identifier of detrend image 6 IPP uses strings, PSPS wants INTs
detrend7 BIGINT identifier of detrend image 7 IPP uses strings, PSPS wants INTs
detrend8 BIGINT identifier of detrend image 8 IPP uses strings, PSPS wants INTs
photoZero REAL local derived photometric zero point smf.phu.ZPT_OBS?
polyOrder TINYINT polynomial order of astrometry fit smf.chip.NPLYTERM?
calibModNum SMALLINT calibration modification number set to 0?

Detection

PSPS field PSPS type PSPS Description IPP source Comments
filterID TINYINT filter ID: g=1, r=2, i=3, z=4, y=5, w=6, ... IPP uses string (g.00000). Need enum.
surveyID TINYINT survey flag identifier e.g. 3PI, M31, MD, STS - need common enum
psfLikelihood REAL PSF likelihood smf.psf.PSF_QF?
psfCf REAL PSF coverage factor smf.psf.PSF_QF?
infoFlag INT bitmask indicating provenance information
activeFlag TINYINT indicates whether this detection/orphan is still a detection/orphan
historyModNum SMALLINT modification number in the O-D association history set to 0?

Unresolved fields for diff stage ('objects')

StackMeta

PSPS field PSPS type PSPS Description IPP source Comments
stackMetaIDBIGINTstack identifier
skycellIDINTskycell region identifier missing from cmf files
surveyIDTINYINTsurvey flag identifier e.g. 3PI, M31, MD, STS - need common enum
photoCalIDINTphotometry code numerical id
filterIDTINYINTfilter identifier IPP uses string (g.00000). Need enum.
stackTypeIDTINYINTstack type identifier
refImageIDBIGINTidentifier of image used as reference for analysis
subtrImageIDBIGINTidentifier of image subtracted to generate difference image
analVerSMALLINTanalysis version index
nP2ImagesSMALLINTnumber of P2 images contributing to this cell
astroScatFLOAT0.astrometric scatter for chip
photoScatFLOAT0.photometric scatter for chip
nAstroRefINTnumber of astrometric reference sources
nPhoRefINTnumber of photometric reference sources
psfFwhmFLOATPSF full width at half maximum
psfmodelIDSMALLINTPSF model identifier
psfExtra1FLOATPSF parameters
psfExtra2FLOATPSF parameters
photoZeroFLOATlocal derived photometric zero point
photoColorFLOATlocal derived photometric color term
polyOrderTINYINTpolynomial order of astrometry fit
pca1x3y0FLOATpolynomial coefficients for the astrometric fit not available
pca1x2y1FLOATpolynomial coefficients for the astrometric fit not available
pca1x1y2FLOATpolynomial coefficients for the astrometric fit not available
pca1x0y3FLOATpolynomial coefficients for the astrometric fit not available
pca1x2y0FLOATpolynomial coefficients for the astrometric fit not available
pca1x1y1FLOATpolynomial coefficients for the astrometric fit not available
pca1x0y2FLOATpolynomial coefficients for the astrometric fit not available
pca2x3y0FLOATpolynomial coefficients for the astrometric fit not available
pca2x2y1FLOATpolynomial coefficients for the astrometric fit not available
pca2x1y2FLOATpolynomial coefficients for the astrometric fit not available
pca2x0y3FLOATpolynomial coefficients for the astrometric fit not available
pca2x2y0FLOATpolynomial coefficients for the astrometric fit not available
pca2x1y1FLOATpolynomial coefficients for the astrometric fit not available
pca2x0y2FLOATpolynomial coefficients for the astrometric fit not available
calibModNumSMALLINTcalibration modification number
dataReleaseTINYINTData release

StackToImage

PSPS field PSPS type PSPS Description IPP source Comments
stackMetaIDBIGINTstack identifier
imageIDBIGINThashed exposure-ccdID identifier

StackLowSigDelta/StackHighSigDelta

PSPS field PSPS type PSPS Description IPP source Comments
partitionKeyBIGINTpartition key
stackDiffIDBIGINTODM detection identifier
ippDetectIDBIGINTdetection id generated by IPP
filterIDTINYINTfilter ID: g=1, r=2, i=3, z=4, y=5, w=6,..
psfLikelihoodFLOATPSF likelihood
infoFlagINTindicator of strange propeties
nFramesINTnumber of frames contributing to source
htmIDBIGINTHTM index for the detection
zoneIDINTZone index
raErrFLOATestimated error in ra
decErrFLOATestimated error in dec
cxFLOATcartesian x
cyFLOATcartesian y
czFLOATcartesian z
calMagFLOATcalibrated magnitude
calMagErrFLOATestimated error in calMag
dataReleaseTINYINTData release when this detection was taken

Unresolved fields for stack stage

Not yet...

Attachments (2)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.