Changeset 38588
- Timestamp:
- Jul 15, 2015, 10:44:35 AM (11 years ago)
- Location:
- branches/eam_branches/ipp-20150625/Ohana/src
- Files:
-
- 10 edited
-
dvomerge/src/LoadCatalog.c (modified) (1 diff)
-
dvomerge/src/dvomergeUpdate_catalogs.c (modified) (2 diffs)
-
dvomerge/src/dvorepairDeleteImagesByExternID.c (modified) (2 diffs)
-
libautocode/def/average-ps1-v5.d (modified) (4 diffs)
-
libautocode/def/measure-ps1-v5.d (modified) (1 diff)
-
libautocode/def/secfilt-ps1-v5.d (modified) (1 diff)
-
libdvo/src/dbExtractImages.c (modified) (1 diff)
-
opihi (modified) (1 prop)
-
opihi/cmd.data/uniq.c (modified) (1 diff)
-
opihi/pantasks/TaskOps.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/LoadCatalog.c
r38471 r38588 9 9 10 10 // always load all of the data (if any exists) 11 catalog[0].catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT | DVO_LOAD_LENSING | DVO_LOAD_LENSOBJ | DVO_LOAD_STARPAR | DVO_LOAD_GALPHOT; 11 // XXXX TEMP HACK : skip GALPHOT 12 // XXXX catalog[0].catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT | DVO_LOAD_LENSING | DVO_LOAD_LENSOBJ | DVO_LOAD_STARPAR | DVO_LOAD_GALPHOT; 13 catalog[0].catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT | DVO_LOAD_LENSING | DVO_LOAD_LENSOBJ | DVO_LOAD_STARPAR; 12 14 13 15 catalog[0].catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data -
branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c
r38470 r38588 177 177 LoadCatalog (&outcatalog, outlist[0].regions[j], outcatalog.filename, "w", NsecfiltOutput); 178 178 179 // if no catalog already exists, use the input catalog to define the format or the specified format180 179 if (UPDATE_CATFORMAT) { 181 180 outcatalog.catformat = dvo_catalog_catformat (UPDATE_CATFORMAT); 182 181 } else { 183 outcatalog.catformat = incatalog.catformat; 184 } 182 // IF no catalog already exists, use the input catalog to define the format 183 if (outcatalog.Naverage_disk == 0) { 184 outcatalog.catformat = incatalog.catformat; 185 } 186 } 187 185 188 if (UPDATE_CATCOMPRESS) { 186 189 outcatalog.catcompress = dvo_catalog_catcompress (UPDATE_CATCOMPRESS); 187 190 } else { 188 outcatalog.catcompress = incatalog.catcompress; 191 // IF no catalog already exists, use the input catalog to define the compression 192 if (outcatalog.Naverage_disk == 0) { 193 outcatalog.catcompress = incatalog.catcompress; 194 } 189 195 } 190 196 … … 282 288 283 289 // options / arguments that can affect relastro_client -update-objects: 284 char command[DVO_MAX_PATH]; 285 snprintf (command, DVO_MAX_PATH, "dvomerge_client %s into %s -hostID %d -hostdir %s -region %f %f %f %f -D ADDSTAR_RADIUS %f", 286 absinput, absoutput, group->hosts[i][0].hostID, group->hosts[i][0].pathname, 287 UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax, RADIUS 288 ); 289 290 char tmpline[DVO_MAX_PATH]; 291 if (VERBOSE) { snprintf (tmpline, DVO_MAX_PATH, "%s -v", command); strcpy (command, tmpline); } 292 if (VERIFY) { snprintf (tmpline, DVO_MAX_PATH, "%s -verify", command); strcpy (command, tmpline); } 293 if (VERIFY_CATALOG_ONLY) { snprintf (tmpline, DVO_MAX_PATH, "%s -verify-catalogs", command); strcpy (command, tmpline); } 294 if (REPLACE_BY_PHOTCODE) { snprintf (tmpline, DVO_MAX_PATH, "%s -replace", command); strcpy (command, tmpline); } 295 if (REPLACE_TYCHO) { snprintf (tmpline, DVO_MAX_PATH, "%s -replace-tycho", command); strcpy (command, tmpline); } 296 if (PARALLEL_INPUT) { snprintf (tmpline, DVO_MAX_PATH, "%s -parallel-input", command); strcpy (command, tmpline); } 297 if (FORCE_MERGE) { snprintf (tmpline, DVO_MAX_PATH, "%s -force-merge", command); strcpy (command, tmpline); } 298 if (MATCHED_TABLES) { snprintf (tmpline, DVO_MAX_PATH, "%s -matched-tables", command); strcpy (command, tmpline); } 299 if (UPDATE_CATFORMAT) { snprintf (tmpline, DVO_MAX_PATH, "%s -update-catformat %s", command, UPDATE_CATFORMAT); strcpy (command, tmpline); } 290 char *command = NULL; 291 strextend (&command, "dvomerge_client %s into %s -hostID %d -hostdir %s -region %f %f %f %f -D ADDSTAR_RADIUS %f", 292 absinput, absoutput, group->hosts[i][0].hostID, group->hosts[i][0].pathname, 293 UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax, RADIUS); 294 295 if (VERBOSE) { strextend (&command, "-v"); } 296 if (VERIFY) { strextend (&command, "-verify"); } 297 if (VERIFY_CATALOG_ONLY) { strextend (&command, "-verify-catalogs"); } 298 if (REPLACE_BY_PHOTCODE) { strextend (&command, "-replace"); } 299 if (REPLACE_TYCHO) { strextend (&command, "-replace-tycho"); } 300 if (PARALLEL_INPUT) { strextend (&command, "-parallel-input"); } 301 if (FORCE_MERGE) { strextend (&command, "-force-merge"); } 302 if (MATCHED_TABLES) { strextend (&command, "-matched-tables"); } 303 if (UPDATE_CATFORMAT) { strextend (&command, "-update-catformat %s", UPDATE_CATFORMAT); } 304 if (UPDATE_CATCOMPRESS) { strextend (&command, "-update-catcompress %s", UPDATE_CATCOMPRESS); } 300 305 301 306 // add some config variables: 302 s nprintf (tmpline, DVO_MAX_PATH, "%s -D CATMODE %s", command, CATMODE); strcpy (command, tmpline);303 s nprintf (tmpline, DVO_MAX_PATH, "%s -D CATFORMAT %s", command, CATFORMAT); strcpy (command, tmpline);304 s nprintf (tmpline, DVO_MAX_PATH, "%s -D SKY_DEPTH %d", command, SKY_DEPTH); strcpy (command, tmpline);307 strextend (&command, "-D CATMODE %s", CATMODE); 308 strextend (&command, "-D CATFORMAT %s", CATFORMAT); 309 strextend (&command, "-D SKY_DEPTH %d", SKY_DEPTH); 305 310 306 311 fprintf (stderr, "command: %s\n", command); -
branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/dvorepairDeleteImagesByExternID.c
r38468 r38588 279 279 gfits_scan(&cpmHeaderTBL, "NAXIS1", "%d", 1, &NbytesPerRow); 280 280 281 myAbort ("fix compression"); 281 char compressMode[256]; 282 if (gfits_scan (&cpmHeaderTBL, "DVO_CMP", "%s", 1, compressMode)) { 283 if (strcmp (compressMode, "NONE")) { 284 myAbort ("fix compression"); 285 } 286 } 282 287 283 288 // this function can only handle PS1_V5 and later formats … … 661 666 gfits_scan (&cptHeaderPHU, "NSECFILT", "%d", 1, &Nsecfilt); 662 667 663 myAbort ("test for compression"); 668 if (0) { 669 char compressMode[256]; 670 if (gfits_scan (&cptHeaderTBL, "DVO_CMP", "%s", 1, compressMode)) { 671 if (strcmp (compressMode, "NONE")) { 672 myAbort ("fix compression"); 673 } 674 } 675 } 664 676 665 677 /* convert internal to external format */ -
branches/eam_branches/ipp-20150625/Ohana/src/libautocode/def/average-ps1-v5.d
r38441 r38588 26 26 FIELD ChiSqAve, CHISQ_POS, float, astrometry analysis chisq 27 27 FIELD ChiSqPM, CHISQ_PM, float, astrometry analysis chisq 28 FIELD ChiSqPar, CHISQ_P AP, float, astrometry analysis chisq28 FIELD ChiSqPar, CHISQ_PLX, float, astrometry analysis chisq 29 29 FIELD Tmean, MEAN_EPOCH, int, mean epoch (PM,PAR ref), unix time seconds 30 30 FIELD Trange, TIME_RANGE, int, mean epoch (PM,PAR ref), unix time seconds … … 41 41 FIELD Nlensing, NLENSING, unsigned short, number of lensing measurements 42 42 FIELD Nlensobj, NLENSOBJ, unsigned short, number of lensing measurements 43 FIELD Ngalphot, NGALPHOT,unsigned short, number of galphot measurements43 FIELD Ngalphot, NGALPHOT, unsigned short, number of galphot measurements 44 44 45 45 FIELD measureOffset, OFF_MEASURE, int, offset to first psf measurement … … 48 48 FIELD lensobjOffset, OFF_LENSOBJ, int, offset to mean lensing data 49 49 FIELD starparOffset, OFF_STARPAR, int, offset to stellar parameter data 50 FIELD galphotOffset, OFF_GALPHOT, int, offset to galphot object entry50 FIELD galphotOffset, OFF_GALPHOT, int, offset to galphot object entry 51 51 52 52 FIELD refColorBlue, REF_COLOR_BLUE, float, color of astrometry ref stars … … 57 57 FIELD projectionID, PROJECTION_ID, short, ID of projection for primary skycell 58 58 59 FIELD Nstarpar, DUMMY,short, number of stellar parameter entries59 FIELD Nstarpar, N_STAR_PAR, short, number of stellar parameter entries 60 60 FIELD dummy, DUMMY, short, unassigned bytes 61 61 -
branches/eam_branches/ipp-20150625/Ohana/src/libautocode/def/measure-ps1-v5.d
r38062 r38588 70 70 FIELD psfNdof, PSF_NDOF, int, psf degrees of freedom 71 71 FIELD psfNpix, PSF_NPIX, int, psf number of pixels 72 FIELD photFlags2, PHOT_FLAGS ,int, flags supplied by photometry program72 FIELD photFlags2, PHOT_FLAGS2, int, flags supplied by photometry program 73 73 FIELD extNsigma, EXT_NSIGMA, float, Nsigma deviation towards EXT 74 74 -
branches/eam_branches/ipp-20150625/Ohana/src/libautocode/def/secfilt-ps1-v5.d
r37246 r38588 10 10 FIELD Map, MAG_AP, float, ave aperture mag in this band, mags 11 11 FIELD dMap, MAG_AP_ERR, float, ave aperture mag in this band, mags 12 FIELD sMap, MAG_AP_STDEV, float, standard deviation of ap mags, mags12 FIELD sMap, MAG_AP_STDEV, float, standard deviation of ap mags, mags 13 13 FIELD Mkron, MAG_KRON, float, ave kron mag in this band, mags 14 14 FIELD dMkron, MAG_KRON_ERR, float, formal error on average kron mag, mags 15 FIELD sMkron, MAG_KRON_STDEV, float, standard deviation of kron mags, mags15 FIELD sMkron, MAG_KRON_STDEV, float, standard deviation of kron mags, mags 16 16 17 17 # XXX I could add these fields to secfilt or calculate in dvopsps? -
branches/eam_branches/ipp-20150625/Ohana/src/libdvo/src/dbExtractImages.c
r38581 r38588 236 236 case IMAGE_EXPNAME_AS_INT: 237 237 // XXX NOTE this does not handle gpc2 images 238 if ((image[N].name[0] == 'o') && (image ->name[5] == 'g') && (image->name[10] == 'o')) {239 int mjd = atoi(&image ->name[1]);240 int Nexp = atoi(&image ->name[6]);238 if ((image[N].name[0] == 'o') && (image[N].name[5] == 'g') && (image[N].name[10] == 'o')) { 239 int mjd = atoi(&image[N].name[1]); 240 int Nexp = atoi(&image[N].name[6]); 241 241 value.Int = mjd * 10000 + Nexp; 242 242 } -
branches/eam_branches/ipp-20150625/Ohana/src/opihi
-
Property svn:mergeinfo
set to
/trunk/Ohana/src/opihi merged eligible
-
Property svn:mergeinfo
set to
-
branches/eam_branches/ipp-20150625/Ohana/src/opihi/cmd.data/uniq.c
r38579 r38588 93 93 // free up extra memory 94 94 ResetVector (ovec, ivec->type, Nnew); 95 if (cvec) ResetVector ( ovec, OPIHI_INT, Nnew);95 if (cvec) ResetVector (cvec, OPIHI_INT, Nnew); 96 96 97 97 return (TRUE); -
branches/eam_branches/ipp-20150625/Ohana/src/opihi/pantasks/TaskOps.c
r36623 r38588 22 22 void FreeTasks () { 23 23 int i; 24 for (i = 0; i < Ntasks; i++) { 24 int ntasks = Ntasks; 25 Ntasks = 0; 26 for (i = 0; i < ntasks; i++) { 25 27 FreeTask (tasks[i]); 26 28 }
Note:
See TracChangeset
for help on using the changeset viewer.
