IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 28, 2005, 11:07:26 AM (21 years ago)
Author:
eugene
Message:

working towards addstar-2-0

File:
1 edited

Legend:

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

    r2457 r3339  
    2424double DEFAULT_RADIUS, NSIGMA, SNLIMIT;
    2525double ZeroPt;
     26double Latitude, SiderealTime;
    2627int    VERBOSE;
    2728int    SKIP_MISSED;
     
    4041char AirmassKeyword[64];
    4142char CCDNumKeyword[64];
     43char STKeyword[64];
     44char SubpixDatafile[256];
    4245
    4346int CalReference;
     
    4750int ONLY_IMAGES;
    4851int FORCE_READ;
     52int SKYPROBE;
     53int ADDREFS;
     54int REPLACE;
     55int ONLY_MATCH;
    4956
     57time_t TIMEREF;
     58
     59int main (int argc, char **argv);
    5060int Shutdown (); 
    5161void TrapSignal (int sig);
    52 int main (int argc, char **argv);
    5362int SetSignals ();
     63void help ();
     64int args (int argc, char **argv);
     65void SetProtect (int mode);
     66
    5467int gcatalog (Catalog *catalog);
    55 GSCRegion *gregions (Image *image, int *Nregions);
     68void gregion_star (Stars *star, GSCRegion *region);
     69GSCRegion *gregion_image (Image *image, int *Nregions);
    5670Image *gimages (FILE *f, Image *image, int *Npimage);
    5771int edge_check (double *x1, double *y1, double *x2, double *y2);
     
    5973void wimage (FILE *f, int dbstate, Image *image, int Nstars);
    6074Stars *gstars (char *file, int *NSTARS, Image *image);
     75void find_matches_refstars (GSCRegion *region, Stars *stars, int Nstars, Catalog *catalog);
    6176void find_matches (GSCRegion *region, Stars *stars, int Nstars, Catalog *catalog, Image *image, Image *pimage, int Nimage);
    6277int in_image (double r, double d, Image *image);
    6378void wcatalog (Catalog *catalog);
     79void ConfigInit (int *argc, char **argv);
     80void aregion (GSCRegion *region, FILE *f, double ra, double dec);
     81void wimage (FILE *f, int dbstate, Image *image, int Nstars);
     82double airmass (double ra, double dec, double st, double latitude);
     83void InitCalibration ();
     84void SaveCalibration (float M, float dM, float Mr, float dMr, float Mc, float A, int N, float ra, float dec, float x, float y);
     85void FindCalibration (Image *image);
     86double get_subpix (double x, double y);
     87void load_subpix ();
     88double scat_subpix (double x, double y);
     89void mkcatalog (GSCRegion *region, Catalog *catalog);
     90Stars *grefstars (char *file, int *Nstars);
     91Stars *find_subset (GSCRegion *region, Stars *stars, int Nstars, int *NSTARS);
     92int match_refstars (Stars *stars, int Nstars);
     93int parse_time (Header *header);
     94
     95void check_permissions (char *basefile);
     96void make_backup (char *filename);
     97void uppercase (char *string);
     98
    6499void sort_lists (float *X, float *Y, int *S, int N);
    65100void fsort (float *X, int N);
    66 void ConfigInit (int *argc, char **argv);
     101void fsort2 (float *X, float *Y, int N);
     102
     103char *sec_to_date (time_t second);
     104double sec_to_jd (time_t second);
     105int chk_time (char *line);
     106int dms_to_ddd (double *Value, char *string);
    67107int hms_to_deg (double *h0, double *h1, double *d0, double *d1, char *string);
    68 void aregion (GSCRegion *region, FILE *f, double ra, double dec);
    69 void wimage (FILE *f, int dbstate, Image *image, int Nstars);
    70 void check_permissions (char *basefile);
    71 void make_backup (char *filename);
    72 void InitCalibration ();
    73 void SaveCalibration (float M, float dM, float Mr, float Mc, float A, int N, float ra, float dec, float x, float y);
    74 void FindCalibration (Image *image);
    75 void help ();
    76 int args (int argc, char **argv);
    77 int parse_time (Header *header);
    78 void uppercase (char *string);
    79 void mkcatalog (GSCRegion *region, Catalog *catalog);
     108int str_to_dtime (char *line, double *second);
     109int str_to_radec (double *ra, double *dec, char *str1, char *str2);
     110int str_to_time (char *line, time_t *second);
     111time_t jd_to_sec (double jd);
     112time_t date_to_sec (char *date);
     113
     114/**
     115  there is an inconsistency to be resolved: fixed structures (like Image)
     116  need a fixed bit-length time (e_time), but these functions all use the
     117  UNIX time_t types, which may be 32 or 64 bits, depending on the machine.
     118  This can be resolved by using time_t with these functions, but casting
     119  between e_time and time_t when necessary (ie, cannot return data to an
     120  e_time pointer from one of these functions)
     121**/
Note: See TracChangeset for help on using the changeset viewer.