- Timestamp:
- Oct 28, 2012, 2:26:34 PM (14 years ago)
- Location:
- trunk/Ohana/src
- Files:
-
- 19 edited
- 1 copied
-
addstar/src/mkcmf.c (modified) (9 diffs)
-
addstar/test/relphot.stacks.dvo (copied) (copied from branches/eam_branches/ipp-20120905/Ohana/src/addstar/test/relphot.stacks.dvo )
-
libautocode/def/secfilt-ps1-v4.d (modified) (1 diff)
-
libautocode/def/secfilt.d (modified) (1 diff)
-
libdvo/include/dvodb.h (modified) (1 diff)
-
libdvo/src/dbExtractAverages.c (modified) (1 diff)
-
libdvo/src/dbFields.c (modified) (3 diffs)
-
libdvo/src/dvo_catalog.c (modified) (1 diff)
-
libdvo/src/dvo_convert_PS1_DEV_1.c (modified) (1 diff)
-
libdvo/src/dvo_convert_PS1_DEV_2.c (modified) (1 diff)
-
libdvo/src/dvo_convert_PS1_REF.c (modified) (1 diff)
-
libdvo/src/dvo_convert_PS1_V1.c (modified) (1 diff)
-
libdvo/src/dvo_convert_PS1_V2.c (modified) (1 diff)
-
libdvo/src/dvo_convert_PS1_V3.c (modified) (1 diff)
-
libdvo/src/dvo_convert_PS1_V4.c (modified) (2 diffs)
-
libdvo/src/dvo_convert_elixir.c (modified) (1 diff)
-
libdvo/src/dvo_convert_loneos.c (modified) (1 diff)
-
libdvo/src/dvo_convert_panstarrs_DEV_0.c (modified) (1 diff)
-
libdvo/src/dvo_convert_panstarrs_DEV_1.c (modified) (1 diff)
-
libdvo/src/dvo_photcode_ops.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/mkcmf.c
r34405 r34620 178 178 } 179 179 180 gauss_init (2048); 181 180 182 // load test stars from a file: 181 183 Nstars = 0; … … 254 256 gfits_modify (&header, "NASTRO", "%d", 1, 10); 255 257 256 gfits_modify (&header, "IMAGEID", "%d", 1, (int)(1000*drand48())); 257 gfits_modify (&header, "SOURCEID", "%d", 1, (int)(100*drand48())); 258 int imageID = 1000.0*drand48(); 259 int sourceID = 100.0*drand48(); 260 261 gfits_modify (&header, "IMAGEID", "%d", 1, imageID); 262 gfits_modify (&header, "SOURCEID", "%d", 1, sourceID); 258 263 259 264 PutCoords (&coords, &header); … … 396 401 // this needs to make different output 'stars' entries depending on the desired type 397 402 ALLOCATE (stars, PS1_DEV_0, Nstars); 398 gauss_init (2048);399 403 for (i = 0; i < Nstars; i++) { 400 404 stars[i].detID = i; … … 441 445 // this needs to make different output 'stars' entries depending on the desired type 442 446 ALLOCATE (stars, PS1_DEV_1, Nstars); 443 gauss_init (2048);444 447 for (i = 0; i < Nstars; i++) { 445 448 stars[i].detID = i; … … 489 492 // this needs to make different output 'stars' entries depending on the desired type 490 493 ALLOCATE (stars, CMF_PS1_V1, Nstars); 491 gauss_init (2048);492 494 for (i = 0; i < Nstars; i++) { 493 495 stars[i].detID = i; … … 537 539 // this needs to make different output 'stars' entries depending on the desired type 538 540 ALLOCATE (stars, CMF_PS1_V2, Nstars); 539 gauss_init (2048);540 541 for (i = 0; i < Nstars; i++) { 541 542 stars[i].detID = i; … … 591 592 // this needs to make different output 'stars' entries depending on the desired type 592 593 ALLOCATE (stars, CMF_PS1_V3, Nstars); 593 gauss_init (2048);594 594 for (i = 0; i < Nstars; i++) { 595 595 stars[i].detID = i; … … 649 649 // this needs to make different output 'stars' entries depending on the desired type 650 650 ALLOCATE (stars, CMF_PS1_V4, Nstars); 651 gauss_init (2048);652 651 for (i = 0; i < Nstars; i++) { 653 652 stars[i].detID = i; … … 660 659 stars[i].M = M[i]; 661 660 stars[i].Map = M[i] - 0.05; 661 stars[i].MapRaw = M[i] - 0.10; 662 663 stars[i].Flux = flux; 664 stars[i].dFlux = flux * fSN; 665 666 stars[i].apFlux = pow(10.0, -0.4*stars[i].Map); 667 stars[i].apFluxErr = stars[i].apFlux * fSN; 662 668 663 669 if (ADDNOISE) { -
trunk/Ohana/src/libautocode/def/secfilt-ps1-v4.d
r34260 r34620 6 6 7 7 # elements of data structure / FITS table 8 FIELD M, MAG, float, average mag in this band, mags 9 FIELD Map, MAG_AP, float, ave aperture mag in this band, mags 10 FIELD Mkron, MAG_KRON, float, ave kron mag in this band, mags 11 FIELD dMkron, MAG_KRON_ERR, float, formal error on average kron mag, mags 12 FIELD dM, MAG_ERR, float, formal error on average mag, mags 13 FIELD Xm, MAG_CHI, float, chisq on average mag, [100*log(value)] 14 FIELD FluxPSF, FLUX_PSF, float, mean flux psf fit (PS1: stack) 15 FIELD dFluxPSF, FLUX_PSF_ERR, float, mean flux psf error 16 FIELD FluxKron, FLUX_KRON, float, mean flux kron ap (PS1: stack) 17 FIELD dFluxKron, FLUX_KRON_ERR, float, mean flux kron err 18 FIELD flags, FLAGS, uint32_t, photometry flags 19 FIELD Ncode, NCODE, short, number of detections in band 20 FIELD Nused, NUSED, short, number of detections used in average 21 FIELD M_20, MAG_20, short, lower 20percent mag, millimags 22 FIELD M_80, MAG_80, short, upper 20percent mag, millimags 23 FIELD ubercalDist, UBERCAL_DIST, short, number of images from an ubercal-image 24 FIELD Mstdev, MAG_STDEV, short, standard deviation of measurements, millimags 25 FIELD stackID, STACK_ID, uint32_t, image ID of stack used for fluxes (if any) 26 FIELD dummy, DUMMY, uint32_t, padding 8 FIELD M, MAG, float, average mag in this band, mags 9 FIELD Map, MAG_AP, float, ave aperture mag in this band, mags 10 FIELD Mkron, MAG_KRON, float, ave kron mag in this band, mags 11 FIELD dMkron, MAG_KRON_ERR, float, formal error on average kron mag, mags 12 FIELD dM, MAG_ERR, float, formal error on average mag, mags 13 FIELD Xm, MAG_CHI, float, chisq on average mag, [100*log(value)] 14 FIELD FluxPSF, FLUX_PSF, float, mean flux psf fit (PS1: stack) 15 FIELD dFluxPSF, FLUX_PSF_ERR, float, mean flux psf error 16 FIELD FluxKron, FLUX_KRON, float, mean flux kron ap (PS1: stack) 17 FIELD dFluxKron, FLUX_KRON_ERR, float, mean flux kron err 18 FIELD flags, FLAGS, uint32_t, photometry flags 19 FIELD Ncode, NCODE, short, number of detections in band 20 FIELD Nused, NUSED, short, number of detections used in average 21 FIELD M_20, MAG_20, short, lower 20percent mag, millimags 22 FIELD M_80, MAG_80, short, upper 20percent mag, millimags 23 FIELD ubercalDist, UBERCAL_DIST, short, number of images from an ubercal-image 24 FIELD Mstdev, MAG_STDEV, short, standard deviation of measurements, millimags 25 FIELD stackDetectID, STACK_DETECT_ID, uint64_t, detection ID on stack used for fluxes (if any) -
trunk/Ohana/src/libautocode/def/secfilt.d
r34260 r34620 6 6 7 7 # elements of data structure / FITS table 8 FIELD M, MAG, float, average mag in this band, mags 9 FIELD Map, MAG, float, average mag in this band, mags 10 FIELD Mkron, MAG_KRON, float, ave kron mag in this band, mags 11 FIELD dMkron, MAG_KRON_ERR, float, formal error on average kron mag, mags 12 FIELD dM, MAG_ERR, float, formal error on average mag, mags 13 FIELD Xm, MAG_CHI, float, chisq on average mag, [100*log(value)] 14 FIELD FluxPSF, FLUX_PSF, float, mean flux psf fit (PS1: stack) 15 FIELD dFluxPSF, FLUX_PSF_ERR, float, mean flux psf error 16 FIELD FluxKron, FLUX_KRON, float, mean flux kron ap (PS1: stack) 17 FIELD dFluxKron, FLUX_KRON_ERR, float, mean flux kron err 18 FIELD flags, FLAGS, uint32_t, photometry flags 19 FIELD Ncode, NCODE, short, number of detections in band 20 FIELD Nused, NUSED, short, number of detections used in average 21 FIELD M_20, MAG_20, short, lower 20percent mag, millimags 22 FIELD M_80, MAG_80, short, upper 20percent mag, millimags 23 FIELD ubercalDist, UBERCAL_DIST, short, number of images from an ubercal-image 24 FIELD Mstdev, MAG_STDEV, short, standard deviation of measurements, millimags 25 FIELD stackID, STACK_ID, uint32_t, image ID of stack used for fluxes (if any) 26 FIELD dummy, DUMMY, uint32_t, padding 8 FIELD M, MAG, float, average mag in this band, mags 9 FIELD Map, MAG, float, average mag in this band, mags 10 FIELD Mkron, MAG_KRON, float, ave kron mag in this band, mags 11 FIELD dMkron, MAG_KRON_ERR, float, formal error on average kron mag, mags 12 FIELD dM, MAG_ERR, float, formal error on average mag, mags 13 FIELD Xm, MAG_CHI, float, chisq on average mag, [100*log(value)] 14 FIELD FluxPSF, FLUX_PSF, float, mean flux psf fit (PS1: stack) 15 FIELD dFluxPSF, FLUX_PSF_ERR, float, mean flux psf error 16 FIELD FluxKron, FLUX_KRON, float, mean flux kron ap (PS1: stack) 17 FIELD dFluxKron, FLUX_KRON_ERR, float, mean flux kron err 18 FIELD flags, FLAGS, uint32_t, photometry flags 19 FIELD Ncode, NCODE, short, number of detections in band 20 FIELD Nused, NUSED, short, number of detections used in average 21 FIELD M_20, MAG_20, short, lower 20percent mag, millimags 22 FIELD M_80, MAG_80, short, upper 20percent mag, millimags 23 FIELD ubercalDist, UBERCAL_DIST, short, number of images from an ubercal-image 24 FIELD Mstdev, MAG_STDEV, short, standard deviation of measurements, millimags 25 FIELD stackDetectID, STACK_DETECT_ID, uint64_t, detection ID on stack used for fluxes (if any) 27 26 28 27 # *** 20090206 : new fields : M_20, M_80; dropped dummy -
trunk/Ohana/src/libdvo/include/dvodb.h
r34260 r34620 45 45 MAG_80, 46 46 MAG_UC_DIST, 47 MAG_STACK_ ID,47 MAG_STACK_DET_ID, 48 48 MAG_FLUX_PSF, 49 49 MAG_FLUX_PSF_ERR, -
trunk/Ohana/src/libdvo/src/dbExtractAverages.c
r34405 r34620 242 242 value.Flt = PhotUCdist (field->photcode, average, secfilt); 243 243 break; 244 case MAG_STACK_ ID:244 case MAG_STACK_DET_ID: 245 245 value.Int = PhotStackID (field->photcode, average, secfilt); 246 246 break; -
trunk/Ohana/src/libdvo/src/dbFields.c
r34405 r34620 56 56 if (!strcasecmp (string, "80")) return (MAG_80); 57 57 if (!strcasecmp (string, "ucdist")) return (MAG_UC_DIST); 58 if (!strcasecmp (string, "stack ID")) return (MAG_STACK_ID);58 if (!strcasecmp (string, "stackDetectID")) return (MAG_STACK_DET_ID); 59 59 if (!strcasecmp (string, "fluxpsf")) return (MAG_FLUX_PSF); 60 60 if (!strcasecmp (string, "fluxpsferr")) return (MAG_FLUX_PSF_ERR); … … 260 260 field->magMode = mode; 261 261 switch (mode) { 262 case MAG_STACK_ ID:262 case MAG_STACK_DET_ID: 263 263 case MAG_NCODE: 264 264 case MAG_NPHOT: … … 351 351 field->magMode = mode; 352 352 switch (mode) { 353 case MAG_STACK_ ID:353 case MAG_STACK_DET_ID: 354 354 case MAG_NCODE: 355 355 case MAG_NPHOT: -
trunk/Ohana/src/libdvo/src/dvo_catalog.c
r34429 r34620 134 134 secfilt->ubercalDist = 1000; 135 135 secfilt->Mstdev = NAN_S_SHORT; 136 secfilt->stackID = 0; 137 138 secfilt->dummy = 0; 136 secfilt->stackDetectID = 0; 139 137 } 140 138 -
trunk/Ohana/src/libdvo/src/dvo_convert_PS1_DEV_1.c
r34405 r34620 235 235 out[i].FluxKron = NAN; 236 236 out[i].dFluxKron = NAN; 237 out[i].stack ID = 0;237 out[i].stackDetectID = 0; 238 238 } 239 239 return (out); -
trunk/Ohana/src/libdvo/src/dvo_convert_PS1_DEV_2.c
r34405 r34620 229 229 out[i].FluxKron = NAN; 230 230 out[i].dFluxKron = NAN; 231 out[i].stack ID = 0;231 out[i].stackDetectID = 0; 232 232 } 233 233 return (out); -
trunk/Ohana/src/libdvo/src/dvo_convert_PS1_REF.c
r34405 r34620 190 190 out[i].FluxKron = NAN; 191 191 out[i].dFluxKron = NAN; 192 out[i].stack ID = 0;192 out[i].stackDetectID = 0; 193 193 } 194 194 return (out); -
trunk/Ohana/src/libdvo/src/dvo_convert_PS1_V1.c
r34405 r34620 233 233 out[i].FluxKron = NAN; 234 234 out[i].dFluxKron = NAN; 235 out[i].stack ID = 0;235 out[i].stackDetectID = 0; 236 236 } 237 237 return (out); -
trunk/Ohana/src/libdvo/src/dvo_convert_PS1_V2.c
r34405 r34620 236 236 out[i].FluxKron = NAN; 237 237 out[i].dFluxKron = NAN; 238 out[i].stack ID = 0;238 out[i].stackDetectID = 0; 239 239 } 240 240 return (out); -
trunk/Ohana/src/libdvo/src/dvo_convert_PS1_V3.c
r34405 r34620 234 234 out[i].FluxKron = NAN; 235 235 out[i].dFluxKron = NAN; 236 out[i].stack ID = 0;236 out[i].stackDetectID = 0; 237 237 } 238 238 return (out); -
trunk/Ohana/src/libdvo/src/dvo_convert_PS1_V4.c
r34405 r34620 221 221 222 222 for (i = 0; i < Nvalues; i++) { 223 out[i].M = in[i].M;224 out[i].Map = in[i].Map;225 out[i].Mkron = in[i].Mkron;226 out[i].dMkron = in[i].dMkron;227 out[i].dM = in[i].dM;228 out[i].Xm = in[i].Xm;229 out[i].FluxPSF = in[i].FluxPSF;230 out[i].dFluxPSF = in[i].dFluxPSF;231 out[i].FluxKron = in[i].FluxKron;232 out[i].dFluxKron = in[i].dFluxKron;233 out[i].flags = in[i].flags;234 out[i].Ncode = in[i].Ncode;235 out[i].Nused = in[i].Nused;236 out[i].M_20 = in[i].M_20;237 out[i].M_80 = in[i].M_80;238 out[i].Mstdev = in[i].Mstdev;239 out[i].ubercalDist = in[i].ubercalDist;240 out[i].stack ID = in[i].stackID;223 out[i].M = in[i].M; 224 out[i].Map = in[i].Map; 225 out[i].Mkron = in[i].Mkron; 226 out[i].dMkron = in[i].dMkron; 227 out[i].dM = in[i].dM; 228 out[i].Xm = in[i].Xm; 229 out[i].FluxPSF = in[i].FluxPSF; 230 out[i].dFluxPSF = in[i].dFluxPSF; 231 out[i].FluxKron = in[i].FluxKron; 232 out[i].dFluxKron = in[i].dFluxKron; 233 out[i].flags = in[i].flags; 234 out[i].Ncode = in[i].Ncode; 235 out[i].Nused = in[i].Nused; 236 out[i].M_20 = in[i].M_20; 237 out[i].M_80 = in[i].M_80; 238 out[i].Mstdev = in[i].Mstdev; 239 out[i].ubercalDist = in[i].ubercalDist; 240 out[i].stackDetectID = in[i].stackDetectID; 241 241 } 242 242 return (out); … … 251 251 252 252 for (i = 0; i < Nvalues; i++) { 253 out[i].M = in[i].M;254 out[i].Map = in[i].Map;255 out[i].Mkron = in[i].Mkron;256 out[i].dMkron = in[i].dMkron;257 out[i].dM = in[i].dM;258 out[i].Xm = in[i].Xm;259 out[i].FluxPSF = in[i].FluxPSF;260 out[i].dFluxPSF = in[i].dFluxPSF;261 out[i].FluxKron = in[i].FluxKron;262 out[i].dFluxKron = in[i].dFluxKron;263 out[i].flags = in[i].flags;264 out[i].Ncode = in[i].Ncode;265 out[i].Nused = in[i].Nused;266 out[i].M_20 = in[i].M_20;267 out[i].M_80 = in[i].M_80;268 out[i].Mstdev = in[i].Mstdev;269 out[i].ubercalDist = in[i].ubercalDist;270 out[i].stack ID = in[i].stackID;253 out[i].M = in[i].M; 254 out[i].Map = in[i].Map; 255 out[i].Mkron = in[i].Mkron; 256 out[i].dMkron = in[i].dMkron; 257 out[i].dM = in[i].dM; 258 out[i].Xm = in[i].Xm; 259 out[i].FluxPSF = in[i].FluxPSF; 260 out[i].dFluxPSF = in[i].dFluxPSF; 261 out[i].FluxKron = in[i].FluxKron; 262 out[i].dFluxKron = in[i].dFluxKron; 263 out[i].flags = in[i].flags; 264 out[i].Ncode = in[i].Ncode; 265 out[i].Nused = in[i].Nused; 266 out[i].M_20 = in[i].M_20; 267 out[i].M_80 = in[i].M_80; 268 out[i].Mstdev = in[i].Mstdev; 269 out[i].ubercalDist = in[i].ubercalDist; 270 out[i].stackDetectID = in[i].stackDetectID; 271 271 } 272 272 return (out); -
trunk/Ohana/src/libdvo/src/dvo_convert_elixir.c
r34405 r34620 244 244 out[i].FluxKron = NAN; 245 245 out[i].dFluxKron = NAN; 246 out[i].stack ID = 0;246 out[i].stackDetectID = 0; 247 247 } 248 248 return (out); -
trunk/Ohana/src/libdvo/src/dvo_convert_loneos.c
r34405 r34620 237 237 out[i].FluxKron = NAN; 238 238 out[i].dFluxKron = NAN; 239 out[i].stack ID = 0;239 out[i].stackDetectID = 0; 240 240 } 241 241 return (out); -
trunk/Ohana/src/libdvo/src/dvo_convert_panstarrs_DEV_0.c
r34405 r34620 244 244 out[i].FluxKron = NAN; 245 245 out[i].dFluxKron = NAN; 246 out[i].stack ID = 0;246 out[i].stackDetectID = 0; 247 247 } 248 248 return (out); -
trunk/Ohana/src/libdvo/src/dvo_convert_panstarrs_DEV_1.c
r34405 r34620 244 244 out[i].FluxKron = NAN; 245 245 out[i].dFluxKron = NAN; 246 out[i].stack ID = 0;246 out[i].stackDetectID = 0; 247 247 } 248 248 return (out); -
trunk/Ohana/src/libdvo/src/dvo_photcode_ops.c
r34260 r34620 664 664 665 665 Ns = photcodes[0].hashNsec[code[0].code]; 666 ID = (Ns == -1) ? 0 : secfilt[Ns].stack ID;666 ID = (Ns == -1) ? 0 : secfilt[Ns].stackDetectID; 667 667 return (ID); 668 668 }
Note:
See TracChangeset
for help on using the changeset viewer.
