- Timestamp:
- Jun 1, 2015, 8:10:18 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20150429/src/libdvo/include/dvo.h
r38345 r38346 10 10 11 11 /* DVO table modes */ 12 typedef enum {DVO_MODE_UNDEF, DVO_MODE_RAW, DVO_MODE_MEF, DVO_MODE_SPLIT, DVO_MODE_MYSQL} DVOTableMode; 12 typedef enum {DVO_MODE_UNDEF = 0, DVO_MODE_RAW, DVO_MODE_MEF, DVO_MODE_SPLIT, DVO_MODE_MYSQL} DVOCatMode; 13 14 /* DVO table modes */ 15 typedef enum {DVO_COMPRESS_NONE = 0, DVO_COMPRESS_GZIP_1} DVOCatCompress; // 13 16 14 17 /* DVO table formats */ 15 18 typedef enum { 16 DVO_FORMAT_UNDEF ,19 DVO_FORMAT_UNDEF = 0, 17 20 DVO_FORMAT_INTERNAL, 18 21 DVO_FORMAT_ELIXIR, … … 30 33 DVO_FORMAT_PS1_V4, 31 34 DVO_FORMAT_PS1_V5, 32 } DVOTableFormat; 33 34 /* image data modes in RegImage */ 35 typedef enum {T_UNDEF = -1, T_NONE, T_OBJECT, T_DARK, T_BIAS, T_FLAT, T_MASK, T_FRINGE, T_SCATTER, T_MODES, T_FRINGEPTS, T_ANY, N_TYPE} ElixirDetrendTypes; 36 typedef enum {M_UNDEF = -1, M_NONE, M_MEF, M_SPLIT, M_SINGLE, M_CUBE, M_SLICE, M_MODES, N_MODE} ElixirDetrendModes; 35 } DVOCatFormat; 37 36 38 37 typedef enum {DVO_CAT_OPEN_FAIL, DVO_CAT_OPEN_OK, DVO_CAT_OPEN_EMPTY} DVOCatalogOpenModes; 39 40 // these are used as NAN for types of int values41 typedef enum {42 NAN_S_CHAR = 0x7f,43 NAN_U_CHAR = 0xff, // was NO_ERR44 NAN_S_SHORT = 0x7fff, // was NO_MAG45 NAN_U_SHORT = 0xffff,46 NAN_S_INT = 0x7fffffff,47 NAN_U_INT = (signed int) 0xffffffff,48 } DVO_INT_NAN;49 50 // max path length51 # define DVO_MAX_PATH 102452 53 /* RegImage.flag values */54 # define IMREG_DIST 0x01 /* image distributed, only imregister-3.0 */55 38 56 39 /* catalog values to be loaded */ … … 74 57 SKIP_GALSHAPE = 0x8000, 75 58 } DVOCatFlags; 59 60 /* image data modes in RegImage */ 61 typedef enum {T_UNDEF = -1, T_NONE, T_OBJECT, T_DARK, T_BIAS, T_FLAT, T_MASK, T_FRINGE, T_SCATTER, T_MODES, T_FRINGEPTS, T_ANY, N_TYPE} ElixirDetrendTypes; 62 typedef enum {M_UNDEF = -1, M_NONE, M_MEF, M_SPLIT, M_SINGLE, M_CUBE, M_SLICE, M_MODES, N_MODE} ElixirDetrendModes; 63 64 // these are used as NAN for types of int values 65 typedef enum { 66 NAN_S_CHAR = 0x7f, 67 NAN_U_CHAR = 0xff, // was NO_ERR 68 NAN_S_SHORT = 0x7fff, // was NO_MAG 69 NAN_U_SHORT = 0xffff, 70 NAN_S_INT = 0x7fffffff, 71 NAN_U_INT = (signed int) 0xffffffff, 72 } DVO_INT_NAN; 73 74 // max path length 75 # define DVO_MAX_PATH 1024 76 77 /* RegImage.flag values */ 78 # define IMREG_DIST 0x01 /* image distributed, only imregister-3.0 */ 76 79 77 80 /* photometry code types */ … … 228 231 char lockstate; 229 232 char mode; /* what data storage mode is used for disk file? */ 230 char format;/* what data format is used for disk file? */233 DVOCatFormat format; /* what data format is used for disk file? */ 231 234 char virtual; /* is table in ftable or vtable? */ 232 235 char nativeOrder; /* is table in internal byte-order? */ … … 786 789 /* extra catalog information */ 787 790 char lockmode; 788 char catmode; /* storage mode (raw, mef, split, mysql) */ 789 char catformat; /* storage format (elixir, panstarrs, etc) */ 791 DVOCatMode catmode; /* storage mode (raw, mef, split, mysql) */ 792 DVOCatFormat catformat; /* storage format (elixir, panstarrs, etc) */ 793 DVOCatCompress catcompress; // output compress mode 794 DVOCatFlags catflags; /* choices to be loaded */ 795 790 796 int sorted; /* is measure table average-sorted? (NOTE this is an int only because gfits_scan %t requires it) */ 791 char compressOutput; 792 793 DVOCatFlags catflags; /* choices to be loaded */ 797 794 798 795 799 /* pointers for data manipulation */ … … 938 942 int dvo_catalog_save_complete (Catalog *catalog, char VERBOSE); 939 943 int dvo_catalog_update (Catalog *catalog, char VERBOSE); 940 int dvo_catalog_catformat (char *catformat); 941 int dvo_catalog_catmode (char *catmode); 944 DVOCatFormat dvo_catalog_catformat (char *catformat); 945 DVOCatMode dvo_catalog_catmode (char *catmode); 946 DVOCatCompress dvo_catalog_catcompress (char *catcompress); 947 char *dvo_catalog_compress_string (DVOCatCompress catcompress); 942 948 void dvo_catalog_test (Catalog *catalog, int halt); 943 949 … … 966 972 int WriteRawSecFilt (FILE *f, SecFilt *secfilt, off_t Nsecfilt, char format); 967 973 968 DVO TableFormat FtableGetFormat (FTable *ftable);969 970 Average *FtableToAverage (FTable *ftable, off_t *Naverage, char *format, SecFilt **primary, char nativeBytes);971 Measure *FtableToMeasure (FTable *ftable, Average *average, off_t *Nmeasure, char *format);972 SecFilt *FtableToSecFilt (FTable *ftable, off_t *Nsecfilt, char*format);973 Lensing *FtableToLensing (FTable *ftable, off_t *Nlensing, char*format);974 Lensobj *FtableToLensobj (FTable *ftable, off_t *Nlensobj, char*format);975 StarPar *FtableToStarPar (FTable *ftable, off_t *Nstarpar, char*format);976 GalShape *FtableToGalShape (FTable *ftable, off_t *Ngalshape, char*format);977 978 int FtableToImage (FTable *ftable, Header *theader, char*format);979 980 int AverageToFtable (FTable *ftable, Average *average, off_t Naverage, char format, SecFilt *primary, int swapFromNative);981 int MeasureToFtable (FTable *ftable, Average *average, Measure *measure, off_t Nmeasure, char format);982 int SecFiltToFtable (FTable *ftable, SecFilt *secfilt, off_t Nsecfilt, charformat);983 int LensingToFtable (FTable *ftable, Lensing *lensing, off_t Nlensing, charformat);984 int LensobjToFtable (FTable *ftable, Lensobj *lensobj, off_t Nlensobj, charformat);985 int StarParToFtable (FTable *ftable, StarPar *starpar, off_t Nstarpar, charformat);986 int GalShapeToFtable (FTable *ftable, GalShape *galshape, off_t Ngalshape, charformat);987 988 int ImageToFtable (FTable *ftable, Header *theader, charformat);989 int ImageToVtable (VTable *vtable, Header *theader, charformat);974 DVOCatFormat FtableGetFormat (FTable *ftable); 975 976 Measure *FtableToMeasure (FTable *ftable, Average *average, off_t *Nmeasure, DVOCatFormat *format); 977 Average *FtableToAverage (FTable *ftable, off_t *Naverage, DVOCatFormat *format, SecFilt **primary, char nativeBytes); 978 SecFilt *FtableToSecFilt (FTable *ftable, off_t *Nsecfilt, DVOCatFormat *format); 979 Lensing *FtableToLensing (FTable *ftable, off_t *Nlensing, DVOCatFormat *format); 980 Lensobj *FtableToLensobj (FTable *ftable, off_t *Nlensobj, DVOCatFormat *format); 981 StarPar *FtableToStarPar (FTable *ftable, off_t *Nstarpar, DVOCatFormat *format); 982 GalShape *FtableToGalShape (FTable *ftable, off_t *Ngalshape, DVOCatFormat *format); 983 984 int FtableToImage (FTable *ftable, Header *theader, DVOCatFormat *format); 985 986 int MeasureToFtable (FTable *ftable, Average *average, Measure *measure, off_t Nmeasure, DVOCatFormat format); 987 int AverageToFtable (FTable *ftable, Average *average, off_t Naverage, DVOCatFormat format, SecFilt *primary, int swapFromNative); 988 int SecFiltToFtable (FTable *ftable, SecFilt *secfilt, off_t Nsecfilt, DVOCatFormat format); 989 int LensingToFtable (FTable *ftable, Lensing *lensing, off_t Nlensing, DVOCatFormat format); 990 int LensobjToFtable (FTable *ftable, Lensobj *lensobj, off_t Nlensobj, DVOCatFormat format); 991 int StarParToFtable (FTable *ftable, StarPar *starpar, off_t Nstarpar, DVOCatFormat format); 992 int GalShapeToFtable (FTable *ftable, GalShape *galshape, off_t Ngalshape, DVOCatFormat format); 993 994 int ImageToFtable (FTable *ftable, Header *theader, DVOCatFormat format); 995 int ImageToVtable (VTable *vtable, Header *theader, DVOCatFormat format); 990 996 991 997 # include "loneos_defs.h"
Note:
See TracChangeset
for help on using the changeset viewer.
