Changeset 41153
- Timestamp:
- Nov 27, 2019, 5:28:12 AM (7 years ago)
- Location:
- trunk/Ohana/src/relphot/src
- Files:
-
- 2 edited
-
reload_catalogs.c (modified) (1 diff)
-
relphot_objects.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relphot/src/reload_catalogs.c
r40386 r41153 62 62 63 63 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 } 64 68 catalog.Nsecfilt = GetPhotcodeNsecfilt (); // set the desired number in case we need to create the catalog 65 69 -
trunk/Ohana/src/relphot/src/relphot_objects.c
r40291 r41153 73 73 74 74 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 } 75 79 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 76 80 … … 162 166 // we can optionally convert output format here 163 167 // 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 165 175 SetProtect (TRUE); 166 176 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.
