Changeset 4805 for trunk/Ohana/src/addstar/include/addstar.h
- Timestamp:
- Aug 16, 2005, 6:41:16 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/addstar/include/addstar.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/include/addstar.h
r4538 r4805 106 106 time_t TIMEREF; 107 107 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 ***/ 109 void AddToCalibration PROTO((Average *average, Measure *measure, Measure *new, int Nstar)); 110 void ConfigInit PROTO((int *argc, char **argv)); 111 void FindCalibration PROTO((Image *image)); 112 int FindDecBand PROTO((double dec, double *DEC0, double *DEC1)); 113 int FindRegionByPoint PROTO((GSCRegion *regions, double ra, double dec, GSCRegion *gsc, int Ngsc)); 114 int FindRegionDecBandStart PROTO((GSCRegion *region, int Nregion, double dec)); 115 int FindRegionDecBandStop PROTO((GSCRegion *region, int Nregion, double dec)); 116 FILE *GetDB PROTO((int *state)); 117 void InitCalibration PROTO(()); 118 GSCRegion *LoadRegions PROTO((int *nregions)); 119 void SaveCalibration PROTO((float M, float dM, float Mr, float dMr, float Mc, float A, int N)); 120 void SetProtect PROTO((int mode)); 121 int SetSignals PROTO(()); 122 int Shutdown PROTO((char *message, ...); ) 123 void TrapSignal PROTO((int sig)); 124 short airmass PROTO((short secz_image, double ra, double dec, double st, double latitude)); 125 void aregion PROTO((GSCRegion *region, FILE *f, double ra, double dec)); 126 int args PROTO((int argc, char **argv)); 127 void check_permissions PROTO((char *basefile)); 128 int dump_rawstars PROTO((Stars *stars, int Nstars)); 129 int edge_check PROTO((double *x1, double *y1, double *x2, double *y2)); 130 void find_matches PROTO((GSCRegion *region, Stars *stars, int Nstars, Catalog *catalog, Image *image, Image *overlap, int Noverlap)); 131 void find_matches_refstars PROTO((GSCRegion *region, Stars **stars, int Nstars, Catalog *catalog)); 132 Stars **find_subset PROTO((GSCRegion *region, Stars *stars, int Nstars, int *NSTARS)); 133 int gcatalog PROTO((Catalog *catalog)); 134 Stars *get2mass PROTO((GSCRegion *patch, int *NSTARS, int mode)); 135 double get_subpix PROTO((double x, double y)); 136 Stars *getgsc PROTO((GSCRegion *patch, int *NSTARS)); 137 Stars *getusno PROTO((GSCRegion *catstats, int *Nstars)); 138 Image *gimages PROTO((Image *image, int *Npimage)); 139 Stars *grefcat PROTO((char *Refcat, GSCRegion *catstats, int *nstars)); 140 Stars *grefstars PROTO((char *file, int *Nstars)); 141 GSCRegion *gregion_image PROTO((Image *image, int *Nregions)); 142 GSCRegion *gregion_match PROTO((GSCRegion *regions, int *nregions)); 143 GSCRegion *gregion_patch PROTO((GSCRegion *patch, int *nregions)); 144 void gregion_star PROTO((Stars *star, GSCRegion *region)); 145 GSCRegion *gregion_stars PROTO((Stars *stars, int Nstars, int *Nregion)); 146 GSCRegion *gregions PROTO((Image *image, int *Nregions)); 147 Stars *gstars PROTO((char *file, int *NSTARS, Image *image)); 148 void help PROTO(()); 149 int hms_to_deg PROTO((double *h0, double *h1, double *d0, double *d1, char *string)); 150 int in_image PROTO((double r, double d, Image *image)); 151 int load_pt_catalog PROTO((Catalog *catalog, GSCRegion *region)); /*** choose new name ***/ 152 void load_subpix PROTO(()); 153 void lock_image_db PROTO(()); 154 int main PROTO((int argc, char **argv)); 155 void make_backup PROTO((char *filename)); 156 int match_refstars PROTO((Stars *stars, int Nstars)); 157 void mkcatalog PROTO((GSCRegion *region, Catalog *catalog)); 158 double opening_angle PROTO((double x1, double y1, double x2, double y2, double x3, double y3)); 159 int parse_time PROTO((Header *header)); 160 Stars *rd_gsc PROTO((char *filename, int *nstars)); 161 int replace_match PROTO((Average *average, Measure *measure, Stars *star)); 162 Stars *rfits PROTO((FILE *f, int *nstars)); 163 Stars *rtext PROTO((FILE *f, int *nstars)); 164 void save_pt_catalog PROTO((Catalog *catalog)); /*** choose new name ***/ 165 double scat_subpix PROTO((double x, double y)); 166 time_t short_date_to_sec PROTO((char *date)); 167 void sort_lists PROTO((float *X, float *Y, int *S, int N)); 168 void sort_regions PROTO((GSCRegion *region, int N)); 169 void sort_stars PROTO((Stars *stars, int N)); 170 int str_to_radec PROTO((double *ra, double *dec, char *str1, char *str2)); 171 void unlock_image_db PROTO((Image *image)); 172 void update_coords PROTO((Average *average, Measure *measure, int *next)); 173 void wcatalog PROTO((Catalog *catalog)); 174 void wimage PROTO((Image *image)); 115 175 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 176 void uppercase PROTO((char *string)); 177 void fsort PROTO((float *X, int N)); 178 void fsort2 PROTO((float *X, float *Y, int N)); 160 179 161 180 /** … … 168 187 **/ 169 188 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.
