IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5441


Ignore:
Timestamp:
Oct 24, 2005, 10:34:31 AM (21 years ago)
Author:
eugene
Message:

added skyregion functions

Location:
trunk/Ohana/src/libdvo
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/Makefile

    r5439 r5441  
    4040$(SRC)/dvo_convert_elixir.$(ARCH).o    \
    4141$(SRC)/dvo_convert_loneos.$(ARCH).o    \
    42 $(SRC)/dvo_convert_panstarrs.$(ARCH).o
     42$(SRC)/dvo_convert_panstarrs.$(ARCH).o \
     43$(SRC)/skyregion_io.$(ARCH).o    \
     44$(SRC)/skyregion_gsc.$(ARCH).o    \
     45$(SRC)/skyregion_ops.$(ARCH).o
    4346
    4447AOBJ = \
  • trunk/Ohana/src/libdvo/include/dvo.h

    r5346 r5441  
    106106} FITS_DB;
    107107
     108/* SkyRegion : better implementation than GSCRegion */
     109typedef struct {
     110  int Nregions;
     111  SkyRegion *regions;
     112} SkyTable;
     113
     114typedef struct {
     115  int Nregions;
     116  SkyRegion **regions;
     117} SkyList;
     118
    108119# if (0)
    109120/* structure for data on a catalog region */
     
    192203int FindMosaicForImage_MatchSearch (Image *images, int Nimages, int entry);
    193204int BuildChipMatch (Image *images, int Nimages);
     205void SetImageCorners (double *X, double *Y, Image *image);
    194206
    195207short int putMi (double value);
     
    322334ImagePanstarrs *ImageInternalToPanstarrs (Image *in, int Nvalues);
    323335
     336/* skyregion APIs */
     337int SkyTableSave (SkyTable *table, char *filename);
     338SkyTable *SkyTableLoad (char *filename, int VERBOSE);
     339SkyTable *SkyTableFromGSC (char *filename, int depth, int VERBOSE);
     340SkyRegion *SkyRegionByPoint (SkyTable *table, int depth, double ra, double dec);
     341SkyList *SkyListByPoint (SkyTable *table, double ra, double dec);
     342SkyList *SkyListByRadius (SkyTable *table, int depth, double RA, double DEC, double radius);
     343SkyList *SkyListByPatch (SkyTable *table, int depth, SkyRegion *patch);
     344SkyList *SkyListByImage (SkyTable *table, int depth, Image *image, Coords *mosaic);
     345SkyList *SkyListByBounds (SkyTable *table, int depth, double Rmin, double Rmax, double Dmin, double Dmax);
     346SkyList *SkyListChildrenByBounds (SkyTable *table, int No, int depth, double Rmin, double Rmax, double Dmin, double Dmax);
     347int SkyListFree (SkyList *list);
     348int SkyTableFree (SkyTable *table);
     349
    324350# endif
Note: See TracChangeset for help on using the changeset viewer.