IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 12, 2005, 3:04:48 PM (21 years ago)
Author:
eugene
Message:

substantial work to enable mode and format selections for DVO:image and DVO:secfilt

Location:
trunk/Ohana/src/libautocode
Files:
5 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libautocode/Makefile

    r4865 r5014  
    2929$(SRC)/average-panstarrs.$(ARCH).o \
    3030$(SRC)/secfilt.$(ARCH).o \
     31$(SRC)/secfilt-loneos.$(ARCH).o \
    3132$(SRC)/secfilt-elixir.$(ARCH).o \
    3233$(SRC)/secfilt-panstarrs.$(ARCH).o \
     
    3839$(SRC)/photcode.$(ARCH).o \
    3940$(SRC)/image.$(ARCH).o \
     41$(SRC)/image-loneos.$(ARCH).o \
     42$(SRC)/image-elixir.$(ARCH).o \
     43$(SRC)/image-panstarrs.$(ARCH).o \
    4044$(SRC)/regimage.$(ARCH).o \
    4145$(SRC)/detreg.$(ARCH).o \
     
    5357$(INC)/average-panstarrs.h \
    5458$(INC)/secfilt.h \
     59$(INC)/secfilt-loneos.h \
    5560$(INC)/secfilt-elixir.h \
    5661$(INC)/secfilt-panstarrs.h \
     
    6267$(INC)/photcode.h \
    6368$(INC)/image.h \
     69$(INC)/image-loneos.h \
     70$(INC)/image-elixir.h \
     71$(INC)/image-panstarrs.h \
    6472$(INC)/regimage.h \
    6573$(INC)/detreg.h \
  • trunk/Ohana/src/libautocode/def/average-panstarrs.d

    r4865 r5014  
    22EXTNAME DVO_AVERAGE_PANSTARRS
    33TYPE    BINTABLE
    4 SIZE    44
     4SIZE    48
    55
    66# elements of data structure / FITS table
     
    1818FIELD offset,         offset,     int,              offset to first measurement
    1919FIELD missing,        missing,    int,              offset to first missing obs
     20FIELD dummy,          dummmy,     int,              extra space
  • trunk/Ohana/src/libautocode/def/image.d

    r4023 r5014  
    1 STRUCT Image
    2 EXTNAME DVO_IMAGES
    3 TYPE BINTABLE
    4 SIZE 240
     1STRUCT  Image
     2EXTNAME DVO_IMAGE
     3TYPE    BINTABLE
     4SIZE    248
    55
    66# elements of the image structure
     
    2020SUBFIELD  ctype,            CTYPE,                char[15],      coordinate type
    2121SUBFIELD  Npolyterms,       NPOLYTERMS,           char,          order of polynomial
     22# 120 bytes
    2223
    2324FIELD     tzero,            TZERO,                e_time,         readout time (row 0)
    2425FIELD     nstar,            NSTAR,                unsigned int,   number of stars on image
    25 FIELD     secz,             SECZ,                 short,          airmass,                   milliairmass
     26FIELD     secz_PS,          SECZ,                 float,          airmass,                   mag
    2627FIELD     NX,               NX,                   short,          image width
    2728FIELD     NY,               NY,                   short,          image height
    28 FIELD     apmifit,          APMIFIT,              short,          aperture correction,       millimag
    29 FIELD     dapmifit,         DAPMIFIT,             short,          apmifit error,             millimag
     29FIELD     apmifit_PS,       APMIFIT,              float,          aperture correction,       mag
     30FIELD     dapmifit_PS,      DAPMIFIT,             float,          apmifit error,             mag
     31FIELD     Mcal_PS,          MCAL,                 float,          calibration mag,           mag
     32FIELD     dMcal_PS,         DMCAL,                float,          error on Mcal,             mag
     33FIELD     Xm,               XM,                   short,          image chisq,               10*log(value)
    3034FIELD     source,           SOURCE,               short,          identifier for CCD,
    31 FIELD     Mcal,             MCAL,                 short,          calibration mag,           millimag
    32 FIELD     dMcal,            DMCAL,                short,          error on Mcal,             millimag
    33 FIELD     Xm,               XM,                   short,          image chisq,               10*log(value)
     35FIELD     exptime,          EXPTIME,              float,          exposure time,             seconds
     36# 40 bytes
     37
    3438FIELD     name,             NAME,                 char[32],       name of original image
    3539FIELD     detection_limit,  DETECTION_LIMIT,      unsigned char,  detection limit,           10*mag
     
    3943FIELD     fwhm_y,           FWHM_Y,               unsigned char,  PSF y width,               25*arcsec
    4044FIELD     trate,            TRATE,                unsigned char,  scan rate,                 100 usec/pixel
    41 FIELD     exptime,          EXPTIME,              float,          exposure time,             seconds
    4245FIELD     code,             CODE,                 char,           image quality flag
    4346FIELD     ccdnum,           CCDNUM,               unsigned char,  CCD ID number
    44 FIELD     dummy,            DUMMY,                char[20],       unused
     47# 40 bytes
     48
     49FIELD     dummy,            DUMMY,                char[18],       unused
    4550FIELD     order,            ORDER,                short,          Mrel 2D polynomical order
    4651FIELD     Mx,               MX,                   short,          Mrel polyterm
     
    5863FIELD     Mxyyy,            MXYYY,                short,          Mrel polyterm
    5964FIELD     Myyyy,            MYYYY,                short,          Mrel polyterm
     65# 48 bytes
  • trunk/Ohana/src/libautocode/def/measure-panstarrs.d

    r4865 r5014  
    22EXTNAME DVO_MEASURE_PANSTARRS
    33TYPE    BINTABLE
    4 SIZE    50
     4SIZE    52
    55
    66# elements of data structure / FITS table
     
    2020FIELD source,         source,     unsigned short, photcode
    2121FIELD flags,          flags,      unsigned short, flags for various uses 
     22FIELD dummy,          dummy,      short,          extra space
    2223FIELD t,              t,          unsigned int,   time in seconds (UNIX)
    2324FIELD averef,         averef,     unsigned int,   reference to average entry     
  • trunk/Ohana/src/libautocode/def/secfilt-panstarrs.d

    r4865 r5014  
    22EXTNAME DVO_SECFILT_PANSTARRS
    33TYPE    BINTABLE
    4 SIZE    8
     4SIZE    12
    55
    66# elements of data structure / FITS table
    77FIELD  M,  MAG,      float,                other mags,       mags
    8 FIELD  dM, MAG_ERR,  short,                scatter on mag    1e4*mag
     8FIELD  dM, MAG_ERR,  float,                scatter on mag    1e4*mag
    99FIELD  Xm, MAG_CHI,  short,                chisq on mag,     [100*log(value)]
     10FIELD  dummy, JUNK,  short,                chisq on mag,     [100*log(value)]
  • trunk/Ohana/src/libautocode/def/secfilt.d

    r4865 r5014  
    22EXTNAME DVO_SECFILT
    33TYPE    BINTABLE
    4 SIZE    10
     4SIZE    12
    55
    66# elements of data structure / FITS table
     
    88FIELD  dM_PS, MAG_ERR,  float,                scatter on mag    mags
    99FIELD  Xm,    MAG_CHI,  short,                chisq on mag      [100*log(value)]
     10FIELD  dummy, JUNK,     short,                place holder
  • trunk/Ohana/src/libautocode/generate

    r4023 r5014  
    3535        ($key, $value) = split (" ", $line, 2);
    3636       
     37        # strip white space from the following
     38        if ($key eq "TYPE")    { ($value) = $value =~ m|\s*(\S+)\s*|; }
     39        if ($key eq "SIZE")    { ($value) = $value =~ m|\s*(\S+)\s*|; }
     40        if ($key eq "STRUCT")  { ($value) = $value =~ m|\s*(\S+)\s*|; }
     41        if ($key eq "EXTNAME") { ($value) = $value =~ m|\s*(\S+)\s*|; }
     42
    3743        &set_keypair ($key, $value);
    3844
    3945        # there are used internally (not just a replacement)
    40         if ($key eq "TYPE")   { $TYPE = $value;   }
    41         if ($key eq "SIZE")   { $SIZE = $value;   }
    42         if ($key eq "STRUCT") { $STRUCT = $value; }
     46        if ($key eq "TYPE")    { $TYPE = $value;   }
     47        if ($key eq "SIZE")    { $SIZE = $value;   }
     48        if ($key eq "STRUCT")  { $STRUCT = $value; }
    4349
    4450        # not a simple key/value entry
     
    5460        }
    5561    }
     62    $Nexpect = 0;
    5663    if ($TYPE eq "BINTABLE") { $Nexpect = &count_bintablesize; }
    5764    if ($TYPE eq "TABLE")    { $Nexpect = &count_tablesize;    }
     65    if (! $Nexpect) { die "missing valid TYPE\n"; }
    5866    if ($Nexpect != $SIZE) { die "size mismatch: $Nexpect vs $SIZE\n"; }
    5967}
Note: See TracChangeset for help on using the changeset viewer.