Changeset 37576
- Timestamp:
- Nov 10, 2014, 1:24:53 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140904/Ohana/src
- Files:
-
- 4 edited
-
fakeastro/src/airmass.c (modified) (1 diff)
-
fakeastro/src/load_template_images.c (modified) (1 diff)
-
fakeastro/src/make_fake_stars_catalog.c (modified) (4 diffs)
-
uniphot/Makefile (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140904/Ohana/src/fakeastro/src/airmass.c
r37471 r37576 20 20 Nbad_airmass ++; 21 21 } 22 if ((Nbad_airmass > 10) && ((Nbad_airmass % 1000) == 10)) { 23 fprintf (stderr, "*** WARNING *** %d NaN airmass values : what is the problem?\n", Nbad_airmass); 24 } 22 25 if (Nbad_airmass > 1) { 23 26 fprintf (stderr, "*** WARNING *** NaN airmass for detection\n"); 24 27 fprintf (stderr, "*** ra, dec : %f, %f | st : %f | lat : %f | cosz : %f\n", ra, dec, st, latitude, cosz); 25 }26 if (Nbad_airmass > 10) {27 fprintf (stderr, "*** ERROR *** more than 10 NaN airmass values for detections, giving up\n");28 fprintf (stderr, " (use -quick-airmass to use image airmass)\n");29 exit (2);30 28 } 31 29 -
branches/eam_branches/ipp-20140904/Ohana/src/fakeastro/src/load_template_images.c
r37471 r37576 58 58 continue; 59 59 } 60 // XXX hard=wire the photcode range for now (just i-band) 61 if (childImage->photcode < 10200) continue; 62 if (childImage->photcode < 10277) continue; 60 63 61 64 refimage[Nrefimage].secz = childImage->secz; -
branches/eam_branches/ipp-20140904/Ohana/src/fakeastro/src/make_fake_stars_catalog.c
r37569 r37576 86 86 87 87 // XXX skip stars with low S/N 88 if ( SN < 5.0) continue;88 if ((SN < 5.0) || isnan (SN)) continue; 89 89 90 90 // true position from src catalog … … 124 124 Robs = ohana_normalize_angle (Robs); 125 125 126 if (isnan(Robs)) continue; 127 if (isnan(Dobs)) continue; 128 126 129 double X, Y; 127 130 RD_to_XY (&X, &Y, Robs, Dobs, &image->coords); … … 135 138 if (X > image->NX) continue; 136 139 if (Y > image->NY) continue; 140 if (isnan(X)) continue; 141 if (isnan(Y)) continue; 137 142 138 143 if (!strcmp (image->name, "o6600g0127o.672655.cm.955522.smf[XY01]")) { … … 164 169 165 170 stars[Nstars].measure.airmass = airmass (image->secz, stars[Nstars].average.R, stars[Nstars].average.D, image->sidtime, image->latitude); 171 if (!isfinite(stars[Nstars].measure.airmass)) continue; 172 166 173 stars[Nstars].measure.az = azimuth (15.0*image->sidtime - stars[Nstars].average.R, stars[Nstars].average.D, image->latitude); 167 174 stars[Nstars].measure.Mcal = image->Mcal; -
branches/eam_branches/ipp-20140904/Ohana/src/uniphot/Makefile
r37434 r37576 128 128 $(SRC)/initialize_setastrom.$(ARCH).o 129 129 130 $(SET GALMODEL_CLIENT): $(INC)/setgalmodel.h131 $(BIN)/set galmodel_client.$(ARCH): $(SETGALMODEL_CLIENT)130 $(SETASTROM_CLIENT): $(INC)/setastrom.h 131 $(BIN)/setastrom_client.$(ARCH): $(SETASTROM_CLIENT) 132 132 133 133 SETGALMODEL = \
Note:
See TracChangeset
for help on using the changeset viewer.
