Changeset 40083
- Timestamp:
- Jul 5, 2017, 5:31:17 PM (9 years ago)
- Location:
- trunk/psModules/src/astrom
- Files:
-
- 3 edited
-
pmAstrometryObjects.c (modified) (1 diff)
-
pmAstrometryVisual.c (modified) (5 diffs)
-
pmAstrometryWCS.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/astrom/pmAstrometryObjects.c
r39926 r40083 1111 1111 } 1112 1112 1113 pmAstromVisualPlotTweak (xHist, yHist, xBin, yBin); 1114 1113 1115 // smooth histgram vector with gaussian of 1sigma = radius 1114 1116 psVector *xHistNew = psVectorSmooth(NULL, xHist, tweakSmooth, tweakNsigma); -
trunk/psModules/src/astrom/pmAstrometryVisual.c
r36834 r40083 1045 1045 if (!plotTweak) return true; 1046 1046 if (!pmVisualTestLevel("psastro.plot13", 1)) return true; 1047 if (!pmVisualInitWindow(&kapa 1, "psastro:plots")) return false;1047 if (!pmVisualInitWindow(&kapa3, "psastro:plots")) return false; 1048 1048 1049 1049 Graphdata graphdata; … … 1066 1066 1067 1067 // set up plot information 1068 KapaClearPlots(kapa 1);1068 KapaClearPlots(kapa3); 1069 1069 KapaInitGraph(&graphdata); 1070 1070 1071 1071 // plot the X histogram 1072 1072 pmVisualScaleGraphdata(&graphdata, xIndices, xHist, false); 1073 KapaSetSection(kapa 1, §ion1);1074 KapaSetLimits (kapa 1, &graphdata);1075 KapaSetFont(kapa 1, "helvetica", 14);1076 KapaBox(kapa 1, &graphdata);1077 KapaSendLabel (kapa 1, "X offset Bin", KAPA_LABEL_XM);1078 KapaSendLabel (kapa 1, "Number of Sources", KAPA_LABEL_YM);1079 KapaSendLabel (kapa 1, "Horizontal Profile",1073 KapaSetSection(kapa3, §ion1); 1074 KapaSetLimits (kapa3, &graphdata); 1075 KapaSetFont(kapa3, "helvetica", 14); 1076 KapaBox(kapa3, &graphdata); 1077 KapaSendLabel (kapa3, "X offset Bin", KAPA_LABEL_XM); 1078 KapaSendLabel (kapa3, "Number of Sources", KAPA_LABEL_YM); 1079 KapaSendLabel (kapa3, "Horizontal Profile", 1080 1080 KAPA_LABEL_XP); 1081 1081 graphdata.style = 1; … … 1084 1084 graphdata.color = KapaColorByName ("black"); 1085 1085 1086 KapaPrepPlot (kapa 1, xHist->n, &graphdata);1087 KapaPlotVector (kapa 1, xHist->n, xIndices->data.F32, "x");1088 KapaPlotVector (kapa 1, xHist->n, xHist->data.F32, "y");1086 KapaPrepPlot (kapa3, xHist->n, &graphdata); 1087 KapaPlotVector (kapa3, xHist->n, xIndices->data.F32, "x"); 1088 KapaPlotVector (kapa3, xHist->n, xHist->data.F32, "y"); 1089 1089 1090 1090 // overplot the peak … … 1092 1092 float y[2] = {-500, 500}; 1093 1093 graphdata.color = KapaColorByName ("red"); 1094 KapaPrepPlot (kapa 1, 2, &graphdata);1095 KapaPlotVector (kapa 1, 2, x, "x");1096 KapaPlotVector (kapa 1, 2, y, "y");1094 KapaPrepPlot (kapa3, 2, &graphdata); 1095 KapaPlotVector (kapa3, 2, x, "x"); 1096 KapaPlotVector (kapa3, 2, y, "y"); 1097 1097 1098 1098 // plot the Y histogram 1099 1099 pmVisualScaleGraphdata(&graphdata, yIndices, yHist, false); 1100 KapaSetSection(kapa 1, §ion2);1101 KapaSetLimits (kapa 1, &graphdata);1102 KapaSetFont(kapa 1, "helvetica", 14);1100 KapaSetSection(kapa3, §ion2); 1101 KapaSetLimits (kapa3, &graphdata); 1102 KapaSetFont(kapa3, "helvetica", 14); 1103 1103 graphdata.color = KapaColorByName ("black"); 1104 KapaBox(kapa 1, &graphdata);1105 KapaSendLabel (kapa 1, "Y offset Bin", KAPA_LABEL_XM);1106 KapaSendLabel (kapa 1, "Number of Sources", KAPA_LABEL_YM);1107 KapaSendLabel (kapa 1, "Vertical Profile",1104 KapaBox(kapa3, &graphdata); 1105 KapaSendLabel (kapa3, "Y offset Bin", KAPA_LABEL_XM); 1106 KapaSendLabel (kapa3, "Number of Sources", KAPA_LABEL_YM); 1107 KapaSendLabel (kapa3, "Vertical Profile", 1108 1108 KAPA_LABEL_XP); 1109 1109 graphdata.style = 1; … … 1111 1111 graphdata.size = 0.4; 1112 1112 1113 KapaPrepPlot (kapa 1, yHist->n, &graphdata);1114 KapaPlotVector (kapa 1, yHist->n, yIndices->data.F32, "x");1115 KapaPlotVector (kapa 1, yHist->n, yHist->data.F32, "y");1113 KapaPrepPlot (kapa3, yHist->n, &graphdata); 1114 KapaPlotVector (kapa3, yHist->n, yIndices->data.F32, "x"); 1115 KapaPlotVector (kapa3, yHist->n, yHist->data.F32, "y"); 1116 1116 1117 1117 // overplot the peak 1118 1118 x[0] = x[1] = yBin; 1119 1119 graphdata.color = KapaColorByName ("red"); 1120 KapaPrepPlot (kapa 1, 2, &graphdata);1121 KapaPlotVector (kapa 1, 2, x, "x");1122 KapaPlotVector (kapa 1, 2, y, "y");1120 KapaPrepPlot (kapa3, 2, &graphdata); 1121 KapaPlotVector (kapa3, 2, x, "x"); 1122 KapaPlotVector (kapa3, 2, y, "y"); 1123 1123 1124 1124 // plot title 1125 1125 graphdata.color = KapaColorByName("black"); 1126 1126 1127 KapaSetSection( kapa 1, §ion3);1128 KapaSendLabel (kapa 1, "Tweaking the Astrometry Grid Solution. Smoothed profiles + peak location",1127 KapaSetSection( kapa3, §ion3); 1128 KapaSendLabel (kapa3, "Tweaking the Astrometry Grid Solution. Smoothed profiles + peak location", 1129 1129 KAPA_LABEL_XP); 1130 1130 -
trunk/psModules/src/astrom/pmAstrometryWCS.c
r39981 r40083 695 695 // the region defines the FPA pixels covered by the tranformation 696 696 psFree (fpa->fromTPA); 697 698 697 int additional_orders = 4; // This is the number of orders that should be added. 699 698 bool status = false; … … 704 703 705 704 psPlaneTransform *myPT = psPlaneTransformAlloc(fpa->toTPA->x->nX+additional_orders, fpa->toTPA->x->nY+additional_orders); 705 706 706 fpa->fromTPA = psPlaneTransformInvert(myPT, fpa->toTPA, region, 50); 707 707 psFree (myPT);
Note:
See TracChangeset
for help on using the changeset viewer.
