Changeset 4865 for trunk/Ohana/src/opihi/dvo/photometry.c
- Timestamp:
- Aug 24, 2005, 8:51:56 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/dvo/photometry.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/photometry.c
r4800 r4865 22 22 if (TimeSelect && (M.t < tzero)) continue; \ 23 23 if (TimeSelect && (M.t > tend)) continue; \ 24 if (ErrSelect && (M.dM > ErrValue)) continue; \24 if (ErrSelect && (M.dM_PS > ErrValue)) continue; \ 25 25 if (TypeSelect && (TypeValue != GetMeasureTypeCode (&M))) continue; \ 26 26 if (iMagSelect && (PhotInst (&M) < iMagMin)) continue; \ … … 432 432 if ((N = get_argument (*argc, argv, "-errorlim"))) { 433 433 remove_argument (N, argc, argv); 434 ErrValue = 1000*atof (argv[N]);434 ErrValue = atof (argv[N]); 435 435 remove_argument (N, argc, argv); 436 436 ErrSelect = TRUE; … … 622 622 for (i = 0; i < average[0].Nm; i++) { 623 623 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; 625 625 if (FlagSelect && (measure[i].flags != FlagValue)) continue; 626 626 if (TypeSelect && (TypeValue != GetMeasureTypeCode (&measure[i]))) continue; … … 789 789 /* for ErrSelect, check average errors */ 790 790 if (ErrSelect) { 791 dM = iPhotdM (code, average, secfilt);791 dM = PhotdM (code, average, secfilt); 792 792 if (dM > ErrValue) return (NO_MAG); 793 793 } … … 847 847 average[].M is stored as 1000*mag where mag is PhotAbs 848 848 measure[].M for PHOT_REL is the same 849 XXX EAM : note that we are transitioning away from millimag internal storage 849 850 */ 850 851 … … 1063 1064 break; 1064 1065 case MEAS_dMAG: /* OK */ 1065 value = 0.001*measure[0].dM;1066 value = measure[0].dM_PS; 1066 1067 break; 1067 1068 case MEAS_AIRMASS: /* OK */ 1068 value = 0.001*measure[0].airmass;1069 value = measure[0].airmass_PS; 1069 1070 break; 1070 1071 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); 1072 1073 break; 1073 1074 case MEAS_PHOTCODE: /* OK */
Note:
See TracChangeset
for help on using the changeset viewer.
