IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 16, 2006, 10:58:49 PM (20 years ago)
Author:
eugene
Message:

major updates to use gprint for buffered / threaded printing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.astro/precess.c

    r2598 r7917  
    1515  in_epoch = out_epoch = 2000.0;
    1616  if (argc != 5) {
    17     fprintf (stderr, "USAGE:  precess (from) (to) RA DEC \n");
    18     fprintf (stderr, "   you may use B for B1950.0 or J for J2000.0\n");
     17    gprint (GP_ERR, "USAGE:  precess (from) (to) RA DEC \n");
     18    gprint (GP_ERR, "   you may use B for B1950.0 or J for J2000.0\n");
    1919    return (FALSE);
    2020  }
     
    5656  }
    5757
    58   fprintf (stderr, "converting from J%f to J%f\n", in_epoch, out_epoch);
     58  gprint (GP_ERR, "converting from J%f to J%f\n", in_epoch, out_epoch);
    5959
    6060  T = (out_epoch - in_epoch) / 100.0;
     
    7777    if (RA < 0)
    7878      RA += 360;
    79     fprintf (GetOutfile(), "%f %f -> %f %f\n", A, D, RA, DEC);
     79    gprint (GP_LOG, "%f %f -> %f %f\n", A, D, RA, DEC);
    8080    return (TRUE);
    8181  }   
     
    8686
    8787  if (xvec[0].Nelements != yvec[0].Nelements) {
    88     fprintf (stderr, "vectors %s and %s not the same length\n", argv[3], argv[4]);
     88    gprint (GP_ERR, "vectors %s and %s not the same length\n", argv[3], argv[4]);
    8989    return (FALSE);
    9090  }
Note: See TracChangeset for help on using the changeset viewer.