- Timestamp:
- Apr 29, 2016, 12:08:42 PM (10 years ago)
- Location:
- trunk/Ohana/src/dvopsps/src
- Files:
-
- 4 edited
-
insert_FGshape_dvopsps.c (modified) (1 diff)
-
insert_FGshape_dvopsps_catalog.c (modified) (3 diffs)
-
insert_FWobjects_dvopsps_catalog.c (modified) (2 diffs)
-
insert_objects_dvopsps_catalog.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/dvopsps/src/insert_FGshape_dvopsps.c
r38674 r39564 52 52 dvo_catalog_init (&catalog, TRUE); 53 53 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; 55 55 56 56 if (!dvo_catalog_open (&catalog, skylist[0].regions[i], VERBOSE, "r")) { -
trunk/Ohana/src/dvopsps/src/insert_FGshape_dvopsps_catalog.c
r39253 r39564 13 13 14 14 Average *average = catalog->average; 15 SecFilt *secfilt = catalog->secfilt; 15 16 GalPhot *galphot = catalog->galphot; 17 int Nsecfilt = catalog->Nsecfilt; 16 18 17 19 off_t found = 0; … … 28 30 int Ninsert = 0; 29 31 32 int hasPS1_flag = ID_SECF_HAS_PS1 | ID_SECF_HAS_PS1_STACK; 33 30 34 // NOTE for testing, just do a few objects 31 35 if (!mysql) { … … 37 41 missingID ++; 38 42 } 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 39 49 40 50 off_t m = average[i].galphotOffset; -
trunk/Ohana/src/dvopsps/src/insert_FWobjects_dvopsps_catalog.c
r39251 r39564 31 31 int Ninsert = 0; 32 32 33 int hasPS1_flag = ID_SECF_HAS_PS1 | ID_SECF_HAS_PS1_STACK; 34 33 35 // NOTE for testing, just do a few objects 34 36 if (!mysql) { … … 40 42 missingID ++; 41 43 } 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 42 50 43 51 off_t m = average[i].lensobjOffset; -
trunk/Ohana/src/dvopsps/src/insert_objects_dvopsps_catalog.c
r39275 r39564 28 28 int Ninsert = 0; 29 29 30 int hasPS1_flag = ID_SECF_HAS_PS1 | ID_SECF_HAS_PS1_STACK; 31 30 32 // NOTE for testing, just do a few objects 31 33 if (!mysql) { … … 37 39 missingID ++; 38 40 } 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 39 47 40 48 // XXX check return status
Note:
See TracChangeset
for help on using the changeset viewer.
