- Timestamp:
- Feb 14, 2011, 1:05:28 PM (15 years ago)
- Location:
- branches/czw_branch/20101203
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
Ohana/src/libdvo/doc/dvo-images.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20101203
- Property svn:mergeinfo changed
-
branches/czw_branch/20101203/Ohana/src/libdvo/doc/dvo-images.txt
r15240 r30631 1 1 2 the dvo image table is not extremely efficient. it is unsorted, and 3 spatial searches consist of complete scans of the table. 2 20110203 4 3 5 a spatial index could consist of five cardinal points for each square 6 image (4 corners and the center) or a central point and max radius. 7 table would consist each would be 4 The Image table (PS1_V2) has a bunch of fields that are not really 5 used by anything / much. I would like to re-use those bytes to 6 store information about the quality of the astrometric and 7 photometric calibrations. 8 9 The under-used fields are the 'photometric zero point variation' 10 polynomial terms (Mx, My, ... Mxxxx, Myyyy). 11 12 (I list the sourceID, which does not change, because the word-boundaries matter) 13 FIELD sourceID, SOURCE_ID, unsigned short, analysis source ID 14 FIELD order, ORDER, short, Mrel 2D polynomical order 15 FIELD Mx, MX, short, Mrel polyterm 16 FIELD My, MY, short, Mrel polyterm 17 18 FIELD Mxx, MXX, short, Mrel polyterm 19 FIELD Mxy, MXY, short, Mrel polyterm 20 FIELD Myy, MYY, short, Mrel polyterm 21 FIELD Mxxx, MXXX, short, Mrel polyterm 22 23 FIELD Mxxy, MXXY, short, Mrel polyterm 24 FIELD Mxyy, MXYY, short, Mrel polyterm 25 FIELD Myyy, MYYY, short, Mrel polyterm 26 FIELD Mxxxx, MXXXX, short, Mrel polyterm 27 28 FIELD Mxxxy, MXXXY, short, Mrel polyterm 29 FIELD Mxxyy, MXXYY, short, Mrel polyterm 30 FIELD Mxyyy, MXYYY, short, Mrel polyterm 31 FIELD Myyyy, MYYYY, short, Mrel polyterm 32 (30 bytes) 33 34 I am going to replace these with: 35 36 photom_map_id (int) : index to a 2D map of the zp variations (table and format not yet defined) 37 astrom_map_id (int) : index to a 2D map of the zp variations (table and format not yet defined) 38 dMagSys (float) : systematic photometric error (mag) 39 dXpixSys (float) : systematic astrometric error (pix) 40 dYpixSys (float) : systematic astrometric error (pix) 41 nFitAstrom (short) : number of stars used for astrometric calibration (saturate at 0x7fff) 42 nFitPhotom (short) : number of stars used for astrometric calibration (saturate at 0x7fff) 43 (24 bytes) 44 45 As for the existing uses of these fields: 46 47 The official use can just be dropped (replaced by the maps and 48 recalculated if needed -- no db actually uses them). There are a 49 few places in the code where these fields were overloaded: 50 51 Triangular Images : in the skycell creation code, there is an option 52 to create images which are the triangular projection centers for a 53 given subdivided geometric solid. This code was overloading the Mx, 54 My, and Mxxx through Myyy fields. I can invalidate any existing db 55 with triangles (probably none are needed) and repurpose some of the 56 fields above for these values. (addstar/src/sky_tesslation.c, opihi/dvo/images.c) 57 58 Mxxxx : some code was using Mxxxx to store nFitPhotom. Again, any 59 existing databases are unlikely to use that info (CFHT skyprobe 60 only). If I am clever, I can align the existing bytes so that the 61 old Mxxxx hits the new nFitPhotom. (addstar/src/calibrate.c, 62 dbExtractImages.c) 63 64 Myyyy : dbExtractImages.c expects this value to have (sky - 0x8000), 65 but that value is not actually set by any code. Ignore (replace?) 66 67 FIELD sourceID, SOURCE_ID, unsigned short, analysis source ID 68 FIELD dummy1, DUMMY1, short, place holder for byte boundaries 69 FIELD dummy2, DUMMY2, short, place holder for byte boundaries 70 FIELD dummy3, DUMMY3, short, place holder for byte boundaries 71 72 FIELD dXpixSys, XPIX_SYS_ERR, float, systematic astrometry error in X 73 FIELD dYpixSys, YPIX_SYS_ERR, float, systematic astrometry error in Y 74 75 FIELD dMagSys, MAG_SYS_ERR, float, systematic photometry error 76 FIELD nFitAstrom, N_FIT_ASTROM, short, number of stars used for astrometry cal 77 FIELD nFitPhotom, N_FIT_PHOTOM, short, number of stars used for photometry cal 78 79 FIELD photom_map_id, PHOTOM_MAP_ID, unsigned int, reference to 2D zero point map 80 FIELD astrom_map_id, ASTROM_MAP_ID, unsigned int, reference to 2D astrometry map 81 82 older: 83 84 the dvo image table is not extremely efficient. it is unsorted, and 85 spatial searches consist of complete scans of the table. 86 87 a spatial index could consist of five cardinal points for each 88 square image (4 corners and the center) or a central point and max 89 radius. 90
Note:
See TracChangeset
for help on using the changeset viewer.
