IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 19, 2013, 3:20:32 PM (13 years ago)
Author:
eugene
Message:

add conversion function for bad PS1_V4 tables (from period with temporary, old format)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20131211/Ohana/src/libdvo/include/dvo.h

    r36084 r36408  
    387387} MeasureTiny;
    388388
     389
     390/** STRUCT DEFINITION **/
     391typedef struct {
     392  float            dR;                   // RA offset (arcsec)
     393  float            dD;                   // DEC offset (arcsec)
     394  float            M;                    // catalog mag (mag)
     395  float            Mcal;                 // image cal mag (mag)
     396  float            Map;                  // aperture mag (mag)
     397  float            Mkron;                // kron magnitude (mag)
     398  float            dMkron;               // kron magnitude error (mag)
     399  float            dM;                   // mag error (mag)
     400  float            dMcal;                // systematic calibration error (mag)
     401  float            dt;                   // exposure time (2.5*log(exptime))
     402  float            FluxPSF;              // flux from psf fit (counts/sec?)
     403  float            dFluxPSF;             // error on psf flux (counts/sec?)
     404  float            FluxKron;             // flux from kron ap (counts/sec?)
     405  float            dFluxKron;            // error on kron flux (counts/sec?)
     406  float            airmass;              // (airmass - 1) (airmass)
     407  float            az;                   // telescope azimuth
     408  float            Xccd;                 // X coord on chip (raw value) (pixels)
     409  float            Yccd;                 // Y coord on chip (raw value) (pixels)
     410  float            Sky;                  // local estimate of sky flux (counts/sec)
     411  float            dSky;                 // local estimate of sky flux (counts/sec)
     412  int              t;                    // time in seconds (UNIX)
     413  unsigned int     averef;               // reference to average entry     
     414  unsigned int     detID;                // detection ID
     415  unsigned int     imageID;              // reference to DVO image ID
     416  unsigned int     objID;                // unique ID for object in table
     417  unsigned int     catID;                // unique ID for table in which object was first realized
     418  uint64_t         extID;                // external ID (eg PSPS detID)
     419  float            psfQF;                // psf coverage/quality factor
     420  float            psfQFperf;            // psf coverage / quality factor (all mask bits)
     421  float            psfChisq;             // psf fit chisq
     422  int              psfNdof;              // psf degrees of freedom
     423  int              psfNpix;              // psf number of pixels
     424  float            crNsigma;             // Nsigma deviation towards CR
     425  float            extNsigma;            // Nsigma deviation towards EXT
     426  short            FWx;                  // object fwhm major axis (1/100 of pixels)
     427  short            FWy;                  // object fwhm minor axis (1/100 of pixels )
     428  short            theta;                // angle wrt ccd X dir ((0xffff/360) deg)
     429  short            Mxx;                  // second moments in pixel coords (1/100 of pixels)
     430  short            Mxy;                  // second moments in pixel coords (1/100 of pixels)
     431  short            Myy;                  // second moments in pixel coords (1/100 of pixels)
     432  unsigned short   t_msec;               // time fraction of second (milliseconds)
     433  unsigned short   photcode;             // photcode
     434  short            dXccd;                // X coord error on chip (1/100 of pixels)
     435  short            dYccd;                // Y coord error on chip (1/100 of pixels)
     436  short            dRsys;                // systematic error from astrom (1/100 of pixels)
     437  short            posangle;             // position angle sky to chip ((0xffff/360) deg)
     438  float            pltscale;             // plate scale (arcsec/pixel)
     439  unsigned int     dbFlags;              // flags supplied by analysis in database
     440  unsigned int     photFlags;            // flags supplied by photometry program
     441} Measure_PS1_V4alt;
     442
     443Measure_PS1_V4alt *gfits_table_get_Measure_PS1_V4alt (FTable *table, off_t *Ndata, char *swapped);
     444Measure *Measure_PS1_V4alt_ToInternal (Measure_PS1_V4alt *in, off_t Nvalues);
     445
    389446/* a catalog contains this data */
    390447typedef struct Catalog {
Note: See TracChangeset for help on using the changeset viewer.