IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41153 for trunk


Ignore:
Timestamp:
Nov 27, 2019, 5:28:12 AM (7 years ago)
Author:
eugene
Message:

option to update catformat updates all schema types

Location:
trunk/Ohana/src/relphot/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relphot/src/reload_catalogs.c

    r40386 r41153  
    6262
    6363    catalog.catflags    = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
     64    // if we are going to update the format, we should update all tables
     65    if (UPDATE_CATFORMAT) {
     66      catalog.catflags |= DVO_LOAD_LENSING | DVO_LOAD_LENSOBJ | DVO_LOAD_STARPAR | DVO_LOAD_GALPHOT;
     67    }
    6468    catalog.Nsecfilt    = GetPhotcodeNsecfilt ();               // set the desired number in case we need to create the catalog
    6569
  • trunk/Ohana/src/relphot/src/relphot_objects.c

    r40291 r41153  
    7373
    7474    catalog.catflags    = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT;
     75    // if we are going to update the format, we should update all tables
     76    if (UPDATE_CATFORMAT) {
     77      catalog.catflags |= DVO_LOAD_LENSING | DVO_LOAD_LENSOBJ | DVO_LOAD_STARPAR | DVO_LOAD_GALPHOT;
     78    }
    7579    catalog.Nsecfilt    = GetPhotcodeNsecfilt ();
    7680
     
    162166    // we can optionally convert output format here
    163167    // but it would be better to define a dvo crawler program to do this
    164     // catalog.catformat = DVO_FORMAT_PS1_V1; 
     168    // catalog.catformat = DVO_FORMAT_PS1_V1;
     169
     170    // modify the output format as desired (ignore current format on disk)
     171    if (UPDATE_CATFORMAT) {
     172      catalog.catformat = dvo_catalog_catformat (UPDATE_CATFORMAT);
     173    }
     174   
    165175    SetProtect (TRUE);
    166176    if (!dvo_catalog_save (&catalog, VERBOSE)) { fprintf (stderr, "ERROR: failed to save %s\n", catalog.filename); exit (1); }
Note: See TracChangeset for help on using the changeset viewer.