- Timestamp:
- Jun 12, 2015, 9:30:51 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150419/Ohana/src/addstar/src/addstar.c
r37807 r38444 104 104 105 105 // set the parameters which guide catalog open/load/create 106 catalog.filename = skylist[0].filename[i]; 107 catalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data 108 catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 109 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF | LOAD_LENSING; 110 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 106 catalog.filename = skylist[0].filename[i]; 107 catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 108 catalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data 109 catalog.catcompress = dvo_catalog_catcompress (CATCOMPRESS); // set the default catcompress from config data 110 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT | DVO_LOAD_LENSING; 111 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 111 112 112 113 // XXX need to do something to enforce consistency. we can change options.update … … 117 118 if (catalog.catmode != DVO_MODE_SPLIT) options.update = FALSE; 118 119 119 if (options.update) catalog.catflags = LOAD_AVES | LOAD_MISS | LOAD_SECF;120 if (options.update) catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 120 121 121 122 // open as read or write, depending on desire … … 134 135 if (VERBOSE) MARKTIME ("load cpt: %f sec\n", dtime); RESETTIME; 135 136 136 // Nave s_disk == 0 implies an empty catalog file137 // Naverage_disk == 0 implies an empty catalog file 137 138 // for only_match, skip empty catalogs 138 if ((catalog.Nave s_disk == 0) && options.only_match) {139 if ((catalog.Naverage_disk == 0) && options.only_match) { 139 140 dvo_catalog_unlock (&catalog); 140 141 dvo_catalog_free (&catalog); … … 174 175 SetProtect (TRUE); 175 176 if (options.update) { 176 catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF |LOAD_LENSING;177 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT | DVO_LOAD_LENSING; 177 178 dvo_catalog_update (&catalog, VERBOSE); 178 179 } else { … … 193 194 /*** update the image table ***/ 194 195 /* setup image table format and lock */ 196 gfits_db_init (&db); 195 197 db.mode = dvo_catalog_catmode (CATMODE); 196 198 db.format = dvo_catalog_catformat (CATFORMAT);
Note:
See TracChangeset
for help on using the changeset viewer.
