mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
add time slider (results)
This commit is contained in:
1 parent
91e780432d
commit
92c9b106e3
4 files changed
+100
-21
No files matched your search
+1
-10
@@ -521,13 +521,11 @@ class AdisTSlc(AdisTS):
|
||||
for k in range(0, ismax, kbl):
|
||||
data = np.fromfile(f, dtype=np.int32, count=1) # line length (bytes) (start)
|
||||
pk[k:min(k + kbl, ismax)] = np.fromfile(f, dtype=np.float32, count=min(k + kbl, ismax) - k)
|
||||
print("pk : ", pk)
|
||||
data = np.fromfile(f, dtype=np.int32, count=1) # line length (bytes) (end)
|
||||
|
||||
# fifth line (useless)
|
||||
data = np.fromfile(f, dtype=np.int32, count=1) # line length (bytes) (start)
|
||||
zmin_OLD = np.fromfile(f, dtype=np.float32, count=1)[0]
|
||||
print("zmin_OLD : ", zmin_OLD)
|
||||
data = np.fromfile(f, dtype=np.int32, count=1) # line length (bytes) (end)
|
||||
# sixth line
|
||||
zf = np.zeros(ismax, dtype=np.float32)
|
||||
@@ -539,12 +537,10 @@ class AdisTSlc(AdisTS):
|
||||
# z[i*3+1] and z[i*3+2] are useless
|
||||
data = np.fromfile(f, dtype=np.int32, count=1) # line length (bytes) (end)
|
||||
zf = [z[i * 3] for i in range(ismax)]
|
||||
print("zf : ", zf)
|
||||
# seventh line (useless)
|
||||
for k in range(0, ismax, kbl):
|
||||
data = np.fromfile(f, dtype=np.int32, count=1) # line length (bytes) (start)
|
||||
zero = np.fromfile(f, dtype=np.int32, count=ismax)
|
||||
print("zero : ", zero)
|
||||
data = np.fromfile(f, dtype=np.int32, count=1) # line length (bytes) (end)
|
||||
# end header
|
||||
|
||||
@@ -648,17 +644,12 @@ class AdisTSlc(AdisTS):
|
||||
#print("isma")
|
||||
###print("iprofiles: ", iprofiles)
|
||||
|
||||
pi_tmp = []
|
||||
reach_tmp = []
|
||||
|
||||
for i in range(ismax-1):
|
||||
for i in range(ismax):
|
||||
#print("first i: ", i)
|
||||
reach = ip_to_r(i)
|
||||
reach_tmp.append(reach)
|
||||
#print("reach i:", reach)
|
||||
#print("second i: ", i)
|
||||
p_i = ip_to_ri(reach, i)
|
||||
pi_tmp.append(p_i)
|
||||
|
||||
for t_data in timestamps_keys:
|
||||
pol_view = []
|
||||
|
||||
Reference in new issue
Block a user