Changeset 38553 for trunk/Ohana/src/addstar/include/addstar.h
- Timestamp:
- Jun 25, 2015, 10:41:05 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/addstar/include/addstar.h (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/include/addstar.h
r38467 r38553 33 33 34 34 # define myAbortF(FORMAT,...) { fprintf (stderr, FORMAT, __VA_ARGS__); abort(); } 35 36 // things that are needed for a single file 37 typedef struct { 38 char *filename; // name of the file on disk (full path) 39 char *imagename; // name of the image for user reference (eg, base of neb path, full path, etc) 40 } AddstarFile; 35 41 36 42 typedef struct { … … 44 50 } HeaderSet; 45 51 52 # if (0) 46 53 typedef struct { 47 54 Average average; … … 61 68 char *refcat; 62 69 } DVO_DATA; 70 # endif 63 71 64 72 # define IDTYPE int … … 190 198 AddstarClientOptions args PROTO((int argc, char **argv, AddstarClientOptions options)); 191 199 AddstarClientOptions args_parallel_client PROTO((int argc, char **argv, AddstarClientOptions options)); 200 void FreeConfig PROTO((void)); 192 201 193 202 void AddToCalibration PROTO((Average *average, SecFilt *secfilt, Measure *measure, Measure *new, off_t *next, off_t Nstar)); … … 205 214 SkyTable *SkyTableFromTychoIndex PROTO((char *filename, int VERBOSE)); 206 215 void check_permissions PROTO((char *basefile)); 207 int dump_rawstars PROTO((Stars *stars, unsigned int Nstars));208 216 int edge_check PROTO((double *x1, double *y1, double *x2, double *y2)); 209 217 Image *fakeimage PROTO((char *rootname, off_t *Nimage, int photcode)); 210 218 211 int find_matches PROTO((SkyRegion *region, Stars *stars, unsigned int Nstars, Catalog *catalog, AddstarClientOptions options)); 212 int find_matches_closest PROTO((SkyRegion *region, Stars *stars, unsigned int Nstars, Catalog *catalog, AddstarClientOptions options)); 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 int find_matches PROTO((SkyRegion *region, Catalog *newcat, Catalog *catalog, AddstarClientOptions options)); 223 224 # if (0) 213 225 int find_matches_refstars PROTO((SkyRegion *region, Stars **stars, unsigned int Nstars, Catalog *catalog, AddstarClientOptions options)); 214 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)); 215 229 216 230 Stars **find_subset PROTO((SkyRegion *region, Stars *stars, unsigned int Nstars, unsigned int *NSTARS)); 217 231 int gcatalog PROTO((Catalog *catalog)); 218 232 Stars *get2mass PROTO((SkyRegion *patch, int photcode, int mode, unsigned int *NSTARS)); 219 double get_subpix PROTO((double x, double y));220 233 221 234 Stars *greference PROTO((char *Refcat, SkyRegion *catstats, int photcode, unsigned int *nstars)); … … 227 240 Stars *grefstars PROTO((char *file, int photcode, unsigned int *Nstars)); 228 241 229 Stars *LoadStars PROTO((char *file, unsigned int *Nstars, Image **images, off_t *Nimages, AddstarClientOptions *options)); 242 Stars *rd_gsc PROTO((char *filename, unsigned int *nstars)); 243 244 int replace_match PROTO((Average *average, Measure *measure, Stars *star)); 245 # endif 246 247 Catalog *LoadStars PROTO((char *file, Image **images, off_t *Nimages, AddstarClientOptions *options)); 230 248 Header **LoadHeaders PROTO((FILE *f, int *mode, int *Nheader)); 231 249 HeaderSet *MatchHeaders PROTO((off_t **extsize, off_t *nimage, int mode, Header **headers, int Nheaders)); 232 int LoadData PROTO((FILE *f, char *file, Image **images, off_t *nvalid, Stars **stars, unsigned int *Nstars, Header **headers, off_t *extsize, HeaderSet *headerSets, int NheaderSets, AddstarClientOptions *options)); 250 void HeaderSetFree PROTO((HeaderSet *headerSets, off_t NheaderSets)); 251 Catalog *LoadData PROTO((FILE *f, AddstarFile *file, Image **images, off_t *nvalid, Header **headers, off_t *extsize, HeaderSet *headerSets, int NheaderSets, AddstarClientOptions *options)); 233 252 int GetZeroPointExposure PROTO((Header **headers, HeaderSet *headerSets, off_t Nimages)); 234 253 … … 240 259 double opening_angle PROTO((double x1, double y1, double x2, double y2, double x3, double y3)); 241 260 int parse_time PROTO((Header *header)); 242 Stars *rd_gsc PROTO((char *filename, unsigned int *nstars));243 int replace_match PROTO((Average *average, Measure *measure, Stars *star));244 261 int resort_catalogs PROTO((AddstarClientOptions *options, SkyTable *sky)); 245 262 int resort_catalogs_parallel PROTO((AddstarClientOptions *options, SkyList *sky)); … … 249 266 void resort_catalog_old PROTO((Catalog *catalog)); 250 267 251 Stars *ReadStarsFITS PROTO((FILE *f, Header *header, Header *in_theader, unsigned int *nstars)); 252 Stars *ReadStarsTEXT PROTO((FILE *f, unsigned int *nstars)); 253 Stars *ReadStarsSDSS PROTO((FILE *f, char *name, Header *header, Header *in_theader, Image *images, off_t *nimages, unsigned int *nstars)); 268 // Stars *ReadStarsTEXT PROTO((FILE *f, unsigned int *nstars)); 269 254 270 int ReadImageHeader PROTO((Header *header, Image *image, int photcode)); 255 Stars *FilterStars PROTO((Stars *instars, Image *image, unsigned int imageID, const AddstarClientOptions *options)); 256 Stars *MergeStars PROTO((Stars *stars, unsigned int *Nstars, Stars *instars, unsigned int Ninstars)); 257 258 int ReadXradFITS PROTO((FILE *f, Header *theader, Stars *stars, unsigned int Nstars)); 271 272 Catalog *ReadStarsFITS PROTO((FILE *f, Header *header, Header *in_theader)); 273 Catalog *FilterStars PROTO((Catalog *newcat, Image *image, unsigned int imageID, const AddstarClientOptions *options)); 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)); 259 278 260 279 double scat_subpix PROTO((double x, double y)); … … 276 295 AddstarClientOptions args_load2mass PROTO((int argc, char **argv, AddstarClientOptions options)); 277 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) 278 302 void args_server PROTO((int argc, char **argv)); 279 303 int CheckPassword PROTO((int BindSocket)); … … 288 312 int UpdateDatabase_Refcat PROTO((AddstarClientOptions *options, SkyRegion *UserPatch, char *refcat)); 289 313 SkyList *SkyListForStars PROTO((SkyTable *table, int depth, Stars *stars, unsigned int Nstars)); 290 SkyList *SkyListExistingSubset PROTO((SkyList *input, char *path));291 314 int SkyListSetPath PROTO((SkyList *list, char *path)); 292 315 int InitDataset PROTO((void)); … … 297 320 int NewRefcat_Thread PROTO((int BindSocket)); 298 321 int NewReflist_Thread PROTO((int BindSocket)); 299 300 int InitStar PROTO((Stars *star)); 322 # endif 301 323 302 324 int args_skycells (int argc, char **argv); 303 325 int ConfigInit_skycells (int *argc, char **argv); 304 int UpdateImageIDs ( Stars *stars, unsigned int Nstars, Image *images, off_t Nimages);326 int UpdateImageIDs (Catalog *catalog, Image *images, off_t Nimages); 305 327 306 328 int CheckDuplicateImageIDs (Image *images, off_t Nimages); 307 329 int ImageIndexFileInit (); 308 330 309 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); 310 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); 311 332 312 333 PhotCode *LoadMetadataPMM (char *datafile, Image *image); … … 330 351 void saveMosaicCoords (Coords *input); 331 352 332 333 Stars *ReadStarsUKIRT (FILE *f, char *name, Header *header, Image *images, off_t *nimages, unsigned int *nstars); 334 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); 355 356 AddstarFile *LoadFilenames (int *nfile, char *filename, AddstarClientOptions *options); 357 void AddstarFileFree (AddstarFile *file, int Nfile); 358 359 Catalog *addstar_catalog_init (int Nstars); 335 360 336 361 /**
Note:
See TracChangeset
for help on using the changeset viewer.
