Changeset 35655
- Timestamp:
- Jun 12, 2013, 6:19:57 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130509/psphot/test/tap_psphot_galaxies.pro
r35652 r35655 170 170 171 171 # plot (input - output) vs mag 172 end 173 174 macro ckgalaxy 175 176 data test.exp.dat 177 read Xin_all 1 Yin_all 2 Type 4 Min_all 5 RmajIn_all 7 RminIn_all 8 ThetaIn_all 9 178 179 subset Xin = Xin_all if (Type == 1) 180 subset Yin = Yin_all if (Type == 1) 181 subset Min = Min_all if (Type == 1) 182 subset Tin = ThetaIn_all if (Type == 1) 183 184 subset RmajIn = RmajIn_all if (Type == 1) 185 subset RminIn = RminIn_all if (Type == 1) 186 187 data test.exp.cmf 188 read -fits Chip.xfit X_EXT Y_EXT EXT_INST_MAG EXT_WIDTH_MAJ EXT_WIDTH_MIN EXT_THETA 189 set EXT_THETA_ALT = EXT_THETA * (EXT_THETA >= 0.0) + (EXT_THETA + 3.14159265) * (EXT_THETA < 0.0) 190 set EXT_THETA = EXT_THETA_ALT 191 192 match2d X_EXT Y_EXT Xin Yin 1.0 -index1 index1 -index2 index2 193 194 reindex Xot_m = X_EXT using index1 195 reindex Yot_m = Y_EXT using index1 196 197 reindex Xin_m = Xin using index2 198 reindex Yin_m = Yin using index2 199 200 set dX = Xin_m - Xot_m 201 set dY = Yin_m - Yot_m 202 lim -n 0 dX dY; clear; box; plot dX dY 203 204 reindex Mot_m = EXT_INST_MAG using index1 205 reindex Tot_m = EXT_THETA using index1 206 207 reindex Min_m = Min using index2 208 reindex Tin_m = Tin using index2 209 210 reindex Rot_m = EXT_WIDTH_MAJ using index1 211 reindex rot_m = EXT_WIDTH_MIN using index1 212 213 reindex Rin_m = RmajIn using index2 214 reindex rin_m = RminIn using index2 215 216 set n = ramp(Xin_m) 217 218 set dM = Min_m - Mot_m 219 set dT = (Tin_m - Tot_m) * 180 / 3.14159265 220 lim -n 1 n dM; clear; box; plot n dM; label -y "delta mag" 221 lim -n 2 n dT; clear; box; plot n dT; label -y "delta theta (deg)" 222 lim -n 3 dT dM; clear; box; plot dT dM; label -x "delta theta (deg)" -y "delta mag" 223 224 set dR = Rin_m - Rot_m 225 set dr = rin_m - rot_m 226 lim -n 4 n dR; clear; box; plot n dR; label -y "delta Rmaj" 227 lim -n 5 n dr; clear; box; plot n dr; label -y "delta Rmin" 172 228 end 173 229
Note:
See TracChangeset
for help on using the changeset viewer.
