refactoring and log of coorinate work

This commit is contained in:
2022-09-02 12:46:51 +02:00
parent a54e580664
commit 45e8ab680f
8 changed files with 215 additions and 154 deletions

View File

@@ -106,19 +106,26 @@ class AppCfg(QSettings):
if AppCfg.GEO_PIX2POS not in keys:
_log.warning(f'{AppCfg.GEO_PIX2POS} not defined. use default')
lut_pix2pos=(np.array([1., 200., 400., 600., 800., 1000.]),
np.array([[[ 2.42827273e-03, -9.22117396e-05],
[-1.10489804e-04, -2.42592492e-03]],
[[ 1.64346103e-03, -7.52341417e-05],
[-6.60711165e-05, -1.64190224e-03]],
[[ 9.91307639e-04, -4.02008751e-05],
[-4.23878232e-05, -9.91563507e-04]],
[[ 5.98443038e-04, -2.54046255e-05],
[-2.76831563e-05, -6.02738142e-04]],
[[ 3.64418977e-04, -1.41389267e-05],
[-1.55708176e-05, -3.66233567e-04]],
[[ 2.16526433e-04, -8.23070130e-06],
[-9.29894004e-06, -2.16842976e-04]]]))
#lut_pix2pos=(np.array([1., 200., 400., 600., 800., 1000.]),
# np.array([[[ 2.42827273e-03, -9.22117396e-05],
# [-1.10489804e-04, -2.42592492e-03]],
# [[ 1.64346103e-03, -7.52341417e-05],
# [-6.60711165e-05, -1.64190224e-03]],
# [[ 9.91307639e-04, -4.02008751e-05],
# [-4.23878232e-05, -9.91563507e-04]],
# [[ 5.98443038e-04, -2.54046255e-05],
# [-2.76831563e-05, -6.02738142e-04]],
# [[ 3.64418977e-04, -1.41389267e-05],
# [-1.55708176e-05, -3.66233567e-04]],
# [[ 2.16526433e-04, -8.23070130e-06],
# [-9.29894004e-06, -2.16842976e-04]]]))
# rough data for binning=1,1
z=np.array((1.0, 200.0, 400.0, 600.0, 800.0, 1000.0))
t1=np.array(([1, 0.0000], [0.0000, -1])).reshape(1, -1)
t2=np.array((0.001214,0.000821,0.000495,0.000299,0.000182,0.000108)).reshape(-1, 1)
trf=(t1*t2).reshape((-1, 2, 2))
lut_pix2pos=(z, trf)
self.setValue(AppCfg.GEO_PIX2POS, lut_pix2pos)
if AppCfg.GEO_OPT_CTR not in keys: