Changeset 41340 for trunk/Ohana/src/relphot
- Timestamp:
- Apr 16, 2020, 1:54:47 PM (6 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
r41153 r41340 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 tables65 if (UPDATE_CATFORMAT) {66 catalog.catflags |= DVO_LOAD_LENSING | DVO_LOAD_LENSOBJ | DVO_LOAD_STARPAR | DVO_LOAD_GALPHOT;67 }68 64 catalog.Nsecfilt = GetPhotcodeNsecfilt (); // set the desired number in case we need to create the catalog 69 65 -
trunk/Ohana/src/relphot/src/relphot_objects.c
r41153 r41340 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 tables76 if (UPDATE_CATFORMAT) {77 catalog.catflags |= DVO_LOAD_LENSING | DVO_LOAD_LENSOBJ | DVO_LOAD_STARPAR | DVO_LOAD_GALPHOT;78 }79 75 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 80 76 … … 166 162 // we can optionally convert output format here 167 163 // but it would be better to define a dvo crawler program to do this 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 164 // catalog.catformat = DVO_FORMAT_PS1_V1; 175 165 SetProtect (TRUE); 176 166 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.
