IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 13, 2011, 11:13:37 AM (15 years ago)
Author:
eugene
Message:

zero out all dvo I/O buffers before converting formats; adding fields to track calibration accuracy ( dXpixSys, dMagSys, and related ) -- these replace existing but unused fields Mxx...Myyyy in images, and replace dummy padding in measure-ps1-v2 ; invalidate old photfits functions ( to be replaced with a map if needed )

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/src/dvo_convert_loneos.c

    r27580 r30605  
    77  Measure *out;
    88
    9   ALLOCATE (out, Measure, Nvalues);
     9  ALLOCATE_ZERO (out, Measure, Nvalues);
    1010
    1111  for (i = 0; i < Nvalues; i++) {
     
    7676  Measure_Loneos *out;
    7777
    78   ALLOCATE (out, Measure_Loneos, Nvalues);
     78  ALLOCATE_ZERO (out, Measure_Loneos, Nvalues);
    7979
    8080  for (i = 0; i < Nvalues; i++) {
     
    104104  Average *out;
    105105
    106   ALLOCATE (out, Average, Nvalues);
    107   ALLOCATE (*primary, SecFilt, Nvalues);
     106  ALLOCATE_ZERO (out, Average, Nvalues);
     107  ALLOCATE_ZERO (*primary, SecFilt, Nvalues);
    108108
    109109  for (i = 0; i < Nvalues; i++) {
     
    160160  Average_Loneos *out;
    161161
    162   ALLOCATE (out, Average_Loneos, Nvalues);
     162  ALLOCATE_ZERO (out, Average_Loneos, Nvalues);
    163163
    164164  for (i = 0; i < Nvalues; i++) {
     
    189189  SecFilt *out;
    190190
    191   ALLOCATE (out, SecFilt, Nvalues);
     191  ALLOCATE_ZERO (out, SecFilt, Nvalues);
    192192
    193193  for (i = 0; i < Nvalues; i++) {
     
    218218  SecFilt_Loneos *out;
    219219
    220   ALLOCATE (out, SecFilt_Loneos, Nvalues);
     220  ALLOCATE_ZERO (out, SecFilt_Loneos, Nvalues);
    221221
    222222  for (i = 0; i < Nvalues; i++) {
     
    235235  Image *out;
    236236
    237   ALLOCATE (out, Image, Nvalues);
     237  ALLOCATE_ZERO (out, Image, Nvalues);
    238238
    239239  for (i = 0; i < Nvalues; i++) {
     
    259259    out[i].ccdnum           = in[i].ccdnum;
    260260
    261     out[i].order            = in[i].order;
    262     out[i].Mx               = in[i].Mx;
    263     out[i].My               = in[i].My;
    264     out[i].Mxx              = in[i].Mxx;
    265     out[i].Mxy              = in[i].Mxy;
    266     out[i].Myy              = in[i].Myy;
    267     out[i].Mxxx             = in[i].Mxxx;
    268     out[i].Mxxy             = in[i].Mxxy;
    269     out[i].Mxyy             = in[i].Mxyy;
    270     out[i].Myyy             = in[i].Myyy;
    271     out[i].Mxxxx            = in[i].Mxxxx;
    272     out[i].Mxxxy            = in[i].Mxxxy;
    273     out[i].Mxxyy            = in[i].Mxxyy;
    274     out[i].Mxyyy            = in[i].Mxyyy;
    275     out[i].Myyyy            = in[i].Myyyy;
     261    // as of 2011.02.03, the old Mx,My,..., Mxxxx,Myyyy have been deprecated and replaced
     262    // with the following.  (no real databases used those values -- see
     263    // libdvo/doc/dvo-images.txt)
     264    out[i].nLinkAstrom      = in[i].nLinkAstrom;
     265    out[i].nLinkPhotom      = in[i].nLinkPhotom;
     266    out[i].dummy3           = in[i].dummy3;
     267    out[i].dXpixSys         = in[i].dXpixSys;
     268    out[i].dYpixSys         = in[i].dYpixSys;
     269    out[i].dMagSys          = in[i].dMagSys;
     270    out[i].nFitAstrom       = in[i].nFitAstrom;
     271    out[i].nFitPhotom       = in[i].nFitPhotom;
     272    out[i].photom_map_id    = in[i].photom_map_id;
     273    out[i].astrom_map_id    = in[i].astrom_map_id;
    276274
    277275    // added or changed for PANSTARRS_DEV_0
     
    307305  Image_Loneos *out;
    308306
    309   ALLOCATE (out, Image_Loneos, Nvalues);
     307  ALLOCATE_ZERO (out, Image_Loneos, Nvalues);
    310308
    311309  for (i = 0; i < Nvalues; i++) {
     
    331329    out[i].ccdnum           = in[i].ccdnum;
    332330
    333     out[i].order            = in[i].order;
    334     out[i].Mx               = in[i].Mx;
    335     out[i].My               = in[i].My;
    336     out[i].Mxx              = in[i].Mxx;
    337     out[i].Mxy              = in[i].Mxy;
    338     out[i].Myy              = in[i].Myy;
    339     out[i].Mxxx             = in[i].Mxxx;
    340     out[i].Mxxy             = in[i].Mxxy;
    341     out[i].Mxyy             = in[i].Mxyy;
    342     out[i].Myyy             = in[i].Myyy;
    343     out[i].Mxxxx            = in[i].Mxxxx;
    344     out[i].Mxxxy            = in[i].Mxxxy;
    345     out[i].Mxxyy            = in[i].Mxxyy;
    346     out[i].Mxyyy            = in[i].Mxyyy;
    347     out[i].Myyyy            = in[i].Myyyy;
     331    // as of 2011.02.03, the old Mx,My,..., Mxxxx,Myyyy have been deprecated and replaced
     332    // with the following.  (no real databases used those values -- see
     333    // libdvo/doc/dvo-images.txt)
     334    out[i].nLinkAstrom      = in[i].nLinkAstrom;
     335    out[i].nLinkPhotom      = in[i].nLinkPhotom;
     336    out[i].dummy3           = in[i].dummy3;
     337    out[i].dXpixSys         = in[i].dXpixSys;
     338    out[i].dYpixSys         = in[i].dYpixSys;
     339    out[i].dMagSys          = in[i].dMagSys;
     340    out[i].nFitAstrom       = in[i].nFitAstrom;
     341    out[i].nFitPhotom       = in[i].nFitPhotom;
     342    out[i].photom_map_id    = in[i].photom_map_id;
     343    out[i].astrom_map_id    = in[i].astrom_map_id;
    348344
    349345    // added or changed for PANSTARRS_DEV_0
Note: See TracChangeset for help on using the changeset viewer.