Changeset 3339 for trunk/Ohana/src/addstar/include/addstar.h
- Timestamp:
- Feb 28, 2005, 11:07:26 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/addstar/include/addstar.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/include/addstar.h
r2457 r3339 24 24 double DEFAULT_RADIUS, NSIGMA, SNLIMIT; 25 25 double ZeroPt; 26 double Latitude, SiderealTime; 26 27 int VERBOSE; 27 28 int SKIP_MISSED; … … 40 41 char AirmassKeyword[64]; 41 42 char CCDNumKeyword[64]; 43 char STKeyword[64]; 44 char SubpixDatafile[256]; 42 45 43 46 int CalReference; … … 47 50 int ONLY_IMAGES; 48 51 int FORCE_READ; 52 int SKYPROBE; 53 int ADDREFS; 54 int REPLACE; 55 int ONLY_MATCH; 49 56 57 time_t TIMEREF; 58 59 int main (int argc, char **argv); 50 60 int Shutdown (); 51 61 void TrapSignal (int sig); 52 int main (int argc, char **argv);53 62 int SetSignals (); 63 void help (); 64 int args (int argc, char **argv); 65 void SetProtect (int mode); 66 54 67 int gcatalog (Catalog *catalog); 55 GSCRegion *gregions (Image *image, int *Nregions); 68 void gregion_star (Stars *star, GSCRegion *region); 69 GSCRegion *gregion_image (Image *image, int *Nregions); 56 70 Image *gimages (FILE *f, Image *image, int *Npimage); 57 71 int edge_check (double *x1, double *y1, double *x2, double *y2); … … 59 73 void wimage (FILE *f, int dbstate, Image *image, int Nstars); 60 74 Stars *gstars (char *file, int *NSTARS, Image *image); 75 void find_matches_refstars (GSCRegion *region, Stars *stars, int Nstars, Catalog *catalog); 61 76 void find_matches (GSCRegion *region, Stars *stars, int Nstars, Catalog *catalog, Image *image, Image *pimage, int Nimage); 62 77 int in_image (double r, double d, Image *image); 63 78 void wcatalog (Catalog *catalog); 79 void ConfigInit (int *argc, char **argv); 80 void aregion (GSCRegion *region, FILE *f, double ra, double dec); 81 void wimage (FILE *f, int dbstate, Image *image, int Nstars); 82 double airmass (double ra, double dec, double st, double latitude); 83 void InitCalibration (); 84 void SaveCalibration (float M, float dM, float Mr, float dMr, float Mc, float A, int N, float ra, float dec, float x, float y); 85 void FindCalibration (Image *image); 86 double get_subpix (double x, double y); 87 void load_subpix (); 88 double scat_subpix (double x, double y); 89 void mkcatalog (GSCRegion *region, Catalog *catalog); 90 Stars *grefstars (char *file, int *Nstars); 91 Stars *find_subset (GSCRegion *region, Stars *stars, int Nstars, int *NSTARS); 92 int match_refstars (Stars *stars, int Nstars); 93 int parse_time (Header *header); 94 95 void check_permissions (char *basefile); 96 void make_backup (char *filename); 97 void uppercase (char *string); 98 64 99 void sort_lists (float *X, float *Y, int *S, int N); 65 100 void fsort (float *X, int N); 66 void ConfigInit (int *argc, char **argv); 101 void fsort2 (float *X, float *Y, int N); 102 103 char *sec_to_date (time_t second); 104 double sec_to_jd (time_t second); 105 int chk_time (char *line); 106 int dms_to_ddd (double *Value, char *string); 67 107 int 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); 108 int str_to_dtime (char *line, double *second); 109 int str_to_radec (double *ra, double *dec, char *str1, char *str2); 110 int str_to_time (char *line, time_t *second); 111 time_t jd_to_sec (double jd); 112 time_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.
