IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14286


Ignore:
Timestamp:
Jul 18, 2007, 8:46:02 AM (19 years ago)
Author:
eugene
Message:

changing SetImageSelection API to take a bool mosaicMode

Location:
trunk/Ohana/src/opihi/dvo
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/ImageSelection.c

    r13479 r14286  
    99
    1010/* load images based on parameters and region, etc */
    11 int SetImageSelection (int mode, int RegionSelect) {
     11int SetImageSelection (int mosaicMode, int RegionSelect) {
    1212
    1313  int Ngraph;
     
    2929  TimeSelect = GetTimeSelection (&tzero, &tend);
    3030
    31   switch (mode) {
    32     case MEAS_XCCD:
    33     case MEAS_YCCD:
    34       break;
    35     case MEAS_XMOSAIC:
    36     case MEAS_YMOSAIC:
     31  if (mosaicMode) {
    3732      /* mosaic defines a frame with 0,0 at the mosaic center, and 1 arcsec / pixel */
    3833      mosaic.crpix1 = mosaic.crpix2 = 0.0;
     
    4237      mosaic.Npolyterms = 0;
    4338      strcpy (mosaic.ctype, "RA---SIN");
    44       break;
    45     default:
    46       return (TRUE);
    4739  }
    4840
  • trunk/Ohana/src/opihi/dvo/calmextract.c

    r12332 r14286  
    6969  /* load region corresponding to selection above */
    7070  if ((skylist = SelectRegions (RegionName, RegionList)) == NULL) goto escape;
    71   if (!SetImageSelection (MEAS_XMOSAIC, ((RegionName == NULL) && (RegionList == NULL)))) goto escape;
     71  if (!SetImageSelection (TRUE, ((RegionName == NULL) && (RegionList == NULL)))) goto escape;
    7272
    7373  for (Nr = 0; Nr < skylist[0].Nregions; Nr++) {
  • trunk/Ohana/src/opihi/dvo/dmagmeas.c

    r12332 r14286  
    4848  /* load region corresponding to selection above */
    4949  if ((skylist = SelectRegions (RegionName, RegionList)) == NULL) goto escape;
    50   if (!SetImageSelection (param, ((RegionName == NULL) && (RegionList == NULL)))) goto escape;
     50  if (!SetImageSelection (((param == MEAS_XMOSAIC) || (param == MEAS_YMOSAIC)), ((RegionName == NULL) && (RegionList == NULL)))) goto escape;
    5151
    5252  /* init vectors to save data */
Note: See TracChangeset for help on using the changeset viewer.