IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37576


Ignore:
Timestamp:
Nov 10, 2014, 1:24:53 PM (12 years ago)
Author:
eugene
Message:

do not allow nan detections

Location:
branches/eam_branches/ipp-20140904/Ohana/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/fakeastro/src/airmass.c

    r37471 r37576  
    2020    Nbad_airmass ++;
    2121  }
     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  }
    2225  if (Nbad_airmass > 1) {
    2326    fprintf (stderr, "*** WARNING *** NaN airmass for detection\n");
    2427    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);
    3028  }
    3129
  • branches/eam_branches/ipp-20140904/Ohana/src/fakeastro/src/load_template_images.c

    r37471 r37576  
    5858      continue;
    5959    }
     60    // XXX hard=wire the photcode range for now (just i-band)
     61    if (childImage->photcode < 10200) continue;
     62    if (childImage->photcode < 10277) continue;
    6063
    6164    refimage[Nrefimage].secz     = childImage->secz;
  • branches/eam_branches/ipp-20140904/Ohana/src/fakeastro/src/make_fake_stars_catalog.c

    r37569 r37576  
    8686
    8787    // XXX skip stars with low S/N
    88     if (SN < 5.0) continue;
     88    if ((SN < 5.0) || isnan (SN)) continue;
    8989
    9090    // true position from src catalog
     
    124124    Robs = ohana_normalize_angle (Robs);
    125125
     126    if (isnan(Robs)) continue;
     127    if (isnan(Dobs)) continue;
     128
    126129    double X, Y;
    127130    RD_to_XY (&X, &Y, Robs, Dobs, &image->coords);
     
    135138    if (X > image->NX) continue;
    136139    if (Y > image->NY) continue;
     140    if (isnan(X)) continue;
     141    if (isnan(Y)) continue;
    137142
    138143    if (!strcmp (image->name, "o6600g0127o.672655.cm.955522.smf[XY01]")) {
     
    164169
    165170    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
    166173    stars[Nstars].measure.az      = azimuth (15.0*image->sidtime - stars[Nstars].average.R, stars[Nstars].average.D, image->latitude);
    167174    stars[Nstars].measure.Mcal    = image->Mcal;
  • branches/eam_branches/ipp-20140904/Ohana/src/uniphot/Makefile

    r37434 r37576  
    128128$(SRC)/initialize_setastrom.$(ARCH).o
    129129
    130 $(SETGALMODEL_CLIENT): $(INC)/setgalmodel.h
    131 $(BIN)/setgalmodel_client.$(ARCH): $(SETGALMODEL_CLIENT)
     130$(SETASTROM_CLIENT): $(INC)/setastrom.h
     131$(BIN)/setastrom_client.$(ARCH): $(SETASTROM_CLIENT)
    132132
    133133SETGALMODEL = \
Note: See TracChangeset for help on using the changeset viewer.