IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2450


Ignore:
Timestamp:
Nov 24, 2004, 1:46:23 PM (22 years ago)
Author:
eugene
Message:

cleanups

Location:
trunk/Ohana/src/imregister/detrend
Files:
4 edited

Legend:

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

    r73 r2450  
    266266  }
    267267 
    268   output.Altpath = FALSE;
     268  output.Altpath = NONE;
    269269  if (N = get_argument (argc, argv, "-altpath")) {
    270270    if (output.Delete) {
     
    273273    }
    274274    remove_argument (N, &argc, argv);
    275     output.Altpath = TRUE;
     275    if (!strcasecmp (argv[N], "add")) output.Altpath = ADD;
     276    if (!strcasecmp (argv[N], "delete")) output.Altpath = DELETE;
     277    if (!strcasecmp (argv[N], "update")) output.Altpath = UPDATE;
     278    if (!output.Altpath) {
     279      fprintf (stderr, "invalid -altpath option\n");
     280      exit (1);
     281    }
     282    remove_argument (N, &argc, argv);
    276283  }
    277284
  • trunk/Ohana/src/imregister/detrend/imdef.c

    r73 r2450  
    4444  }
    4545
    46   /* modes: a special case */
    47   if (descriptor[0].type == T_MODES) {
    48     descriptor[0].mode      = M_MODES;
    49     descriptor[0].CCD       = Nccd;
    50     descriptor[0].CCDSelect = TRUE;
    51   }
    52 
    5346  /* identify MODE (MEF / SPLIT)  */
    5447  descriptor[0].mode = M_SPLIT;
     
    6356      fprintf (stderr, "warning: NEXTEND != Nccd (%d, %d)\n", Nextend, Nccd);
    6457    }     
     58  }
     59
     60  /* modes: a special case */
     61  if (descriptor[0].type == T_MODES) {
     62    descriptor[0].mode      = M_MODES;
     63    descriptor[0].CCD       = Nccd;
     64    descriptor[0].CCDSelect = TRUE;
    6565  }
    6666
  • trunk/Ohana/src/imregister/detrend/output.c

    r95 r2450  
    219219    filtstr = filterhash[MIN (MAX (detdata[i].filter, 0), NFILTER - 1)];
    220220
    221     if (detdata[i].mode == M_SPLIT) {
     221    if ((detdata[i].mode == M_SPLIT) && (detdata[i].ccd >= -1) && (detdata[i].ccd < Nccd)) {
    222222      ccdstr   = ccds[detdata[i].ccd];
    223223    } else {
  • trunk/Ohana/src/imregister/detrend/unique.c

    r12 r2450  
    9696
    9797  if (crit[0].tstart  > image[0].tstop) return (FALSE);
    98   if (crit[0].tstop   < image[0].tstop) return (FALSE);
     98  if (crit[0].tstop   < image[0].tstart) return (FALSE);
    9999
    100100  /* we have overlapping time ranges.  set crit[0] to have the
Note: See TracChangeset for help on using the changeset viewer.