IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 25, 2015, 8:57:58 AM (11 years ago)
Author:
eugene
Message:

removing Stars from addstar : converting to Catalog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150616/Ohana/src/addstar/include/addstar.h

    r38540 r38542  
    5050} HeaderSet;
    5151
     52# if (0)
    5253typedef struct {
    5354  Average  average;
     
    6768  char *refcat;
    6869} DVO_DATA;
     70# endif
    6971
    7072# define IDTYPE int
     
    212214SkyTable  *SkyTableFromTychoIndex PROTO((char *filename, int VERBOSE));
    213215void       check_permissions      PROTO((char *basefile));
    214 int        dump_rawstars          PROTO((Stars *stars, unsigned int Nstars));
    215216int        edge_check             PROTO((double *x1, double *y1, double *x2, double *y2));
    216217Image     *fakeimage              PROTO((char *rootname, off_t *Nimage, int photcode));
    217218
    218 int        find_matches_closest          PROTO((SkyRegion *region, Catalog *newcat, Catalog *catalog, AddstarClientOptions options));
    219 
     219double     get_subpix             PROTO((double x, double y));
     220
     221int        find_matches_closest   PROTO((SkyRegion *region, Catalog *newcat, Catalog *catalog, AddstarClientOptions options));
     222
     223# if (0)
    220224int        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));
    222225int        find_matches_refstars         PROTO((SkyRegion *region, Stars **stars, unsigned int Nstars, Catalog *catalog, AddstarClientOptions options));
    223226int        find_matches_closest_refstars PROTO((SkyRegion *region, Stars **stars, unsigned int Nstars, Catalog *catalog, AddstarClientOptions options));
     227
     228int        dump_rawstars          PROTO((Stars *stars, unsigned int Nstars));
    224229
    225230Stars    **find_subset            PROTO((SkyRegion *region, Stars *stars, unsigned int Nstars, unsigned int *NSTARS));
    226231int        gcatalog               PROTO((Catalog *catalog));
    227232Stars     *get2mass               PROTO((SkyRegion *patch, int photcode, int mode, unsigned int *NSTARS));
    228 double     get_subpix             PROTO((double x, double y));
    229233
    230234Stars     *greference             PROTO((char *Refcat, SkyRegion *catstats, int photcode, unsigned int *nstars));
     
    235239// load text-based stars (REF only in the sense of REF photcodes)
    236240Stars     *grefstars              PROTO((char *file, int photcode, unsigned int *Nstars));
     241
     242Stars     *rd_gsc                 PROTO((char *filename, unsigned int *nstars));
     243
     244int        replace_match          PROTO((Average *average, Measure *measure, Stars *star));
     245# endif
    237246
    238247Catalog   *LoadStars              PROTO((char *file, Image **images, off_t *Nimages, AddstarClientOptions *options));
     
    250259double     opening_angle          PROTO((double x1, double y1, double x2, double y2, double x3, double y3));
    251260int        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));
    254261int        resort_catalogs        PROTO((AddstarClientOptions *options, SkyTable *sky));
    255262int        resort_catalogs_parallel PROTO((AddstarClientOptions *options, SkyList *sky));
     
    259266void       resort_catalog_old     PROTO((Catalog *catalog));
    260267
     268// Stars  *ReadStarsTEXT          PROTO((FILE *f, unsigned int *nstars));
     269
     270int        ReadImageHeader        PROTO((Header *header, Image *image, int photcode));
     271
    261272Catalog   *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));
    265273Catalog   *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 
    268274int        ReadXradFITS           PROTO((FILE *f, Header *theader, Catalog *catalog));
     275
     276Catalog   *LoadDataSDSS           PROTO((FILE *f, char *file, Image **images, off_t *nvalid, Header **headers, off_t *extsize, HeaderSet *headerSets, off_t Nimages));
     277Catalog   *ReadStarsSDSS          PROTO((FILE *f, char *name, Header *header, Header *in_theader, Image *images, off_t *nimages));
    269278
    270279double     scat_subpix            PROTO((double x, double y));
     
    286295AddstarClientOptions args_load2mass PROTO((int argc, char **argv, AddstarClientOptions options));
    287296AddstarClientOptions args_sedstar PROTO((int argc, char **argv, AddstarClientOptions options));
     297
     298SkyList   *SkyListExistingSubset  PROTO((SkyList *input, char *path));
     299
     300// these are all for the addstar client/server which has not been maintained
     301# if (0)
    288302void       args_server            PROTO((int argc, char **argv));
    289303int        CheckPassword          PROTO((int BindSocket));
     
    298312int        UpdateDatabase_Refcat  PROTO((AddstarClientOptions *options, SkyRegion *UserPatch, char *refcat));
    299313SkyList   *SkyListForStars        PROTO((SkyTable *table, int depth, Stars *stars, unsigned int Nstars));
    300 SkyList   *SkyListExistingSubset  PROTO((SkyList *input, char *path));
    301314int        SkyListSetPath         PROTO((SkyList *list, char *path));
    302315int        InitDataset            PROTO((void));
     
    307320int        NewRefcat_Thread       PROTO((int BindSocket));
    308321int        NewReflist_Thread      PROTO((int BindSocket));
    309 
    310 int        InitStar               PROTO((Stars *star));
     322# endif
    311323
    312324int args_skycells (int argc, char **argv);
     
    317329int ImageIndexFileInit ();
    318330
    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);
     331Catalog *LoadDataPMM (FILE *f, char *file, Image **images, off_t *nvalid);
    321332
    322333PhotCode *LoadMetadataPMM (char *datafile, Image *image);
     
    340351void saveMosaicCoords (Coords *input);
    341352
    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);
     353Catalog *ReadStarsUKIRT (FILE *f, char *name, Header *header, Image *images, off_t *nimages);
     354Catalog *LoadDataUKIRT (FILE *f, char *file, Image **images, off_t *nimages, Header **headers, off_t *extsize, HeaderSet *headerSets, off_t NheaderSets);
    344355
    345356AddstarFile *LoadFilenames (int *nfile, char *filename, AddstarClientOptions *options);
Note: See TracChangeset for help on using the changeset viewer.