Changeset 38471 for trunk/Ohana/src/relphot
- Timestamp:
- Jun 14, 2015, 10:12:31 AM (11 years ago)
- Location:
- trunk/Ohana/src/relphot/src
- Files:
-
- 5 edited
-
load_catalogs.c (modified) (1 diff)
-
reload_catalogs.c (modified) (2 diffs)
-
relphot_objects.c (modified) (1 diff)
-
relphot_synthphot.c (modified) (1 diff)
-
setMrelCatalog.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relphot/src/load_catalogs.c
r38441 r38471 42 42 char hostfile[1024]; 43 43 snprintf (hostfile, 1024, "%s/%s.cpt", hostpath, skylist[0].regions[i]->name); 44 dvo_catalog_init (&tcatalog, TRUE); 44 45 tcatalog.filename = hostID ? hostfile : skylist[0].filename[i]; 45 46 tcatalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_SECFILT; // don't need to load all data at this point 46 47 tcatalog.Nsecfilt = GetPhotcodeNsecfilt (); // set the desired number in case we need to create the catalog 47 48 // tcatalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data49 // tcatalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data50 // tcatalog.catcompress = dvo_catalog_catcompress (CATCOMPRESS); // set the default catcompress from config data51 48 52 49 if (!dvo_catalog_open (&tcatalog, skylist[0].regions[i], VERBOSE2, "r")) { -
trunk/Ohana/src/relphot/src/reload_catalogs.c
r38470 r38471 49 49 char hostfile[1024]; 50 50 snprintf (hostfile, 1024, "%s/%s.cpt", hostpath, skylist[0].regions[i]->name); 51 52 dvo_catalog_init (&catalog, TRUE); 51 53 catalog.filename = hostID ? hostfile : skylist[0].filename[i]; 52 54 … … 59 61 TIMESTAMP(time1); 60 62 61 // catalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data62 // catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data63 // catalog.catcompress = dvo_catalog_catcompress (CATCOMPRESS); // set the default catcompress from config data64 63 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 65 64 catalog.Nsecfilt = GetPhotcodeNsecfilt (); // set the desired number in case we need to create the catalog -
trunk/Ohana/src/relphot/src/relphot_objects.c
r38470 r38471 42 42 char hostfile[1024]; 43 43 snprintf (hostfile, 1024, "%s/%s.cpt", hostpath, skylist[0].regions[i]->name); 44 45 dvo_catalog_init (&catalog, TRUE); 44 46 catalog.filename = hostID ? hostfile : skylist[0].filename[i]; 45 // catalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data46 // catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data47 // catalog.catcompress = dvo_catalog_catcompress (CATCOMPRESS); // set the default catcompress from config data48 47 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT; 49 48 catalog.Nsecfilt = GetPhotcodeNsecfilt (); -
trunk/Ohana/src/relphot/src/relphot_synthphot.c
r38466 r38471 41 41 char hostfile[1024]; 42 42 snprintf (hostfile, 1024, "%s/%s.cpt", hostpath, skylist[0].regions[i]->name); 43 44 dvo_catalog_init (&catalog, TRUE); 43 45 catalog.filename = hostID ? hostfile : skylist[0].filename[i]; 44 // catalog.catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data45 // catalog.catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data46 // catalog.catcompress = dvo_catalog_catcompress (CATCOMPRESS); // set the default catcompress from config data47 46 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_SECFILT; 48 47 catalog.Nsecfilt = GetPhotcodeNsecfilt (); -
trunk/Ohana/src/relphot/src/setMrelCatalog.c
r38466 r38471 128 128 129 129 // these bits should not be set unless we use them in this pass 130 measure[k].dbFlags &= ~(ID_MEAS_PHOTOM_PSF | ID_MEAS_PHOTOM_APER | ID_MEAS_PHOTOM_KRON); 130 // (note that we can only un-set them in the final pass when we actually have measure, not just measureT 131 if (measure) measure[k].dbFlags &= ~(ID_MEAS_PHOTOM_PSF | ID_MEAS_PHOTOM_APER | ID_MEAS_PHOTOM_KRON); 131 132 132 133 // skip measurements that do not have a valid photcode (raise exception?)
Note:
See TracChangeset
for help on using the changeset viewer.
