IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6994


Ignore:
Timestamp:
Apr 26, 2006, 1:02:09 PM (20 years ago)
Author:
eugene
Message:

added range to -time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relphot/src/args.c

    r5143 r6994  
    44
    55  int N;
     6  double trange;
    67
    78  /* define time */
     
    1415    }
    1516    remove_argument (N, &argc, argv);
    16     if (!str_to_time (argv[N], &TSTOP)) {
    17       fprintf (stderr, "ERROR: syntax error\n");
    18       return (FALSE);
     17    if (!str_to_dtime (argv[N], &trange)) {
     18      if (!str_to_time (argv[N], &TSTOP)) {
     19        fprintf (stderr, "ERROR: syntax error\n");
     20        return (FALSE);
     21      }
     22    } else {
     23      if (trange < 0) {
     24        trange = fabs (trange);
     25        TSTOP = TSTART;
     26        TSTART -= trange;
     27      } else {
     28        TSTOP = TSTART + trange;
     29      }
    1930    }
    2031    remove_argument (N, &argc, argv);
Note: See TracChangeset for help on using the changeset viewer.