IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 16, 2005, 6:41:16 PM (21 years ago)
Author:
eugene
Message:

cleaning include files, merging time/coord functions in libohana

File:
1 edited

Legend:

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

    r4680 r4805  
    3030enum {MODE_IMAGENAME, MODE_IMAGEFILE, MODE_TIME, MODE_ORPHAN, MODE_MISSED};
    3131
    32 enum {TIME_NONE, TIME_JD, TIME_MJD, TIME_DATE, TIME_DAYS, TIME_HOURS, TIME_MINUTES, TIME_SECONDS};
    33 
    3432char DateKeyword[64], DateMode[64], UTKeyword[64], MJDKeyword[64], JDKeyword[64];
    3533
    36 /*** conversion functions ***/
    37 FILE      *GetDB                  PROTO((int *state));
    38 Image     *GetImages              PROTO((int *nimage));
    39 GSCRegion *LoadRegions            PROTO((int *nregions));
    40 Image     *find_images            PROTO((FILE *f, CatStats *catstats, int *Nimages));
    41 int       *find_images_data       PROTO((Image *timage, int *nlist));
    42 int       *find_images_name       PROTO((char *filename, int *nlist));
    43 int       *find_images_time       PROTO((time_t start, time_t end, PhotCode *code, int *nlist));
    44 Image     *gimages                PROTO((char *filename));
    45 GSCRegion *gregion_image          PROTO((Image *image, int *Nregions));
    46 GSCRegion *gregion_patch          PROTO((GSCRegion *patch, int *nregions));
    47 Image     *gtimes                 PROTO((int *NIMAGE));
    48 char      *sec_to_date            PROTO((time_t second));
    49 void       ConfigInit             PROTO((int *argc, char **argv));
    50 int        FindDecBand            PROTO((double dec, double *DEC0, double *DEC1));
    51 int        FindRegionByPoint      PROTO((GSCRegion *region, double ra, double dec, GSCRegion *gsc, int Ngsc));
    52 int        FindRegionDecBandStart PROTO((GSCRegion *region, int Nregion, double dec));
    53 int        FindRegionDecBandStop  PROTO((GSCRegion *region, int Nregion, double dec));
    54 int        SetImages              PROTO((Image *new, int Nnew));
    55 void       SetProtect             PROTO((int mode));
    56 int        SetSignals             PROTO(());
    57 int        Shutdown               PROTO((char *format, ...));
    58 void       TrapSignal             PROTO((int sig));
    59 int        args                   PROTO((int *argc, char **argv));
    60 void       check_permissions      PROTO((char *basefile));
    61 int        chk_time               PROTO((char *line));
    62 time_t     date_to_sec            PROTO((char *date));
    63 void       delete_imagefile       PROTO((char *filename));
    64 void       delete_imagename       PROTO((char *name));
    65 void       delete_times           PROTO(());
    66 int        dimages                PROTO((int *imlist, int Nimlist));
    67 int        dms_to_ddd             PROTO((double *Value, char *string));
    68 int        edge_check             PROTO((double *x1, double *y1, double *x2, double *y2));
    69 void       find_matches           PROTO((Catalog *catalog, int photcode, int start, int end));
    70 int        gcatalog               PROTO((Catalog *catalog));
    71 void       help                   PROTO(());
    72 int        hms_to_deg             PROTO((double *h0, double *h1, double *d0, double *d1, char *string));
    73 time_t     jd_to_sec              PROTO((double jd));
    74 int        load_image_db          PROTO(());
    75 void       lock_image_db          PROTO(());
    76 void       match_images           PROTO((Catalog *catalog, Image *image, int Nimage));
    77 time_t     mjd_to_sec             PROTO((double mjd));
    78 double     opening_angle          PROTO((double x1, double y1, double x2, double y2, double x3, double y3));
    79 int        parse_time             PROTO((Header *header));
    80 int        save_image_db          PROTO(());
    81 double     sec_to_jd              PROTO((time_t second));
    82 double     sec_to_mjd             PROTO((time_t second));
    83 void       sort_lists             PROTO((float *X, float *Y, int *S, int N));
    84 void       sort_regions           PROTO((GSCRegion *region, int N));
    85 int        str_to_dtime           PROTO((char *line, double *second));
    86 int        str_to_radec           PROTO((double *ra, double *dec, char *str1, char *str2));
    87 int        str_to_time            PROTO((char *line, time_t *second));
    88 void       unlock_image_db        PROTO(());
    89 void       usage                  PROTO(());
    90 int        wcatalog               PROTO((Catalog *catalog));
     34/*** delstar prototypes ***/
     35void       ConfigInit             PROTO((int *argc, char **argv));
     36int        FindDecBand            PROTO((double dec, double *DEC0, double *DEC1));
     37int        FindRegionByPoint      PROTO((GSCRegion *region, double ra, double dec, GSCRegion *gsc, int Ngsc));
     38int        FindRegionDecBandStart PROTO((GSCRegion *region, int Nregion, double dec));
     39int        FindRegionDecBandStop  PROTO((GSCRegion *region, int Nregion, double dec));
     40FILE      *GetDB                  PROTO((int *state));
     41Image     *GetImages              PROTO((int *nimage));
     42GSCRegion *LoadRegions            PROTO((int *nregions));
     43int        SetImages              PROTO((Image *new, int Nnew));
     44void       SetProtect             PROTO((int mode));
     45int        SetSignals             PROTO(());
     46int        Shutdown               PROTO((char *format, ...));
     47void       TrapSignal             PROTO((int sig));
     48int        args                   PROTO((int *argc, char **argv));
     49void       check_permissions      PROTO((char *basefile));
     50void       delete_imagefile       PROTO((char *filename));
     51void       delete_imagename       PROTO((char *name));
     52void       delete_times           PROTO(());
     53int        dimages                PROTO((int *imlist, int Nimlist));
     54int        edge_check             PROTO((double *x1, double *y1, double *x2, double *y2));
     55Image     *find_images            PROTO((FILE *f, CatStats *catstats, int *Nimages));
     56int       *find_images_data       PROTO((Image *timage, int *nlist));
     57int       *find_images_name       PROTO((char *filename, int *nlist));
     58int       *find_images_time       PROTO((time_t start, time_t end, PhotCode *code, int *nlist));
     59void       find_matches           PROTO((Catalog *catalog, int photcode, int start, int end));
     60int        gcatalog               PROTO((Catalog *catalog));
     61Image     *gimages                PROTO((char *filename));
     62GSCRegion *gregion_image          PROTO((Image *image, int *Nregions));
     63GSCRegion *gregion_patch          PROTO((GSCRegion *patch, int *nregions));
     64Image     *gtimes                 PROTO((int *NIMAGE));
     65void       help                   PROTO(());
     66int        load_image_db          PROTO(());
     67void       lock_image_db          PROTO(());
     68void       match_images           PROTO((Catalog *catalog, Image *image, int Nimage));
     69double     opening_angle          PROTO((double x1, double y1, double x2, double y2, double x3, double y3));
     70int        parse_time             PROTO((Header *header));
     71int        save_image_db          PROTO(());
     72void       sort_lists             PROTO((float *X, float *Y, int *S, int N));
     73void       sort_regions           PROTO((GSCRegion *region, int N));
     74void       unlock_image_db        PROTO(());
     75void       usage                  PROTO(());
     76int        wcatalog               PROTO((Catalog *catalog));
Note: See TracChangeset for help on using the changeset viewer.