IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 24, 2005, 8:51:56 AM (21 years ago)
Author:
eugene
Message:

adding internal vs external formats for average, measure, secfilt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/photometry.c

    r4800 r4865  
    2222    if (TimeSelect && (M.t < tzero)) continue; \
    2323    if (TimeSelect && (M.t > tend)) continue; \
    24     if (ErrSelect  && (M.dM > ErrValue)) continue; \
     24    if (ErrSelect  && (M.dM_PS > ErrValue)) continue; \
    2525    if (TypeSelect && (TypeValue != GetMeasureTypeCode (&M))) continue; \
    2626    if (iMagSelect && (PhotInst (&M) < iMagMin)) continue; \
     
    432432  if ((N = get_argument (*argc, argv, "-errorlim"))) {
    433433    remove_argument (N, argc, argv);
    434     ErrValue = 1000*atof (argv[N]);
     434    ErrValue = atof (argv[N]);
    435435    remove_argument (N, argc, argv);
    436436    ErrSelect = TRUE;
     
    622622      for (i = 0; i < average[0].Nm; i++) {
    623623        if ((code != NULL) && (code[0].code != GetPhotcodeEquivCodebyCode (measure[i].source))) continue;
    624         if (ErrSelect && (measure[i].dM > ErrValue)) continue;
     624        if (ErrSelect && (measure[i].dM_PS > ErrValue)) continue;
    625625        if (FlagSelect && (measure[i].flags != FlagValue)) continue;
    626626        if (TypeSelect && (TypeValue != GetMeasureTypeCode (&measure[i]))) continue;
     
    789789  /* for ErrSelect, check average errors */
    790790  if (ErrSelect) {
    791     dM = iPhotdM (code, average, secfilt);
     791    dM = PhotdM (code, average, secfilt);
    792792    if (dM > ErrValue) return (NO_MAG);
    793793  }
     
    847847   average[].M is stored as 1000*mag where mag is PhotAbs
    848848   measure[].M for PHOT_REL is the same
     849   XXX EAM : note that we are transitioning away from millimag internal storage
    849850*/
    850851
     
    10631064      break;
    10641065    case MEAS_dMAG: /* OK */
    1065       value = 0.001*measure[0].dM;
     1066      value = measure[0].dM_PS;
    10661067      break;
    10671068    case MEAS_AIRMASS: /* OK */
    1068       value = 0.001*measure[0].airmass;
     1069      value = measure[0].airmass_PS;
    10691070      break;
    10701071    case MEAS_EXPTIME: /* OK */
    1071       value = pow (10.0, measure[0].dt * 0.0004);
     1072      value = pow (10.0, measure[0].dt_PS * 0.4);
    10721073      break;
    10731074    case MEAS_PHOTCODE: /* OK */
Note: See TracChangeset for help on using the changeset viewer.