IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24399


Ignore:
Timestamp:
Jun 14, 2009, 10:30:29 AM (17 years ago)
Author:
eugene
Message:

adding ipp-2.9 build files: moving to cfitsio3100-p2 (automatic install of funpack, fpack); build/install of extsrc/gpcsw for burntool and tiltystreak

Location:
trunk
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libautocode/def/autocode.c

    r15038 r24399  
    77
    88  if (size != $SIZE) {
    9     fprintf (stderr, "ERROR: mismatch in data types $STRUCT: %d vs %d\n",
    10              size, $SIZE);
    11     exit (1);
     9    fprintf (stderr, "WARNING: mismatch in data types $STRUCT: %d vs %d\n", size, $SIZE);
     10    return (FALSE);
    1211  }
    1312
     
    2625}
    2726
     27$STRUCT *gfits_downsize_and_convert_$STRUCT ($STRUCT *data, int size, int nitems) {
     28
     29  int i;
     30  unsigned char *byte, tmp;
     31  $STRUCT *output;
     32
     33  if ($SIZE > size) {
     34    fprintf (stderr, "ERROR: uncorrectable mismatch in data types $STRUCT: %d vs %d\n", size, $SIZE);
     35    exit (1);
     36  }
     37
     38  // allocate a new array
     39  ALLOCATE (output, $STRUCT, nitems);
     40  for (i = 0; i < nitems; i++) {
     41    memcpy (&output[i], &data[i], $SIZE);
     42  }
     43
     44  /* provide initial values to avoid compiler warnings for non-BYTE_SWAP arch */
     45  i = tmp = 0;
     46  byte = NULL;
     47
     48# ifdef BYTE_SWAP
     49  byte = (unsigned char *) output;
     50  for (i = 0; i < nitems; i++, byte += size) {
     51    /** BYTE SWAP **/
     52  }
     53# endif 
     54
     55  return (output);
     56}
     57
    2858/*** add test of EXTNAME and header-defined columns? ***/
    2959/* return internal structure representation */
    3060$STRUCT *gfits_table_get_$STRUCT (FTable *ftable, int *Ndata, int *swapped) {
    3161
    32   $STRUCT *data;
     62  $STRUCT *data, *output;
    3363
    3464  *Ndata = ftable[0].header[0].Naxis[1];
    3565  data = ($STRUCT *) ftable[0].buffer;
    3666  if ((swapped == NULL) || (*swapped == FALSE)) {
    37     gfits_convert_$STRUCT (data, sizeof ($STRUCT), *Ndata);
     67    if (!gfits_convert_$STRUCT (data, sizeof ($STRUCT), *Ndata)) {
     68      output = gfits_downsize_and_convert_$STRUCT (data, sizeof ($STRUCT), *Ndata);
     69      free (ftable[0].buffer);
     70      ftable[0].buffer = output;
     71      // XXX do I need to change NX?
     72    }
    3873    gfits_table_scale_data (ftable);
    3974    if (swapped != NULL) *swapped = TRUE;
  • trunk/Ohana/src/libautocode/def/cmf-ps1-v1.d

    r21508 r24399  
    33EXTNAME CMF_PS1_V1
    44TYPE    BINTABLE
    5 SIZE    128
     5SIZE    136
    66
    77# elements of data structure / FITS table
     
    1111FIELD dX,        X_PSF_SIG,        float,    x coord error,         pixels
    1212FIELD dY,        Y_PSF_SIG,        float,    y coord error,         pixels
    13 FIELD RA,        RA_PSF,           float,    PSF RA coord,          degrees
    14 FIELD DEC,       DEC_PSF,          float,    PSF DEC coord,         degrees
     13FIELD RA,        RA_PSF,           double,   PSF RA coord,          degrees
     14FIELD DEC,       DEC_PSF,          double,   PSF DEC coord,         degrees
    1515FIELD posangle,  POSANGLE,         float,    Posangle at source,    degrees
    1616FIELD pltscale,  PLTSCALE,         float,    Plate Scale at source, arcsec/pixel
  • trunk/Ohana/src/libdvo/Makefile

    r21508 r24399  
    118118cleandef:
    119119        cd $(AUTO) && make clean
     120
     121.PRECIOUS: $(ASRC)/%.c
  • trunk/ppImage/notes.txt

    r14620 r24399  
    11
    2 ppImage pmFPAfiles:
     220090611 : adjusting things to allow the readnoise to be an image map for each cell
    33
    4     pmFPAfile *input = pmFPAfileDefineFromArgs (&status, config, "PPIMAGE.INPUT", "INPUT");
    5     pmFPAfile *inputMask = pmFPAfileBindFromArgs(&status, input, config, "PPIMAGE.INPUT.MASK", "INPUT.MASK");
    6     pmFPAfile *inputWeight = pmFPAfileBindFromArgs(&status, input, config, "PPIMAGE.INPUT.WEIGHT", "INPUT.WEIGHT");
    7     pmFPAfile *output = pmFPAfileDefineOutput(config, input->fpa, "PPIMAGE.OUTPUT");
    8     pmFPAfile *outMask = pmFPAfileDefineOutput(config, input->fpa, "PPIMAGE.OUTPUT.MASK");
    9     pmFPAfile *outWeight = pmFPAfileDefineOutput(config, input->fpa, "PPIMAGE.OUTPUT.WEIGHT");
    10     pmFPAfile *chipImage = pmFPAfileDefineChipMosaic(config, input->fpa, "PPIMAGE.CHIP");
    11     pmFPAfile *chipMask = pmFPAfileDefineOutput(config, chipImage->fpa, "PPIMAGE.CHIP.MASK");
    12     pmFPAfile *chipWeight = pmFPAfileDefineOutput(config, chipImage->fpa, "PPIMAGE.CHIP.WEIGHT");
    13     pmFPAfile *byFPA1 = pmFPAfileDefineFPAMosaic(config, input->fpa, "PPIMAGE.OUTPUT.FPA1");
    14     pmFPAfile *byFPA2 = pmFPAfileDefineFPAMosaic(config, input->fpa, "PPIMAGE.OUTPUT.FPA2");
     4  * pmReadoutSetVaraince : when variance is created, we are suppling a single CELL.READNOISE value -- change this to an optional image (carried through concepts?)
    155
    16         pmFPAfile *psphotInput = pmFPAfileDefineFromFPA (config, chipImage->fpa, 1, 1, "PSPHOT.INPUT");
    17         pmFPAfile *psphotOutput = psMetadataLookupPtr (&status, config->files, "PSPHOT.OUTPUT");
    18         pmFPAfile *psastroInput = pmFPAfileDefineInput (config, psphotOutput->fpa, "PSASTRO.INPUT");
     6  I need to:
    197
    20     pmFPAfile *bin1 = pmFPAfileDefineFromFPA (config, chipImage->fpa, options->xBin1, options->yBin1, "PPIMAGE.BIN1");
    21     pmFPAfile *bin2 = pmFPAfileDefineFromFPA (config, chipImage->fpa, options->xBin2, options->yBin2, "PPIMAGE.BIN2");
    22     pmFPAfile *jpg1 = pmFPAfileDefineOutput (config, byFPA1->fpa, "PPIMAGE.JPEG1");
    23     pmFPAfile *jpg2 = pmFPAfileDefineOutput (config, byFPA2->fpa, "PPIMAGE.JPEG2");
     8  * define a format for the readnoise map (image map in SPLIT/MEF format?)
     9  * load the readnoise map
     10
     11  * supply the map for each cell to the pmReadoutSetVariance (pointer to ppImageMap?)
     12    pmReadoutSetVariance -> add psImageMap to API (also pmReadoutGenerateVariance)
     13
     14  * add recipe information to define the source of the READNOISE info.
     15
  • trunk/psModules/src/camera/pmFPAMaskWeight.c

    r23989 r24399  
    228228
    229229        // a negative variance is non-sensical. if the image value drops below 1, the variance must be 1.
     230        // XXX this calculation is wrong: limit is 1 e-, but this is in DN
    230231        readout->variance = (psImage*)psUnaryOp(readout->variance, readout->variance, "abs");
    231232        readout->variance = (psImage*)psBinaryOp(readout->variance, readout->variance, "max",
     
    239240    }
    240241
     242    // XXX if readnoise is based on an image map, we need to apply it here
    241243    readout->variance = (psImage*)psBinaryOp(readout->variance, readout->variance, "+",
    242244                                           psScalarAlloc(readnoise*readnoise/gain/gain, PS_TYPE_F32));
Note: See TracChangeset for help on using the changeset viewer.