IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31255


Ignore:
Timestamp:
Apr 10, 2011, 10:15:26 AM (15 years ago)
Author:
eugene
Message:

create a catID if the input database format lacks it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110404/Ohana/src/photdbc/src/make_subcatalog.c

    r30616 r31255  
    7171    }
    7272
     73    // if the input catalog is an old type, generate the catID entries:
     74    if (catalog[0].catformat < DVO_FORMAT_PS1_V1) {
     75      subcatalog[0].average[Naverage].catID = catalog[0].catID;
     76    }
     77
    7378    minMag   = 32;
    7479    minSigma = 32;
     
    127132      subcatalog[0].measure[Nmeasure]        = catalog[0].measure[offset];
    128133      subcatalog[0].measure[Nmeasure].averef = Naverage;
     134
     135      // if the input catalog is an old type, generate the catID entries:
     136      if (catalog[0].catformat < DVO_FORMAT_PS1_V1) {
     137        subcatalog[0].measure[Nmeasure].catID = catalog[0].catID;
     138      }
     139
    129140      Nmeasure ++;
    130141      Nm ++;
Note: See TracChangeset for help on using the changeset viewer.