IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 2, 2012, 2:07:22 PM (15 years ago)
Author:
eugene
Message:

adding a few query fields to mextract (flat, Mcal_offset, mean_airmass)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/Ohana/src/opihi/dvo/mextract.c

    r30612 r33200  
    8888  mosaicMode = FALSE;
    8989  for (i = 0; !loadImages && (i < Nfields); i++) {
    90     if (fields[i].ID == MEAS_XCCD) loadImages = TRUE;   // Are these still needed? Xccd and Yccd are in measurement
    91     if (fields[i].ID == MEAS_YCCD) loadImages = TRUE;   // and dbExtractMeasures doesn't look at the image for these
    92     if (fields[i].ID == MEAS_XMOSAIC) loadImages = mosaicMode = TRUE;
    93     if (fields[i].ID == MEAS_YMOSAIC) loadImages = mosaicMode = TRUE;
     90    if (!MEASURE_HAS_XCCD) {
     91      // I'm keeping this code because it gives a way of handing dvo dbs that don't have
     92      // measure.xccd if we need it
     93      if (fields[i].ID == MEAS_XCCD) loadImages = TRUE;
     94      if (fields[i].ID == MEAS_YCCD) loadImages = TRUE;
     95    }
     96    if (fields[i].ID == MEAS_XMOSAIC)   loadImages = mosaicMode = TRUE;
     97    if (fields[i].ID == MEAS_YMOSAIC)   loadImages = mosaicMode = TRUE;
    9498    if (fields[i].ID == MEAS_EXTERN_ID) loadImages = mosaicMode = TRUE;
     99    if (fields[i].ID == MEAS_FLAT)      loadImages = mosaicMode = TRUE;
    95100  }
    96101  if (loadImages && !SetImageSelection (mosaicMode, selection)) goto escape;
     
    307312    gprint (GP_ERR, "  imageID : ID of source image (32 bit)\n");
    308313    gprint (GP_ERR, "  externID : externID of source image (32 bit)\n");
     314
     315    gprint (GP_ERR, "  Mcal_offset : difference wrt nominal zero point (clouds are positive)\n");
     316    gprint (GP_ERR, "  flat : flat-field correction (measure.Mcal - image.Mcal)\n");
    309317    return (FALSE);
    310318  }
Note: See TracChangeset for help on using the changeset viewer.