IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 26, 2007, 5:34:27 PM (19 years ago)
Author:
eugene
Message:

various fixes to ensure data is carried from Stars to Measures correctly for PS1_DEV_1

Location:
trunk/Ohana/src/libautocode/def
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libautocode/def/AddstarClientOptions.d

    r5345 r15038  
    22EXTNAME OPTIONS
    33TYPE    BINTABLE
    4 SIZE    72
     4SIZE    76
    55
    66FIELD     Nsigma,           NSIGMA,               double,         match radius in terms of astrometric error
     
    2020FIELD     photcode,         PHOTCODE,             int,            photocode of input data
    2121FIELD     timeref,          TIMEREF,              e_time,         time/date of input data (REFLIST only?)
     22FIELD     imageID,          IMAGE_ID,             unsigned int,   reference to image
  • trunk/Ohana/src/libautocode/def/Stars.d

    r15034 r15038  
    22EXTNAME STARS
    33TYPE    BINTABLE
    4 SIZE    240
     4SIZE    244
    55
    66FIELD     X,                X,          double,    x coordinate on image,            pixels
     
    3838FIELD     Mcal,             MCAL,       float,     image cal mag,                    mag
    3939FIELD     airmass,          AIRMASS,    float,     (airmass - 1),                    airmass
     40FIELD     az,               AZ,         float,     azimuth
    4041FIELD     code,             CODE,       short
    4142FIELD     nFrames,          N_FRAMES,   short
     43FIELD     flags,            FLAGS,      short
    4244FIELD     dophot,           DOPHOT,     char,      dophot type code
    43 FIELD     dummy,            DUMMY,      char[3]
     45FIELD     dummy,            DUMMY,      char
    4446
    4547# XXX I'm going to need azimuth (or load from image header?)
  • trunk/Ohana/src/libautocode/def/autocode.c

    r7080 r15038  
    3636  if ((swapped == NULL) || (*swapped == FALSE)) {
    3737    gfits_convert_$STRUCT (data, sizeof ($STRUCT), *Ndata);
     38    gfits_table_scale_data (ftable);
    3839    if (swapped != NULL) *swapped = TRUE;
    3940  }
     
    5758
    5859  /* add data values */
     60  gfits_table_scale_data (ftable);
    5961  gfits_convert_$STRUCT (data, sizeof ($STRUCT), Ndata);
    6062  gfits_add_rows (ftable, (char *) data, Ndata, sizeof ($STRUCT));
  • trunk/Ohana/src/libautocode/def/image-ps1-dev-1.d

    r15034 r15038  
    4848FIELD     code,             CODE,                 char,           image quality flag
    4949FIELD     ccdnum,           CCDNUM,               unsigned char,  CCD ID number
    50 FIELD     imageID_hi,       IMAGE_ID_HI,          unsigned int,   ID upper bytes
    51 FIELD     imageID_lo,       IMAGE_ID_LO,          unsigned int,   ID lower bytes
    52 # 48 bytes
     50FIELD     imageID,          IMAGE_ID,             unsigned int,   image ID
     51# 44 bytes
    5352
    54 FIELD     dummy,            DUMMY,                char[10],       unused
     53FIELD     dummy,            DUMMY,                char[14],       unused
    5554FIELD     order,            ORDER,                short,          Mrel 2D polynomical order
    5655FIELD     Mx,               MX,                   short,          Mrel polyterm
  • trunk/Ohana/src/libautocode/def/image.d

    r13884 r15038  
    4848FIELD     code,             CODE,                 char,           image quality flag
    4949FIELD     ccdnum,           CCDNUM,               unsigned char,  CCD ID number
    50 FIELD     imageID_hi,       IMAGE_ID_HI,          unsigned int,   ID upper bytes
    51 FIELD     imageID_lo,       IMAGE_ID_LO,          unsigned int,   ID lower bytes
     50FIELD     imageID,          IMAGE_ID,             unsigned int,   image ID
    5251# 48 bytes
    5352
    54 FIELD     dummy,            DUMMY,                char[10],       unused
     53FIELD     dummy,            DUMMY,                char[14],       unused
    5554FIELD     order,            ORDER,                short,          Mrel 2D polynomical order
    5655FIELD     Mx,               MX,                   short,          Mrel polyterm
  • trunk/Ohana/src/libautocode/def/measure-ps1-dev-1.d

    r15034 r15038  
    22EXTNAME      DVO_MEASURE_PS1_DEV_1
    33TYPE         BINTABLE
    4 SIZE         96
     4SIZE         104
    55DESCRIPTION  DVO Detection Measurement Table
    66
     
    88FIELD dD,             D_DEC,        float,          DEC offset,                   arcsec
    99FIELD M,              MAG,          float,          catalog mag,                  mag
    10 FIELD Mcal,           Mcal,         float,          image cal mag,                mag
    11 FIELD Mgal,           Mgal,         float,          galaxy mag,                   mag
    12 FIELD dM,             dM,           float,          mag error,                    mag
    13 FIELD dt,             dt,           float,          exposure time,                2.5*log(exptime)
     10FIELD Mcal,           M_CAL,        float,          image cal mag,                mag
     11FIELD Mgal,           M_GAL,        float,          galaxy mag,                   mag
     12FIELD dM,             MAG_ERR,      float,          mag error,                    mag
     13FIELD dt,             M_TIME,       float,          exposure time,                2.5*log(exptime)
    1414
    1515# note that with airmass = 1.0 / cos(90 - alt), we have full alt/az representation
    16 FIELD airmass,        airmass,      float,          (airmass - 1),                airmass
     16FIELD airmass,        AIRMASS,      float,          (airmass - 1),                airmass
    1717FIELD az,             AZ,           float,          telescope azimuth
    1818
     
    2525FIELD dSky,           SKY_FLUX_ERR, float,          local estimate of sky flux,    counts/sec
    2626
    27 FIELD t,              t,            unsigned int,   time in seconds (UNIX)
    28 FIELD averef,         averef,       unsigned int,   reference to average entry     
     27FIELD t,              TIME,         unsigned int,   time in seconds (UNIX)
     28FIELD averef,         AVE_REF,      unsigned int,   reference to average entry     
    2929
    3030# Pan-STARRS uses a 64-bit detection ID.  keep this in two 32 bit ints for backwards compatibility?
    31 FIELD detID_hi,       DET_ID_HI,    unsigned int,   ID upper bytes
    32 FIELD detID_lo,       DET_ID_LO,    unsigned int,   ID lower bytes
     31FIELD detID,          DET_ID,       unsigned int,   ID upper bytes
     32FIELD imageID,        IMAGE_ID,     unsigned int,   reference to image
    3333
    34 FIELD imageID_hi,     IMAGE_ID_HI,  unsigned int,   reference to image
    35 FIELD imageID_lo,     IMAGE_ID_LO,  unsigned int,   reference to image
     34# do we need more resolution than a short? should this be a log?
     35FIELD qPSF,           PSF_QF,       float,          psf coverage/quality factor
     36FIELD psfProb,        PSF_PROB,     float,          psf coverage/quality factor
     37FIELD crNsigma,       CR_NSIGMA,    float,          psf coverage/quality factor
     38FIELD extNsigma,      EXT_NSIGMA,   float,          psf coverage/quality factor
    3639
    37 FIELD FWx,            FWx,          short,          object fwhm major axis,       1/100 of arcsec
    38 FIELD FWy,            FWy,          short,          object fwhm minor axis,       1/100 of arcsec
    39 FIELD theta,          theta,        short,          angle wrt ccd X dir,          (0xffff/360) deg
    40 FIELD photcode,       photcode,     unsigned short, photcode
    41 
    42 FIELD flags,          flags,        unsigned short, flags for various uses 
     40FIELD FWx,            FWHM_MAJOR,   short,          object fwhm major axis,       1/100 of arcsec
     41FIELD FWy,            FWHM_MINOR,   short,          object fwhm minor axis,       1/100 of arcsec
     42FIELD theta,          PSF_THETA,    short,          angle wrt ccd X dir,          (0xffff/360) deg
     43FIELD photcode,       PHOTCODE,     unsigned short, photcode
    4344
    4445FIELD dXccd,          X_CCD_ERR,    short,          X coord error on chip,         pixels
    4546FIELD dYccd,          Y_CCD_ERR,    short,          Y coord error on chip,         pixels
    4647
    47 # do we need more resolution than a short? should this be a log?
    48 FIELD qPSF,           PSF_QF,       short,          psf coverage/quality factor
     48FIELD dbFlags,        DB_FLAGS,     unsigned short, flags for various uses 
     49FIELD photFlags,      PHOT_FLAGS,   unsigned short, flags supplied by photometry program
    4950
    50 FIELD dophot,         dophot,       char,           dophot type
    51 FIELD stargal,        stargal,      char,           star-galaxy separator
     51FIELD stargal,        STAR_GAL,     char,           star-galaxy separator
    5252
    53 # we need extra bytes for padding purposes...
    54 FIELD dummy,          dummy,        char[2],        padding
     53# absorb these into photFlags?
     54FIELD dophot,         DOPHOT,       char,           dophot type
    5555
    56 # float : 13 x 4 = 52
     56FIELD dummy,          DUMMY,        char[2],        padding
     57
     58# float : 17 x 4 = 68
    5759# int:     6 x 4 = 24
    5860# short:   8 x 2 = 16
  • trunk/Ohana/src/libautocode/def/measure.d

    r12332 r15038  
    22EXTNAME      DVO_MEASURE
    33TYPE         BINTABLE
    4 SIZE         96
     4SIZE         104
    55DESCRIPTION  DVO Detection Measurement Table
    66
     
    1111FIELD Mgal,           Mgal,         float,          galaxy mag,                   mag
    1212FIELD dM,             dM,           float,          mag error,                    mag
    13 FIELD airmass,        airmass,      float,          (airmass - 1),                airmass
    1413FIELD dt,             dt,           float,          exposure time,                2.5*log(exptime)
    1514
    16 FIELD t,              t,            unsigned int,   time in seconds (UNIX)
    17 FIELD averef,         averef,       unsigned int,   reference to average entry     
    18 
    19 FIELD FWx,            FWx,          short,          object fwhm major axis,       1/100 of arcsec
    20 FIELD FWy,            FWy,          short,          object fwhm minor axis,       1/100 of arcsec
    21 FIELD theta,          theta,        short,          angle wrt ccd X dir,          (0xffff/360) deg
    22 FIELD photcode,       photcode,     unsigned short, photcode
    23 
    24 FIELD flags,          flags,        unsigned short, flags for various uses 
    25 FIELD dophot,         dophot,       char,           dophot type
    26 FIELD stargal,        stargal,      char,           star-galaxy separator
     15# note that with airmass = 1.0 / cos(90 - alt), we have full alt/az representation
     16FIELD airmass,        airmass,      float,          (airmass - 1),                airmass
     17FIELD az,             AZ,           float,          telescope azimuth
    2718
    2819# new field elements needed for Pan-STARRS:
     
    3425FIELD dSky,           SKY_FLUX_ERR, float,          local estimate of sky flux,    counts/sec
    3526
     27FIELD t,              t,            unsigned int,   time in seconds (UNIX)
     28FIELD averef,         averef,       unsigned int,   reference to average entry     
     29
     30# Pan-STARRS uses a 64-bit detection ID.  keep this in two 32 bit ints for backwards compatibility?
     31FIELD detID,          DET_ID,       unsigned int,   detection ID
     32FIELD imageID,        IMAGE_ID,     unsigned int,   reference to image
     33
     34# do we need more resolution than a short? should this be a log?
     35FIELD qPSF,           PSF_QF,       float,          psf coverage/quality factor
     36FIELD psfProb,        PSF_PROB,     float,          psf coverage/quality factor
     37FIELD crNsigma,       CR_NSIGMA,    float,          psf coverage/quality factor
     38FIELD extNsigma,      EXT_NSIGMA,   float,          psf coverage/quality factor
     39
     40FIELD FWx,            FWx,          short,          object fwhm major axis,       1/100 of arcsec
     41FIELD FWy,            FWy,          short,          object fwhm minor axis,       1/100 of arcsec
     42FIELD theta,          theta,        short,          angle wrt ccd X dir,          (0xffff/360) deg
     43FIELD photcode,       photcode,     unsigned short, photcode
     44
    3645FIELD dXccd,          X_CCD_ERR,    short,          X coord error on chip,         pixels
    3746FIELD dYccd,          Y_CCD_ERR,    short,          Y coord error on chip,         pixels
    3847
    39 # do we need more resolution than a short? should this be a log?
    40 FIELD qPSF,           PSF_QF,       short,          psf coverage/quality factor
     48FIELD dbFlags,        DB_FLAGS,     unsigned short, flags for various uses 
     49FIELD photFlags,      PHOT_FLAGS,   unsigned short, flags supplied by photometry program
    4150
    42 # Pan-STARRS uses a 64-bit detection ID.  keep this in two 32 bit ints for backwards compatibility?
    43 FIELD detID_hi,       DET_ID_HI,    unsigned int,   ID upper bytes
    44 FIELD detID_lo,       DET_ID_LO,    unsigned int,   ID lower bytes
     51FIELD stargal,        stargal,      char,           star-galaxy separator
    4552
    46 FIELD imageID_hi,     IMAGE_ID_HI,  unsigned int,   reference to image
    47 FIELD imageID_lo,     IMAGE_ID_LO,  unsigned int,   reference to image
     53# absorb these into photFlags?
     54FIELD dophot,         dophot,       char,           dophot type
    4855
    49 # note that with airmass = 1.0 / cos(90 - alt), we have full alt/az representation
    50 FIELD az,             AZ,           float,          telescope azimuth
    51 
    52 # we need extra bytes for padding purposes...
    53 FIELD dummy,          dummy,        char[2],        padding
     56FIELD dummy,          DUMMY,        char[2],        padding
  • trunk/Ohana/src/libautocode/def/ps1_dev_1.d

    r15034 r15038  
    2424FIELD psfQual,   PSF_QF,           float,    quality factor
    2525FIELD nFrames,   N_FRAMES,         short,    images overlapping peak
    26 FIELD dummy,     DUMMY,            short,    padding
     26FIELD flags,     FLAGS,            short,    padding
Note: See TracChangeset for help on using the changeset viewer.