IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 21, 2007, 2:10:20 PM (19 years ago)
Author:
eugene
Message:

convert str_to_time and related functions to ohana_...; various cleanups for -Wall -Werror

Location:
trunk/Ohana/src/addstar/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/LoadStars.c

    r12332 r14590  
    9797  } else {
    9898    double jd;
    99     jd = sec_to_jd (image[0].tzero);
     99    jd = ohana_sec_to_jd (image[0].tzero);
    100100    image[0].sidtime  = ohana_lst (jd, Longitude);
    101101  }
  • trunk/Ohana/src/addstar/src/ReadImageHeader.c

    r12840 r14590  
    126126  } else {
    127127    double jd;
    128     jd = sec_to_jd (image[0].tzero);
     128    jd = ohana_sec_to_jd (image[0].tzero);
    129129    image[0].sidtime  = ohana_lst (jd, Longitude);
    130130  }
  • trunk/Ohana/src/addstar/src/args.c

    r13324 r14590  
    9191    time_t tmp;
    9292    remove_argument (N, &argc, argv);
    93     if (!str_to_time (argv[N], &tmp)) {
     93    if (!ohana_str_to_time (argv[N], &tmp)) {
    9494      fprintf (stderr, "syntax error in time\n");
    9595      exit (1);
  • trunk/Ohana/src/addstar/src/args_client.c

    r7691 r14590  
    5454    time_t tmp;
    5555    remove_argument (N, &argc, argv);
    56     if (!str_to_time (argv[N], &tmp)) {
     56    if (!ohana_str_to_time (argv[N], &tmp)) {
    5757      fprintf (stderr, "syntax error in time\n");
    5858      exit (1);
  • trunk/Ohana/src/addstar/src/calibrate.c

    r13141 r14590  
    127127      SaveCalibration (Mcal, new[0].dM, CalM0, dCalM, Minst, Nstar);
    128128      if ((DUMP != NULL) && !strcmp (DUMP, "cal")) {
    129         fprintf (stdout, "cal-match : %10.6f %10.6f : %7.4f %6.4f  %7.4f %6.4f   %7.4f : %7.4f %7.4f\n", average[0].R, average[0].D, Mcal, new[0].dM, CalM0, dCalM, Minst, airmass, color);
     129        fprintf (stdout, "cal-match : %10.6f %10.6f : %7.4f %6.4f  %7.4f %6.4f   %7.4f : %7.4f %7.4f\n", average[0].R, average[0].D, Mcal, new[0].dM, CalM0, dCalM, Minst, new[0].airmass, color);
    130130      }
    131131      return;
  • trunk/Ohana/src/addstar/src/get2mass_ops.c

    r12732 r14590  
    148148  if (end == NULL) Shutdown ("format error in 2mass");
    149149  *end = 0;
    150   time = date_to_sec (ptr);
     150  time = ohana_date_to_sec (ptr);
    151151  *end = '|';
    152152
    … …  
    167167  *end = 0;
    168168  jd = strtod (p, NULL);
    169   time = jd_to_sec (jd);
     169  time = ohana_jd_to_sec (jd);
    170170  *end = '|';
    171171
  • trunk/Ohana/src/addstar/src/gettycho.c

    r14401 r14590  
    5353  ALLOCATE (buffer, char, NITEM*NBYTE);
    5454
    55   TychoEpoch = date_to_sec ("1991/04/02,07:30:00");
     55  TychoEpoch = ohana_date_to_sec ("1991/04/02,07:30:00");
    5656
    5757  for (i = 0; i < skylist[0].Nregions; i++) {
  • trunk/Ohana/src/addstar/src/getusnob.c

    r8518 r14590  
    108108    }
    109109
    110     USNOepoch = date_to_sec ("2000/01/01,00:00:00");
     110    USNOepoch = ohana_date_to_sec ("2000/01/01,00:00:00");
    111111
    112112    buf = buffer;
Note: See TracChangeset for help on using the changeset viewer.