IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19719


Ignore:
Timestamp:
Sep 23, 2008, 3:06:18 PM (18 years ago)
Author:
eugene
Message:

fix test messages

Location:
trunk/Ohana/src/skycalc/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/skycalc/src/sundata.c

    r19681 r19719  
    11# include <skycalc_internal.h>
    22# include <ohana.h>
     3# define VERBOSE 0
    34
    45void SC_set_site (double *longit, double *lat, double *elevsea, double *elev) {
     
    4243  date.s  = (float) (stm->tm_sec);
    4344
    44   /*
    45   fprintf (stderr, "%4d/%02d/%02d %02d:%02d:%02f\n", date.y, date.mo, date.d, date.h, date.mn, date.s);
    46   */
     45  if (VERBOSE) fprintf (stderr, "%4d/%02d/%02d %02d:%02d:%02f\n", date.y, date.mo, date.d, date.h, date.mn, date.s);
    4746
    4847  SC_set_site (&longit, &lat, &elevsea, &elev);
     
    5251  sid = SC_lst(jdnow, longit);
    5352  SC_lpsun (jdnow, &Rsun, &Dsun);
     53
     54  if (VERBOSE) fprintf (stderr, "jdnow: %lf, sid: $lf\n", jdnow, sid);
    5455
    5556  /* dot product of unit vectors of (RAo,DECo) & (Rsun,Dsun) */
  • trunk/Ohana/src/skycalc/src/sunmoon.c

    r19681 r19719  
    7777  sid = SC_lst(jdnow, longitude);
    7878
     79  if (VERBOSE) fprintf (stderr, "jdnow: %lf, sid: $lf\n", jdnow, sid);
     80
    7981  // get the sun coordinates
    8082  SC_lpsun (jdnow, &sun_ra, &sun_dec);
     
    8486  sun_angle = angular_separation (sun_ra, sun_dec, RAo, DECo);
    8587
    86   if (VERBOSE) fprintf (stdout, "sun @ ra,dec = %f %f : alt, az = %f %f\n", sun_ra, sun_dec, sun_alt, sun_az);
     88  if (VERBOSE) fprintf (stderr, "sun @ ra,dec = %f %f : alt, az = %f %f\n", sun_ra, sun_dec, sun_alt, sun_az);
    8789
    8890  // get the moon coordintes
     
    9395  moon_angle = angular_separation (moon_ra, moon_dec, RAo, DECo);
    9496
    95   if (VERBOSE) fprintf (stdout, "moon @ ra,dec = %f %f : alt, az = %f %f\n", moon_ra, moon_dec, moon_alt, moon_az);
     97  if (VERBOSE) fprintf (stderr, "moon @ ra,dec = %f %f : alt, az = %f %f\n", moon_ra, moon_dec, moon_alt, moon_az);
    9698
    9799  phase = (sun_ra - moon_ra - 180)/360.0;
     
    99101  while (phase >  0.5) phase -= 1.0;
    100102
    101   if (VERBOSE) fprintf (stdout, "sun @ %f %f dist %f\n", sun_ra, sun_dec, sun_angle);
    102   if (VERBOSE) fprintf (stdout, "moon @ %f %f angle %f phase %f\n", moon_ra, moon_dec, moon_angle, phase);
     103  if (VERBOSE) fprintf (stderr, "sun @ %f %f dist %f\n", sun_ra, sun_dec, sun_angle);
     104  if (VERBOSE) fprintf (stderr, "moon @ %f %f angle %f phase %f\n", moon_ra, moon_dec, moon_angle, phase);
    103105
    104106  fprintf (stdout, "-sun_alt %f -sun_angle %f -moon_alt %f -moon_angle %f -moon_phase %f\n", sun_alt, sun_angle, moon_alt, moon_angle, phase);
Note: See TracChangeset for help on using the changeset viewer.