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/addstar/include/addstar.h

    r4538 r4805  
    106106time_t TIMEREF;
    107107
    108 int main (int argc, char **argv);
    109 int Shutdown (char *message, ...); 
    110 void TrapSignal (int sig);
    111 int SetSignals ();
    112 void help ();
    113 int args (int argc, char **argv);
    114 void SetProtect (int mode);
     108/*** addstar prototypes ***/
     109void       AddToCalibration       PROTO((Average *average, Measure *measure, Measure *new, int Nstar));
     110void       ConfigInit             PROTO((int *argc, char **argv));
     111void       FindCalibration        PROTO((Image *image));
     112int        FindDecBand            PROTO((double dec, double *DEC0, double *DEC1));
     113int        FindRegionByPoint      PROTO((GSCRegion *regions, double ra, double dec, GSCRegion *gsc, int Ngsc));
     114int        FindRegionDecBandStart PROTO((GSCRegion *region, int Nregion, double dec));
     115int        FindRegionDecBandStop  PROTO((GSCRegion *region, int Nregion, double dec));
     116FILE      *GetDB                  PROTO((int *state));
     117void       InitCalibration        PROTO(());
     118GSCRegion *LoadRegions            PROTO((int *nregions));
     119void       SaveCalibration        PROTO((float M, float dM, float Mr, float dMr, float Mc, float A, int N));
     120void       SetProtect             PROTO((int mode));
     121int        SetSignals             PROTO(());
     122int        Shutdown               PROTO((char *message, ...); )
     123void       TrapSignal             PROTO((int sig));
     124short      airmass                PROTO((short secz_image, double ra, double dec, double st, double latitude));
     125void       aregion                PROTO((GSCRegion *region, FILE *f, double ra, double dec));
     126int        args                   PROTO((int argc, char **argv));
     127void       check_permissions      PROTO((char *basefile));
     128int        dump_rawstars          PROTO((Stars *stars, int Nstars));
     129int        edge_check             PROTO((double *x1, double *y1, double *x2, double *y2));
     130void       find_matches           PROTO((GSCRegion *region, Stars *stars, int Nstars, Catalog *catalog, Image *image, Image *overlap, int Noverlap));
     131void       find_matches_refstars  PROTO((GSCRegion *region, Stars **stars, int Nstars, Catalog *catalog));
     132Stars    **find_subset            PROTO((GSCRegion *region, Stars *stars, int Nstars, int *NSTARS));
     133int        gcatalog               PROTO((Catalog *catalog));
     134Stars     *get2mass               PROTO((GSCRegion *patch, int *NSTARS, int mode));
     135double     get_subpix             PROTO((double x, double y));
     136Stars     *getgsc                 PROTO((GSCRegion *patch, int *NSTARS));
     137Stars     *getusno                PROTO((GSCRegion *catstats, int *Nstars));
     138Image     *gimages                PROTO((Image *image, int *Npimage));
     139Stars     *grefcat                PROTO((char *Refcat, GSCRegion *catstats, int *nstars));
     140Stars     *grefstars              PROTO((char *file, int *Nstars));
     141GSCRegion *gregion_image          PROTO((Image *image, int *Nregions));
     142GSCRegion *gregion_match          PROTO((GSCRegion *regions, int *nregions));
     143GSCRegion *gregion_patch          PROTO((GSCRegion *patch, int *nregions));
     144void       gregion_star           PROTO((Stars *star, GSCRegion *region));
     145GSCRegion *gregion_stars          PROTO((Stars *stars, int Nstars, int *Nregion));
     146GSCRegion *gregions               PROTO((Image *image, int *Nregions));
     147Stars     *gstars                 PROTO((char *file, int *NSTARS, Image *image));
     148void       help                   PROTO(());
     149int        hms_to_deg             PROTO((double *h0, double *h1, double *d0, double *d1, char *string));
     150int        in_image               PROTO((double r, double d, Image *image));
     151int        load_pt_catalog        PROTO((Catalog *catalog, GSCRegion *region));  /*** choose new name ***/
     152void       load_subpix            PROTO(());
     153void       lock_image_db          PROTO(());
     154int        main                   PROTO((int argc, char **argv));
     155void       make_backup            PROTO((char *filename));
     156int        match_refstars         PROTO((Stars *stars, int Nstars));
     157void       mkcatalog              PROTO((GSCRegion *region, Catalog *catalog));
     158double     opening_angle          PROTO((double x1, double y1, double x2, double y2, double x3, double y3));
     159int        parse_time             PROTO((Header *header));
     160Stars     *rd_gsc                 PROTO((char *filename, int *nstars));
     161int        replace_match          PROTO((Average *average, Measure *measure, Stars *star));
     162Stars     *rfits                  PROTO((FILE *f, int *nstars));
     163Stars     *rtext                  PROTO((FILE *f, int *nstars));
     164void       save_pt_catalog        PROTO((Catalog *catalog));  /*** choose new name ***/
     165double     scat_subpix            PROTO((double x, double y));
     166time_t     short_date_to_sec      PROTO((char *date));
     167void       sort_lists             PROTO((float *X, float *Y, int *S, int N));
     168void       sort_regions           PROTO((GSCRegion *region, int N));
     169void       sort_stars             PROTO((Stars *stars, int N));
     170int        str_to_radec           PROTO((double *ra, double *dec, char *str1, char *str2));
     171void       unlock_image_db        PROTO((Image *image));
     172void       update_coords          PROTO((Average *average, Measure *measure, int *next));
     173void       wcatalog               PROTO((Catalog *catalog));
     174void       wimage                 PROTO((Image *image));
    115175
    116 int gcatalog (Catalog *catalog);
    117 void gregion_star (Stars *star, GSCRegion *region);
    118 GSCRegion *gregion_image (Image *image, int *Nregions);
    119 int edge_check (double *x1, double *y1, double *x2, double *y2);
    120 double opening_angle (double x1, double y1, double x2, double y2, double x3, double y3);
    121 Stars *gstars (char *file, int *NSTARS, Image *image);
    122 int in_image (double r, double d, Image *image);
    123 void wcatalog (Catalog *catalog);
    124 void ConfigInit (int *argc, char **argv);
    125 void aregion (GSCRegion *region, FILE *f, double ra, double dec);
    126 short airmass (short secz_image, double ra, double dec, double st, double latitude);
    127 void InitCalibration ();
    128 void FindCalibration (Image *image);
    129 double get_subpix (double x, double y);
    130 void load_subpix ();
    131 double scat_subpix (double x, double y);
    132 void mkcatalog (GSCRegion *region, Catalog *catalog);
    133 Stars *grefstars (char *file, int *Nstars);
    134 Stars **find_subset (GSCRegion *region, Stars *stars, int Nstars, int *NSTARS);
    135 int match_refstars (Stars *stars, int Nstars);
    136 int parse_time (Header *header);
    137 
    138 void check_permissions (char *basefile);
    139 void make_backup (char *filename);
    140 void uppercase (char *string);
    141 
    142 void sort_lists (float *X, float *Y, int *S, int N);
    143 void fsort (float *X, int N);
    144 void fsort2 (float *X, float *Y, int N);
    145 void sort_stars (Stars *stars, int N);
    146 void sort_regions (GSCRegion *region, int N);
    147 
    148 char *sec_to_date (time_t second);
    149 double sec_to_jd (time_t second);
    150 int chk_time (char *line);
    151 int dms_to_ddd (double *Value, char *string);
    152 int hms_to_deg (double *h0, double *h1, double *d0, double *d1, char *string);
    153 int str_to_dtime (char *line, double *second);
    154 int str_to_radec (double *ra, double *dec, char *str1, char *str2);
    155 int str_to_time (char *line, time_t *second);
    156 time_t jd_to_sec (double jd);
    157 time_t date_to_sec (char *date);
    158 time_t short_date_to_sec (char *date);
    159 
     176void       uppercase              PROTO((char *string));
     177void       fsort                  PROTO((float *X, int N));
     178void       fsort2                 PROTO((float *X, float *Y, int N));
    160179
    161180/**
     
    168187**/
    169188
    170 Stars *get2mass (GSCRegion *patch, int *NSTARS, int mode);
    171 GSCRegion *gregion_stars (Stars *stars, int Nstars, int *Nregion);
    172 Stars *grefstars (char *file, int *Nstars);
    173 GSCRegion *LoadRegions (int *nregions);
    174 int FindRegionByPoint (GSCRegion *regions, double ra, double dec, GSCRegion *gsc, int Ngsc);
    175 int FindRegionDecBandStart (GSCRegion *region, int Nregion, double dec);
    176 int FindRegionDecBandStop (GSCRegion *region, int Nregion, double dec);
    177 int FindDecBand (double dec, double *DEC0, double *DEC1);
    178 
    179 int hms_to_deg (double *h0, double *h1, double *d0, double *d1, char *string);
    180 void find_matches_refstars (GSCRegion *region, Stars **stars, int Nstars, Catalog *catalog);
    181 Stars *gstars (char *file, int *NSTARS, Image *image);
    182 void find_matches (GSCRegion *region, Stars *stars, int Nstars, Catalog *catalog, Image *image, Image *overlap, int Noverlap);
    183 Stars *getusno (GSCRegion *catstats, int *Nstars);
    184 Stars *rd_gsc (char *filename, int *nstars);
    185 Stars *getgsc (GSCRegion *patch, int *NSTARS);
    186 Stars *grefcat (char *Refcat, GSCRegion *catstats, int *nstars);
    187 void load_subpix ();
    188 double get_subpix (double x, double y);
    189 double scat_subpix (double x, double y);
    190 void help ();
    191 int args (int argc, char **argv);
    192 void InitCalibration ();
    193 void SaveCalibration (float M, float dM, float Mr, float dMr, float Mc, float A, int N);
    194 void AddToCalibration (Average *average, Measure *measure, Measure *new, int Nstar);
    195 void FindCalibration (Image *image);
    196 int load_pt_catalog (Catalog *catalog, GSCRegion *region);  /*** choose new name ***/
    197 void save_pt_catalog (Catalog *catalog);  /*** choose new name ***/
    198 void wcatalog (Catalog *catalog);
    199 GSCRegion *gregions (Image *image, int *Nregions);
    200 int gcatalog (Catalog *catalog);
    201 GSCRegion *gregion_image (Image *image, int *Nregions);
    202 void update_coords (Average *average, Measure *measure, int *next);
    203 int replace_match (Average *average, Measure *measure, Stars *star);
    204 FILE *GetDB (int *state);
    205 void lock_image_db ();
    206 void unlock_image_db (Image *image);
    207 void wimage (Image *image);
    208 Image *gimages (Image *image, int *Npimage);
    209 double opening_angle (double x1, double y1, double x2, double y2, double x3, double y3);
    210 int edge_check (double *x1, double *y1, double *x2, double *y2);
    211 GSCRegion *gregion_match (GSCRegion *regions, int *nregions);
    212 GSCRegion *gregion_patch (GSCRegion *patch, int *nregions);
    213 int dump_rawstars (Stars *stars, int Nstars);
    214 Stars *rfits (FILE *f, int *nstars);
    215 Stars *rtext (FILE *f, int *nstars);
    216 
Note: See TracChangeset for help on using the changeset viewer.