IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5228


Ignore:
Timestamp:
Oct 6, 2005, 6:08:40 AM (21 years ago)
Author:
eugene
Message:

renamed phot_catalog... to dvo_catalog..., added SPLIT mode, added SPLIT support to Catalog

Location:
trunk/Ohana/src/libohana
Files:
4 added
3 deleted
2 edited

Legend:

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

    r5014 r5228  
    4747$(SRC)/fits_db.$(ARCH).o         \
    4848$(SRC)/photfits.$(ARCH).o        \
    49 $(SRC)/dvo_image.$(ARCH).o           \
    50 $(SRC)/dvo_image_raw.$(ARCH).o           \
    51 $(SRC)/phot_catalog.$(ARCH).o    \
    52 $(SRC)/phot_catalog_mef.$(ARCH).o      \
    53 $(SRC)/phot_catalog_raw.$(ARCH).o      \
     49$(SRC)/dvo_image.$(ARCH).o       \
     50$(SRC)/dvo_image_raw.$(ARCH).o   \
     51$(SRC)/dvo_catalog.$(ARCH).o     \
     52$(SRC)/dvo_catalog_raw.$(ARCH).o       \
     53$(SRC)/dvo_catalog_mef.$(ARCH).o       \
     54$(SRC)/dvo_catalog_split.$(ARCH).o     \
    5455$(SRC)/dvo_convert.$(ARCH).o           \
    5556$(SRC)/dvo_convert_elixir.$(ARCH).o    \
  • trunk/Ohana/src/libohana/include/dvo.h

    r5014 r5228  
    118118
    119119/* a catalog contains this data */
    120 typedef struct {
    121   /* description of the catalog file: */
    122   char *filename;
    123   int lockmode;
    124   FILE *f;
    125 
    126   /* extra table data if needed (move these to enums?) */
    127   # if (0)
    128   char catmode[10];         /* storage mode: raw, mef, split, mysql */
    129   char average_format[80];  /* table format: internal, loneos, elixir, panstarrs */
    130   char measure_format[80];  /* table format: must match average_format */
    131   char secfilt_format[80];  /* table format: must match average_format */
    132   # endif
    133 
    134   int catmode;
    135   int catformat;
    136  
    137   /* data in the catalog */
     120typedef struct Catalog {
     121  char *filename;                       /* catalog file */
     122  FILE *f;                              /* file descriptor */
    138123  Header  header;
     124
     125  /* data in the catalog file */
    139126  Average *average;
    140127  Measure *measure;
     
    143130  int Naverage, Nmeasure, Nmissing, Nsecfilt;
    144131
     132  /* pointers to split data files */
     133  struct Catalog *measure_catalog;              /* measure catalog data (split) */
     134  struct Catalog *missing_catalog;              /* missing catalog data (split) */
     135  struct Catalog *secfilt_catalog;              /* secfilt catalog data (split) */
     136
     137  /* extra catalog information */
     138  int lockmode;
     139  int catmode;                          /* storage mode (raw, mef, split, mysql) */
     140  int catformat;                        /* storage format (elixir, panstarrs, etc) */
     141  int ordered;                          /* is measure table average-ordered? */
     142 
    145143  /* pointers for data manipulation */
    146144  int *found;
     
    149147  float *X;
    150148  float *Y;
     149
    151150} Catalog;
    152151
     
    290289int load_catalog_mef (Catalog *catalog, char mode, int VERBOSE);
    291290int save_catalog_mef (Catalog *catalog, char VERBOSE);
     291int load_catalog_split (Catalog *catalog, char mode, int VERBOSE);
     292int save_catalog_split (Catalog *catalog, char VERBOSE);
    292293
    293294/*** DVO image db I/O Functions ***/
Note: See TracChangeset for help on using the changeset viewer.