- Timestamp:
- Feb 19, 2009, 7:59:50 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branch_20090215/Ohana/src/libdvo/doc/notes.txt
r12332 r21536 2 2 Adding a new dvo catalog format. Assume the new format name is 'foo'. 3 3 4 1) create the autocode definition files for average, measure, secfilt, image5 these files must be a subset of the internal versions of these same6 tables. if you intend to add fields which don't exist in the7 internal tables, you must update the internal tables as well. the8 naming convention is: average-foo.d, etc.4 1) create the autocode definition files for average, measure, secfilt, 5 image, and photcode. these files must be a subset of the internal 6 versions of these same tables. if you intend to add fields which 7 don't exist in the internal tables, you must update the internal 8 tables as well. the naming convention is: average-foo.d, etc. 9 9 10 10 2) add the new definition files to libautocode/Makefile.Targets (both … … 22 22 (libdvo/src/dvo_catalog.c). The name should be "FOO". 23 23 24 6) add entry for structure size in dvo_catalog_load_raw 25 (libdvo/src/dvo_catalog_raw.c), since this is not available from 26 the header. 24 6) in libdvo/src/dvo_catalog_raw.c, update the FORMAT_CASE lists to 25 include the new STRUCT name. 27 26 28 7) add entries in ReadRawAverage, WriteRawAverage, ReadRawMeasure, 29 WriteRawMeasure, ReadRawSecFilt, WriteRawSecFilt. Make sure to use 30 the new STRUCT names. the conversion function gfit_convert_Foo will 31 be automatically generated. 27 7) create a new conversion file dvo_convert_foo.c and define the 28 internal to Foo conversions. 32 29 33 8) add entry in WriteRawAverage, making sure to use the new STRUCT 34 name. the conversion function gfit_convert_Foo will be 35 automatically generated. 30 8) add the new format to the list of FORMAT conversion in dvo_convert.c. 36 31 37 9) create a new conversion file dvo_convert_foo.c and define the 38 internal to Foo conversions. 32 9) any changes to the internal format need to be reflected in the 33 functions in the dvo_convert_*.c files. These files are defined so 34 that changed fields are sequential in the functions. This should 35 make is easy to identify the new changes needed. 36 37 10) add the new format to the section at the end of dvo_image.c 38 39 11) add the new format to the dvo_image_raw.c 40 41 12) add the photcode format conversions to libdvo/src/LoadPhotcodesFITS.c 42 43 12) switch the output photcode format conversion ina libdvo/src/SavePhotcodesFITS.c 44 45 13) Add the conversion functions to the header file libdvo/include/foo_defs.h 39 46 40 47 * Note some esoteric format issues: … … 54 61 keywords. 55 62 63 ---- 64 65 20090207 : adding PS1_V1 66 67 measure: 68 new fields : t_msec, extID, Mxx, Mxy, Myy, dTccd; deprecated dophot 69 dbFlags, photFlags : uint16_t to uint64_t 70 71 average: 72 new fields : ChiSq, Npos, flags (was code, uint16_t), extID 73 74 secfilt: 75 new fields : M_20, M_80; dropped dummy 76 77 image: 78 new fields : parentID, flags (was code char), changed name to 121 bytes. 79 80 photcode: 81 new fields : NONE 82 83 ** parentID was added to enable easy lookups from chip->fpa for mosaic 84 astrometry. In old databases, this conversion was done by making 85 the match via the time and photcode. This conversion needs to be 86 done on load...
Note:
See TracChangeset
for help on using the changeset viewer.
