- Timestamp:
- Jun 25, 2015, 8:57:58 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150616/Ohana/src/addstar/include/addstar.h
r38540 r38542 50 50 } HeaderSet; 51 51 52 # if (0) 52 53 typedef struct { 53 54 Average average; … … 67 68 char *refcat; 68 69 } DVO_DATA; 70 # endif 69 71 70 72 # define IDTYPE int … … 212 214 SkyTable *SkyTableFromTychoIndex PROTO((char *filename, int VERBOSE)); 213 215 void check_permissions PROTO((char *basefile)); 214 int dump_rawstars PROTO((Stars *stars, unsigned int Nstars));215 216 int edge_check PROTO((double *x1, double *y1, double *x2, double *y2)); 216 217 Image *fakeimage PROTO((char *rootname, off_t *Nimage, int photcode)); 217 218 218 int find_matches_closest PROTO((SkyRegion *region, Catalog *newcat, Catalog *catalog, AddstarClientOptions options)); 219 219 double get_subpix PROTO((double x, double y)); 220 221 int find_matches_closest PROTO((SkyRegion *region, Catalog *newcat, Catalog *catalog, AddstarClientOptions options)); 222 223 # if (0) 220 224 int find_matches PROTO((SkyRegion *region, Stars *stars, unsigned int Nstars, Catalog *catalog, AddstarClientOptions options)); 221 // int find_matches_closest PROTO((SkyRegion *region, Stars *stars, unsigned int Nstars, Catalog *catalog, AddstarClientOptions options));222 225 int find_matches_refstars PROTO((SkyRegion *region, Stars **stars, unsigned int Nstars, Catalog *catalog, AddstarClientOptions options)); 223 226 int find_matches_closest_refstars PROTO((SkyRegion *region, Stars **stars, unsigned int Nstars, Catalog *catalog, AddstarClientOptions options)); 227 228 int dump_rawstars PROTO((Stars *stars, unsigned int Nstars)); 224 229 225 230 Stars **find_subset PROTO((SkyRegion *region, Stars *stars, unsigned int Nstars, unsigned int *NSTARS)); 226 231 int gcatalog PROTO((Catalog *catalog)); 227 232 Stars *get2mass PROTO((SkyRegion *patch, int photcode, int mode, unsigned int *NSTARS)); 228 double get_subpix PROTO((double x, double y));229 233 230 234 Stars *greference PROTO((char *Refcat, SkyRegion *catstats, int photcode, unsigned int *nstars)); … … 235 239 // load text-based stars (REF only in the sense of REF photcodes) 236 240 Stars *grefstars PROTO((char *file, int photcode, unsigned int *Nstars)); 241 242 Stars *rd_gsc PROTO((char *filename, unsigned int *nstars)); 243 244 int replace_match PROTO((Average *average, Measure *measure, Stars *star)); 245 # endif 237 246 238 247 Catalog *LoadStars PROTO((char *file, Image **images, off_t *Nimages, AddstarClientOptions *options)); … … 250 259 double opening_angle PROTO((double x1, double y1, double x2, double y2, double x3, double y3)); 251 260 int parse_time PROTO((Header *header)); 252 Stars *rd_gsc PROTO((char *filename, unsigned int *nstars));253 int replace_match PROTO((Average *average, Measure *measure, Stars *star));254 261 int resort_catalogs PROTO((AddstarClientOptions *options, SkyTable *sky)); 255 262 int resort_catalogs_parallel PROTO((AddstarClientOptions *options, SkyList *sky)); … … 259 266 void resort_catalog_old PROTO((Catalog *catalog)); 260 267 268 // Stars *ReadStarsTEXT PROTO((FILE *f, unsigned int *nstars)); 269 270 int ReadImageHeader PROTO((Header *header, Image *image, int photcode)); 271 261 272 Catalog *ReadStarsFITS PROTO((FILE *f, Header *header, Header *in_theader)); 262 Stars *ReadStarsTEXT PROTO((FILE *f, unsigned int *nstars));263 Stars *ReadStarsSDSS PROTO((FILE *f, char *name, Header *header, Header *in_theader, Image *images, off_t *nimages, unsigned int *nstars));264 int ReadImageHeader PROTO((Header *header, Image *image, int photcode));265 273 Catalog *FilterStars PROTO((Catalog *newcat, Image *image, unsigned int imageID, const AddstarClientOptions *options)); 266 // Stars *MergeStars PROTO((Stars *stars, unsigned int *Nstars, Stars *instars, unsigned int Ninstars));267 268 274 int ReadXradFITS PROTO((FILE *f, Header *theader, Catalog *catalog)); 275 276 Catalog *LoadDataSDSS PROTO((FILE *f, char *file, Image **images, off_t *nvalid, Header **headers, off_t *extsize, HeaderSet *headerSets, off_t Nimages)); 277 Catalog *ReadStarsSDSS PROTO((FILE *f, char *name, Header *header, Header *in_theader, Image *images, off_t *nimages)); 269 278 270 279 double scat_subpix PROTO((double x, double y)); … … 286 295 AddstarClientOptions args_load2mass PROTO((int argc, char **argv, AddstarClientOptions options)); 287 296 AddstarClientOptions args_sedstar PROTO((int argc, char **argv, AddstarClientOptions options)); 297 298 SkyList *SkyListExistingSubset PROTO((SkyList *input, char *path)); 299 300 // these are all for the addstar client/server which has not been maintained 301 # if (0) 288 302 void args_server PROTO((int argc, char **argv)); 289 303 int CheckPassword PROTO((int BindSocket)); … … 298 312 int UpdateDatabase_Refcat PROTO((AddstarClientOptions *options, SkyRegion *UserPatch, char *refcat)); 299 313 SkyList *SkyListForStars PROTO((SkyTable *table, int depth, Stars *stars, unsigned int Nstars)); 300 SkyList *SkyListExistingSubset PROTO((SkyList *input, char *path));301 314 int SkyListSetPath PROTO((SkyList *list, char *path)); 302 315 int InitDataset PROTO((void)); … … 307 320 int NewRefcat_Thread PROTO((int BindSocket)); 308 321 int NewReflist_Thread PROTO((int BindSocket)); 309 310 int InitStar PROTO((Stars *star)); 322 # endif 311 323 312 324 int args_skycells (int argc, char **argv); … … 317 329 int ImageIndexFileInit (); 318 330 319 int LoadDataSDSS (FILE *f, char *file, Image **images, off_t *nvalid, Stars **stars, unsigned int *Nstars, Header **headers, off_t *extsize, HeaderSet *headerSets, off_t Nimages); 320 int LoadDataPMM (FILE *f, char *file, Image **images, off_t *nvalid, Stars **stars, unsigned int *Nstars); 331 Catalog *LoadDataPMM (FILE *f, char *file, Image **images, off_t *nvalid); 321 332 322 333 PhotCode *LoadMetadataPMM (char *datafile, Image *image); … … 340 351 void saveMosaicCoords (Coords *input); 341 352 342 Stars *ReadStarsUKIRT (FILE *f, char *name, Header *header, Image *images, off_t *nimages, unsigned int *nstars);343 int LoadDataUKIRT (FILE *f, char *file, Image **images, off_t *nimages, Stars **stars, unsigned int *Nstars, Header **headers, off_t *extsize, HeaderSet *headerSets, off_t NheaderSets);353 Catalog *ReadStarsUKIRT (FILE *f, char *name, Header *header, Image *images, off_t *nimages); 354 Catalog *LoadDataUKIRT (FILE *f, char *file, Image **images, off_t *nimages, Header **headers, off_t *extsize, HeaderSet *headerSets, off_t NheaderSets); 344 355 345 356 AddstarFile *LoadFilenames (int *nfile, char *filename, AddstarClientOptions *options);
Note:
See TracChangeset
for help on using the changeset viewer.
