Changeset 36800
- Timestamp:
- Jun 2, 2014, 2:20:19 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140423/Ohana/src/relastro/src
- Files:
-
- 5 edited
-
ImageOps.c (modified) (2 diffs)
-
UpdateObjects.c (modified) (3 diffs)
-
args.c (modified) (2 diffs)
-
bcatalog.c (modified) (2 diffs)
-
load_catalogs.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140423/Ohana/src/relastro/src/ImageOps.c
r36630 r36800 859 859 N = 0; 860 860 for (k = 0; k < catalog[0].average[j].Nmeasure; k++) { 861 // reset flag on each invocation861 // reset flag on each invocation 862 862 measure[k].dbFlags &= ~ID_MEAS_POOR_ASTROM; 863 863 … … 898 898 double *R, *D, *dR, *dD, *d2; 899 899 StatType statsR, statsD; 900 901 // XXX we are not going to use this for now 902 return; 900 903 901 904 Nsecfilt = GetPhotcodeNsecfilt(); -
branches/eam_branches/ipp-20140423/Ohana/src/relastro/src/UpdateObjects.c
r36630 r36800 140 140 // does the measurement pass the supplied filtering constraints? 141 141 // MeasFilterTestTiny does not test psfQF 142 // exclude bad detections based on: photcodes, psfQF, time range, photflags & astromBadMask, mag_inst 142 143 int keepMeasure = measureBig ? MeasFilterTest(&measureBig[k], FALSE) : MeasFilterTestTiny(&measure[k], FALSE); 143 144 if (!keepMeasure) { … … 147 148 } 148 149 150 // mark (as POOR) any measurements which are deviant from the mean by > ExcludeBogusRadius 151 if (ExcludeBogus) { 152 double Ri = getMeanR (&measure[k], &catalog[i].average[j], &catalog[i].secfilt[j*Nsecfilt]); 153 double Di = getMeanD (&measure[k], &catalog[i].average[j], &catalog[i].secfilt[j*Nsecfilt]); 154 coords.crval1 = catalog[i].average[j].R; 155 coords.crval2 = catalog[i].average[j].D; 156 double Xi, Yi; 157 RD_to_XY (&Xi, &Yi, Ri, Di, &coords); 158 double radius = hypot(Xi, Yi); 159 if (radius > ExcludeBogusRadius) { 160 measure[k].dbFlags &= ~ID_MEAS_USED_OBJ; 161 if (measureBig) { measureBig[k].dbFlags &= ~ID_MEAS_USED_OBJ; } 162 measure[k].dbFlags |= ID_MEAS_POOR_ASTROM; 163 if (measureBig) { measureBig[k].dbFlags |= ID_MEAS_POOR_ASTROM; } 164 continue; 165 } 166 measure[k].dbFlags &= ~ID_MEAS_POOR_ASTROM; 167 if (measureBig) { measureBig[k].dbFlags &= ~ID_MEAS_POOR_ASTROM; } 168 } 169 149 170 // outlier rejection 150 if (F lagOutlier && (measure[k].dbFlags & ID_MEAS_POOR_ASTROM)) {171 if (FALSE && FlagOutlier && (measure[k].dbFlags & ID_MEAS_POOR_ASTROM)) { 151 172 measure[k].dbFlags &= ~ID_MEAS_USED_OBJ; 152 173 if (measureBig) { measureBig[k].dbFlags &= ~ID_MEAS_USED_OBJ; } … … 271 292 272 293 if (mode == FIT_PM_AND_PAR) { 273 // fprintf (stderr, "parallax fitting is still untested (%s, %d)\n", __FILE__, __LINE__);274 275 294 float pXmin = +2.0; 276 295 float pXmax = -2.0; -
branches/eam_branches/ipp-20140423/Ohana/src/relastro/src/args.c
r36796 r36800 179 179 FlagOutlier = FALSE; 180 180 if ((N = get_argument (argc, argv, "-clip"))) { 181 fprintf (stderr, "-clip is currently disabled\n"); 181 182 remove_argument (N, &argc, argv); 182 183 CLIP_THRESH = atof (argv[N]); … … 598 599 FlagOutlier = FALSE; 599 600 if ((N = get_argument (argc, argv, "-clip"))) { 601 fprintf (stderr, "-clip is currently disabled\n"); 600 602 remove_argument (N, &argc, argv); 601 603 CLIP_THRESH = atof (argv[N]); -
branches/eam_branches/ipp-20140423/Ohana/src/relastro/src/bcatalog.c
r36798 r36800 104 104 105 105 // filter out outliers - these are detections inconsistent with the offset distribution 106 if (FlagOutlier && (catalog[0].measure[offset].dbFlags & ID_MEAS_POOR_ASTROM)) { 106 // XXX disable this for now 107 if (FALSE && FlagOutlier && (catalog[0].measure[offset].dbFlags & ID_MEAS_POOR_ASTROM)) { 107 108 catalog[0].measure[offset].dbFlags &= ~ID_MEAS_USED_CHIP; 108 109 if (FALSE && (abs(catalog[0].measure[offset].t - Tref) < 10) && (catalog[0].measure[offset].photcode == Cref)) { … … 122 123 RD_to_XY (&Xi, &Yi, Ri, Di, &coords); 123 124 double radius = hypot(Xi, Yi); 124 // XXX this radius needs to be configurable125 125 if (radius > ExcludeBogusRadius) { 126 126 NskipBogus ++; -
branches/eam_branches/ipp-20140423/Ohana/src/relastro/src/load_catalogs.c
r36796 r36800 6 6 Catalog *load_catalogs (SkyList *skylist, int *Ncatalog, int subselect, int hostID, char *hostpath) { 7 7 8 int i, j, k, m, Nstar; 8 int i, j, Nstar; 9 // int k, m; 9 10 Catalog *catalog, *pcatalog, tcatalog; 10 11 … … 73 74 if (RESET) { 74 75 for (j = 0; j < catalog[Ncat].Naverage; j++) { 76 # if (0) 75 77 catalog[Ncat].average[j].flags = 0; 76 78 m = catalog[Ncat].average[j].measureOffset; … … 78 80 catalog[Ncat].measure[m+k].dbFlags = 0; 79 81 } 82 # endif 80 83 } 81 84 }
Note:
See TracChangeset
for help on using the changeset viewer.
