IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 19, 2003, 7:26:08 AM (24 years ago)
Author:
eugene
Message:

added MEF, FRPTS support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/imregister/detrend/modify.c

    r3 r21  
    44int ModifySubset (Match *match, int Nmatch) {
    55 
    6   int i, j, Nimage;
     6  int i, j, Nimage, value;
    77  int *list;
    88  DetReg *image;
     
    1010  image = get_images (&Nimage);
    1111  ALLOCATE (list, int, Nimage);
     12  if (output.ModifyEntry, "mode") {
     13    for (i = 0; i < NMODE; i++) {
     14      if (!strncasecmp (output.ModifyValue, modename[i], strlen(modename[i]))) {
     15        value = i;
     16        goto valid_mode;
     17      }
     18    }
     19    fprintf (stderr, "ERROR: invalid image mode %s\n", output.ModifyValue);
     20    exit (1);
     21  }
     22  if (!strcasecmp (output.ModifyEntry, "order")) {
     23    value = atoi (output.ModifyValue);
     24  }
     25 valid_mode:
    1226
    1327  /* list matched images */
     
    2034    }
    2135    if (!strcasecmp (output.ModifyEntry, "order")) {
    22       image[i].Norder = atoi (output.ModifyValue);
     36      image[i].Norder = value;
     37    }
     38    if (!strcasecmp (output.ModifyEntry, "mode")) {
     39      image[i].mode   = value;
    2340    }
    2441    if (!strcasecmp (output.ModifyEntry, "tstart")) {
     
    2643    }
    2744    if (!strcasecmp (output.ModifyEntry, "tstop")) {
    28       image[i].tstop = output.TimeValue;
     45      image[i].tstop  = output.TimeValue;
    2946    }
    3047  }
Note: See TracChangeset for help on using the changeset viewer.