Changeset 5443 for trunk/Ohana/src/addstar/include/addstar.h
- Timestamp:
- Oct 24, 2005, 10:36:17 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/addstar/include/addstar.h (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/include/addstar.h
r5347 r5443 11 11 /* used in find_matches, find_matches_refstars */ 12 12 # define IN_CATALOG(R,D) ( \ 13 ((D) >= region[0].D EC[0]) && ((D) < region[0].DEC[1]) && \14 ((R) >= region[0].R A[0]) && ((R) < region[0].RA[1]))13 ((D) >= region[0].Dmin) && ((D) < region[0].Dmax) && \ 14 ((R) >= region[0].Rmin) && ((R) < region[0].Rmax)) 15 15 16 16 /* grab named photcode */ … … 39 39 char HOSTNAME[80]; 40 40 int NVALID, *VALID_IP; 41 int SKY_DEPTH; /** XXX EAM : depth of catalog tables, fix usage */ 41 42 42 43 /* used to select entries from header (gstars or parse_time) (KEEP) */ … … 79 80 /* these depend on HOW we implement the client/server interaction for CAT/REF modes */ 80 81 time_t TIMEREF; // used by MODE REF 81 GSCRegion UserPatch; // used by MODE CAT82 SkyRegion UserPatch; // used by MODE CAT 82 83 char *SELECT_2MASS_QUALITY; // used only by get2mass_as 83 84 … … 86 87 AddstarClientOptions ConfigInit PROTO((int *argc, char **argv)); 87 88 void FindCalibration PROTO((Image *image)); 88 int FindDecBand PROTO((double dec, double *DEC0, double *DEC1));89 int FindRegionByPoint PROTO((GSCRegion *regions, double ra, double dec, GSCRegion *gsc, int Ngsc));90 int FindRegionDecBandStart PROTO((GSCRegion *region, int Nregion, double dec));91 int FindRegionDecBandStop PROTO((GSCRegion *region, int Nregion, double dec));92 89 FILE *GetDB PROTO((int *state)); 93 90 void InitCalibration PROTO(()); 94 GSCRegion *LoadRegions PROTO((int *nregions));95 91 void SaveCalibration PROTO((float M, float dM, float Mr, float dMr, float Mc, float A, int N)); 96 92 void SetProtect PROTO((int mode)); … … 100 96 float airmass PROTO((float secz_image, double ra, double dec, double st, double latitude)); 101 97 void SetAirmassQuality PROTO((int quality)); 102 void aregion PROTO((GSCRegion *region, FILE *f, double ra, double dec));103 98 AddstarClientOptions args PROTO((int argc, char **argv, AddstarClientOptions options)); 104 99 void check_permissions PROTO((char *basefile)); 105 100 int dump_rawstars PROTO((Stars *stars, int Nstars)); 106 101 int edge_check PROTO((double *x1, double *y1, double *x2, double *y2)); 107 void find_matches PROTO(( GSCRegion *region, Stars *stars, int Nstars, Catalog *catalog, Image *image, Image *overlap, int Noverlap, Coords *mosaic, AddstarClientOptions options));108 void find_matches_closest PROTO(( GSCRegion *region, Stars *stars, int Nstars, Catalog *catalog, Image *image, Image *overlap, int Noverlap, Coords *mosaic, AddstarClientOptions options));109 void find_matches_refstars PROTO(( GSCRegion *region, Stars **stars, int Nstars, Catalog *catalog, AddstarClientOptions options));110 Stars **find_subset PROTO(( GSCRegion *region, Stars *stars, int Nstars, int *NSTARS));102 void find_matches PROTO((SkyRegion *region, Stars *stars, int Nstars, Catalog *catalog, Image *image, Image *overlap, int Noverlap, Coords *mosaic, AddstarClientOptions options)); 103 void find_matches_closest PROTO((SkyRegion *region, Stars *stars, int Nstars, Catalog *catalog, Image *image, Image *overlap, int Noverlap, Coords *mosaic, AddstarClientOptions options)); 104 void find_matches_refstars PROTO((SkyRegion *region, Stars **stars, int Nstars, Catalog *catalog, AddstarClientOptions options)); 105 Stars **find_subset PROTO((SkyRegion *region, Stars *stars, int Nstars, int *NSTARS)); 111 106 int gcatalog PROTO((Catalog *catalog)); 112 Stars *get2mass PROTO(( GSCRegion *patch, int photcode, int mode, int *NSTARS));107 Stars *get2mass PROTO((SkyRegion *patch, int photcode, int mode, int *NSTARS)); 113 108 double get_subpix PROTO((double x, double y)); 114 Stars *getgsc PROTO(( GSCRegion *patch, int *NSTARS));115 Stars *getusno PROTO(( GSCRegion *catstats, int photcode, int *Nstars));109 Stars *getgsc PROTO((SkyRegion *patch, int *NSTARS)); 110 Stars *getusno PROTO((SkyRegion *catstats, int photcode, int *Nstars)); 116 111 Image *gimages PROTO((FITS_DB *db, Image *image, Coords *mosaic, int *Npimage)); 117 Stars *grefcat PROTO((char *Refcat, GSCRegion *catstats, int photcode, int *nstars));112 Stars *grefcat PROTO((char *Refcat, SkyRegion *catstats, int photcode, int *nstars)); 118 113 Stars *grefstars PROTO((char *file, int photcode, int *Nstars)); 119 GSCRegion *gregion_image PROTO((Image *image, Coords *mosaic, int *Nregions));120 GSCRegion *gregion_match PROTO((GSCRegion *regions, int *nregions));121 GSCRegion *gregion_patch PROTO((GSCRegion *patch, int *nregions));122 void gregion_star PROTO((Stars *star, GSCRegion *region));123 GSCRegion *gregion_stars PROTO((Stars *stars, int Nstars, int *Nregion));124 GSCRegion *gregions PROTO((Image *image, int *Nregions));125 114 Stars *gstars PROTO((char *file, int *NSTARS, int photcode, Image *image)); 126 115 void help PROTO(()); 127 116 int in_image PROTO((double r, double d, Image *image)); 128 int load_pt_catalog PROTO((Catalog *catalog, GSCRegion *region)); /*** choose new name ***/117 int load_pt_catalog PROTO((Catalog *catalog, SkyRegion *region)); /*** choose new name ***/ 129 118 void load_subpix PROTO(()); 130 119 void lock_image_db PROTO((FITS_DB *db, char *filename)); … … 132 121 void make_backup PROTO((char *filename)); 133 122 int match_refstars PROTO((Stars *stars, int Nstars)); 134 void mkcatalog PROTO(( GSCRegion *region, Catalog *catalog));123 void mkcatalog PROTO((SkyRegion *region, Catalog *catalog)); 135 124 double opening_angle PROTO((double x1, double y1, double x2, double y2, double x3, double y3)); 136 125 int parse_time PROTO((Header *header)); … … 165 154 Missing *sort_missing (Average *average, int Naverage, Missing *missing, int Nmissing, int *next_miss); 166 155 156 GSCRegion *LoadRegions PROTO((int *nregions)); 157 int FindDecBand PROTO((double dec, double *DEC0, double *DEC1)); 158 int FindRegionByPoint PROTO((GSCRegion *regions, double ra, double dec, GSCRegion *gsc, int Ngsc)); 159 int FindRegionDecBandStart PROTO((GSCRegion *region, int Nregion, double dec)); 160 int FindRegionDecBandStop PROTO((GSCRegion *region, int Nregion, double dec)); 161 void aregion PROTO((GSCRegion *region, FILE *f, double ra, double dec)); 162 GSCRegion *gregion_image PROTO((Image *image, Coords *mosaic, int *Nregions)); 163 GSCRegion *gregion_match PROTO((GSCRegion *regions, int *nregions)); 164 GSCRegion *gregion_patch PROTO((GSCRegion *patch, int *nregions)); 165 void gregion_star PROTO((Stars *star, GSCRegion *region)); 166 GSCRegion *gregion_stars PROTO((Stars *stars, int Nstars, int *Nregion)); 167 GSCRegion *gregions PROTO((Image *image, int *Nregions)); 168 167 169 /** 168 170 there is an inconsistency to be resolved: fixed structures (like Image) … … 192 194 int UpdateDatabase_Reflist (AddstarClientOptions *options, Stars *stars, int Nstars); 193 195 int UpdateDatabase_Refcat (AddstarClientOptions *options, GSCRegion *UserPatch, char *refcat); 196 197 SkyList *SkyListForStars (SkyTable *table, int depth, Stars *stars, int Nstars); 198 SkyList *SkyListExistingSubset (SkyList *input); 199 int SkyListSetPath (SkyList *list, char *path);
Note:
See TracChangeset
for help on using the changeset viewer.
