IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 17, 2005, 9:36:55 AM (21 years ago)
Author:
eugene
Message:

renamed hms_to_deg hstgsc_hms_to_deg everywhere, moved into libohana

Location:
trunk/Ohana/src/relphot
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relphot/include/relphot.h

    r4805 r4810  
    100100/*** relphot prototypes ***/
    101101void          ConfigInit          PROTO((int *argc, char **argv));
    102 int           Fseek               PROTO((FILE *f, long offset, int whence));
    103102void          GetConfig           PROTO((char *config, char *field, char *format, int N, void *ptr));
    104103char         *GetPhotnamebyCode   PROTO((PhotCodeData *photcodes, int code));
  • trunk/Ohana/src/relphot/src/get_regions.c

    r4805 r4810  
    114114      strncpy (temp, &buffer[i*48], 48);
    115115      temp[49] = 0;
    116       hms_to_deg (&RA0, &RA1, &DEC0, &DEC1, &temp[7]);
     116      hstgsc_hms_to_deg (&RA0, &RA1, &DEC0, &DEC1, &temp[7]);
    117117      if (RA1 < RA0) RA1 += 360.0;
    118118      if ((DEC1 > 0) && (minDec < DEC1) && (maxDec > DEC0) && (minRa < RA1) && (maxRa > RA0)) {
  • trunk/Ohana/src/relphot/src/misc.c

    r4805 r4810  
    181181  }
    182182}
    183 
    184 /* fseek with timeout - 0.5 sec */
    185 int Fseek (FILE *f, long offset, int whence) {
    186 
    187   int status;
    188 
    189   status = fseek (f, offset, whence);
    190   if (status == -1) {
    191     int k;
    192     /* fprintf (stderr, "problem seeking position: %d\n", errno); */
    193     for (k = 0; (k < 10) && ((status = fseek (f, 0, SEEK_SET)) == -1); k++) usleep (50000);
    194     if (status == -1) {
    195       /* fprintf (stderr, "ERROR: serious problem seeking position: %d\n", errno); */
    196       /* clear lock at this point? */
    197       return (0);
    198     }
    199   }
    200   return (1);
    201 }
Note: See TracChangeset for help on using the changeset viewer.