IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39564 for trunk


Ignore:
Timestamp:
Apr 29, 2016, 12:08:42 PM (10 years ago)
Author:
eugene
Message:

limit objects, FWobjects, FGshape to objects with PS1 data

Location:
trunk/Ohana/src/dvopsps/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/dvopsps/src/insert_FGshape_dvopsps.c

    r38674 r39564  
    5252    dvo_catalog_init (&catalog, TRUE);
    5353    catalog.filename  = HOST_ID ? localFilename : skylist[0].filename[i];
    54     catalog.catflags  = DVO_LOAD_AVERAGE | DVO_LOAD_GALPHOT;
     54    catalog.catflags  = DVO_LOAD_AVERAGE | DVO_LOAD_SECFILT | DVO_LOAD_GALPHOT;
    5555
    5656    if (!dvo_catalog_open (&catalog, skylist[0].regions[i], VERBOSE, "r")) {
  • trunk/Ohana/src/dvopsps/src/insert_FGshape_dvopsps_catalog.c

    r39253 r39564  
    1313
    1414  Average *average = catalog->average;
     15  SecFilt *secfilt = catalog->secfilt;
    1516  GalPhot *galphot = catalog->galphot;
     17  int Nsecfilt = catalog->Nsecfilt;
    1618
    1719  off_t found = 0;
     
    2830  int Ninsert = 0;
    2931
     32  int hasPS1_flag = ID_SECF_HAS_PS1 | ID_SECF_HAS_PS1_STACK;
     33
    3034  // NOTE for testing, just do a few objects
    3135  if (!mysql) {
     
    3741      missingID ++;
    3842    }
     43
     44    int hasPS1 = FALSE;
     45    for (int j = 0; !hasPS1 && (j < Nsecfilt); j++) {
     46      if (secfilt[i*Nsecfilt + j].flags & hasPS1_flag) hasPS1 = TRUE;
     47    }
     48    if (!hasPS1) continue; // skip non-PS1 data
    3949
    4050    off_t m = average[i].galphotOffset;
  • trunk/Ohana/src/dvopsps/src/insert_FWobjects_dvopsps_catalog.c

    r39251 r39564  
    3131  int Ninsert = 0;
    3232
     33  int hasPS1_flag = ID_SECF_HAS_PS1 | ID_SECF_HAS_PS1_STACK;
     34
    3335  // NOTE for testing, just do a few objects
    3436  if (!mysql) {
     
    4042      missingID ++;
    4143    }
     44
     45    int hasPS1 = FALSE;
     46    for (int j = 0; !hasPS1 && (j < Nsecfilt); j++) {
     47      if (secfilt[i*Nsecfilt + j].flags & hasPS1_flag) hasPS1 = TRUE;
     48    }
     49    if (!hasPS1) continue; // skip non-PS1 data
    4250
    4351    off_t m = average[i].lensobjOffset;
  • trunk/Ohana/src/dvopsps/src/insert_objects_dvopsps_catalog.c

    r39275 r39564  
    2828  int Ninsert = 0;
    2929
     30  int hasPS1_flag = ID_SECF_HAS_PS1 | ID_SECF_HAS_PS1_STACK;
     31
    3032  // NOTE for testing, just do a few objects
    3133  if (!mysql) {
     
    3739      missingID ++;
    3840    }
     41
     42    int hasPS1 = FALSE;
     43    for (int j = 0; !hasPS1 && (j < Nsecfilt); j++) {
     44      if (secfilt[i*Nsecfilt + j].flags & hasPS1_flag) hasPS1 = TRUE;
     45    }
     46    if (!hasPS1) continue; // skip non-PS1 data
    3947
    4048    // XXX check return status
Note: See TracChangeset for help on using the changeset viewer.