Changeset 30525
- Timestamp:
- Feb 8, 2011, 3:58:35 PM (15 years ago)
- Location:
- branches/eam_branches/ipp-20101205/Ohana/src/relastro
- Files:
-
- 7 edited
-
include/relastro.h (modified) (1 diff)
-
src/ImageOps.c (modified) (8 diffs)
-
src/UpdateObjectOffsets.c (modified) (1 diff)
-
src/UpdateObjects.c (modified) (1 diff)
-
src/args.c (modified) (1 diff)
-
src/bcatalog.c (modified) (1 diff)
-
src/relastroVisual.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/Ohana/src/relastro/include/relastro.h
r30524 r30525 302 302 void fixImageRaw (Catalog *catalog, int Ncatalog, off_t im); 303 303 void FlagOutliers(Catalog *catalog); 304 int MeasFilterTest(Measure *measure );304 int MeasFilterTest(Measure *measure, int applySigmaLim); 305 305 306 306 int sun_ecliptic (double jd, double *lambda, double *beta, double *epsilon); -
branches/eam_branches/ipp-20101205/Ohana/src/relastro/src/ImageOps.c
r30510 r30525 146 146 free (clist); 147 147 free (mlist); 148 free (Nlist); 149 free (NLIST); 148 150 } 149 151 … … 708 710 709 711 // skip measurements based on user selected criteria 710 if (!MeasFilterTest(&catalog[0].measure[m] )) continue;712 if (!MeasFilterTest(&catalog[0].measure[m], FALSE)) continue; 711 713 R[N] = catalog[0].measure[m].dR; 712 714 D[N] = catalog[0].measure[m].dD; … … 734 736 735 737 // skip measurements based on user selected criteria 736 if (!MeasFilterTest(&catalog[0].measure[m] )) continue;738 if (!MeasFilterTest(&catalog[0].measure[m], FALSE)) continue; 737 739 738 740 x = catalog[0].measure[m].dR - statsR.median; … … 805 807 806 808 // skip measurements based on user selected criteria 807 if (!MeasFilterTest(&catalog[0].measure[m] )) continue;809 if (!MeasFilterTest(&catalog[0].measure[m], FALSE)) continue; 808 810 R[N] = catalog[0].measure[m].dR; 809 811 D[N] = catalog[0].measure[m].dD; … … 827 829 for (k = 0; k < catalog[0].average[j].Nmeasure; k++, m++) { 828 830 //skip bad measurements 829 if (!MeasFilterTest(&catalog[0].measure[m] )) continue;831 if (!MeasFilterTest(&catalog[0].measure[m], FALSE)) continue; 830 832 x = catalog[0].measure[m].dR - statsR.median; 831 833 y = catalog[0].measure[m].dD - statsD.median; … … 859 861 for (k = 0; k < catalog[0].average[j].Nmeasure; k++, m++) { 860 862 //skip bad measurements 861 if (!MeasFilterTest(&catalog[0].measure[m] )) continue;863 if (!MeasFilterTest(&catalog[0].measure[m], FALSE)) continue; 862 864 x = catalog[0].measure[m].dR - statsR.median; 863 865 y = catalog[0].measure[m].dD - statsD.median; … … 890 892 891 893 /** Determine whether a measurement should be included in the analysis, based on supplied filter criteria */ 892 int MeasFilterTest(Measure *measure) { 894 // we only optionally apply the sigma limit: for object averages, this should not be used (should it?) 895 int MeasFilterTest(Measure *measure, int applySigmaLim) { 893 896 int found, k; 894 897 long mask; … … 936 939 937 940 /* select measurements by measurement error */ 938 if ( (SIGMA_LIM > 0) && (measure[0].dM > SIGMA_LIM)) {941 if (applySigmaLim && (SIGMA_LIM > 0) && (measure[0].dM > SIGMA_LIM)) { 939 942 return FALSE; 940 943 } -
branches/eam_branches/ipp-20101205/Ohana/src/relastro/src/UpdateObjectOffsets.c
r27581 r30525 40 40 UpdateMeasures (&catalog, 1); 41 41 42 UpdateObjects (&catalog, 1); 43 42 44 freeImageBins (1); 43 45 -
branches/eam_branches/ipp-20101205/Ohana/src/relastro/src/UpdateObjects.c
r30509 r30525 103 103 104 104 //does the measurement pass the supplied filtering constraints? 105 if (!MeasFilterTest(&catalog[i].measure[m] )) {105 if (!MeasFilterTest(&catalog[i].measure[m], FALSE)) { 106 106 catalog[i].measure[m].dbFlags &= ~ID_MEAS_USED_OBJ; 107 107 continue; -
branches/eam_branches/ipp-20101205/Ohana/src/relastro/src/args.c
r30524 r30525 13 13 remove_argument (N, &argc, argv); 14 14 FIT_TARGET = TARGET_OBJECTS; 15 16 // check for object fitting modes (not valid for images) 17 if ((N = get_argument (argc, argv, "-pm"))) { 18 remove_argument (N, &argc, argv); 19 FIT_MODE = FIT_PM_ONLY; 20 } 21 if ((N = get_argument (argc, argv, "-par"))) { 22 remove_argument (N, &argc, argv); 23 FIT_MODE = FIT_PAR_ONLY; 24 } 25 if ((N = get_argument (argc, argv, "-pmpar"))) { 26 remove_argument (N, &argc, argv); 27 FIT_MODE = FIT_PM_AND_PAR; 28 } 29 } 15 } 16 17 // check for object fitting modes 18 if ((N = get_argument (argc, argv, "-pm"))) { 19 remove_argument (N, &argc, argv); 20 FIT_MODE = FIT_PM_ONLY; 21 } 22 if ((N = get_argument (argc, argv, "-par"))) { 23 remove_argument (N, &argc, argv); 24 FIT_MODE = FIT_PAR_ONLY; 25 } 26 if ((N = get_argument (argc, argv, "-pmpar"))) { 27 remove_argument (N, &argc, argv); 28 FIT_MODE = FIT_PM_AND_PAR; 29 } 30 30 31 if ((N = get_argument (argc, argv, "-high-speed"))) { 31 32 // XXX include a parallax / no-parallax option -
branches/eam_branches/ipp-20101205/Ohana/src/relastro/src/bcatalog.c
r30478 r30525 45 45 offset = catalog[0].average[i].measureOffset + j; 46 46 47 // filter objects based on user supplied criteria 48 if (!MeasFilterTest(&catalog[0].measure[offset] )) {47 // filter objects based on user supplied criteria, including SIGMA_LIM 48 if (!MeasFilterTest(&catalog[0].measure[offset], TRUE)) { 49 49 catalog[0].measure[offset].dbFlags &= ~ID_MEAS_USED_CHIP; 50 50 continue; -
branches/eam_branches/ipp-20101205/Ohana/src/relastro/src/relastroVisual.c
r30523 r30525 451 451 for(i = 0; i < Nmeasure; i++, m++) { 452 452 meas = catalog[0].measure[m]; 453 if (!MeasFilterTest(&meas )) continue;453 if (!MeasFilterTest(&meas, FALSE)) continue; 454 454 xmin = MIN(xmin, meas.dR); 455 455 xmax = MAX(xmax, meas.dR);
Note:
See TracChangeset
for help on using the changeset viewer.
