IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 14, 2011, 1:05:28 PM (15 years ago)
Author:
watersc1
Message:

Merge of trunk back into branch.

Location:
branches/czw_branch/20101203
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20101203

  • branches/czw_branch/20101203/Ohana/src/libdvo/doc/dvo-images.txt

    r15240 r30631  
    11
    2 the dvo image table is not extremely efficient.  it is unsorted, and
    3 spatial searches consist of complete scans of the table.
     220110203
    43
    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)
     13FIELD     sourceID,         SOURCE_ID,            unsigned short, analysis source ID
     14FIELD     order,            ORDER,                short,          Mrel 2D polynomical order
     15FIELD     Mx,               MX,                   short,          Mrel polyterm
     16FIELD     My,               MY,                   short,          Mrel polyterm
     17
     18FIELD     Mxx,              MXX,                  short,          Mrel polyterm
     19FIELD     Mxy,              MXY,                  short,          Mrel polyterm
     20FIELD     Myy,              MYY,                  short,          Mrel polyterm
     21FIELD     Mxxx,             MXXX,                 short,          Mrel polyterm
     22
     23FIELD     Mxxy,             MXXY,                 short,          Mrel polyterm
     24FIELD     Mxyy,             MXYY,                 short,          Mrel polyterm
     25FIELD     Myyy,             MYYY,                 short,          Mrel polyterm
     26FIELD     Mxxxx,            MXXXX,                short,          Mrel polyterm
     27
     28FIELD     Mxxxy,            MXXXY,                short,          Mrel polyterm
     29FIELD     Mxxyy,            MXXYY,                short,          Mrel polyterm
     30FIELD     Mxyyy,            MXYYY,                short,          Mrel polyterm
     31FIELD     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 
     67FIELD     sourceID,         SOURCE_ID,            unsigned short, analysis source ID
     68FIELD     dummy1,           DUMMY1,               short,          place holder for byte boundaries
     69FIELD     dummy2,           DUMMY2,               short,          place holder for byte boundaries
     70FIELD     dummy3,           DUMMY3,               short,          place holder for byte boundaries
     71
     72FIELD     dXpixSys,         XPIX_SYS_ERR,         float,          systematic astrometry error in X
     73FIELD     dYpixSys,         YPIX_SYS_ERR,         float,          systematic astrometry error in Y
     74
     75FIELD     dMagSys,          MAG_SYS_ERR,          float,          systematic photometry error
     76FIELD     nFitAstrom,       N_FIT_ASTROM,         short,          number of stars used for astrometry cal
     77FIELD     nFitPhotom,       N_FIT_PHOTOM,         short,          number of stars used for photometry cal
     78
     79FIELD     photom_map_id,    PHOTOM_MAP_ID,        unsigned int,   reference to 2D zero point map
     80FIELD     astrom_map_id,    ASTROM_MAP_ID,        unsigned int,   reference to 2D astrometry map
     81
     82older:
     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.