@ParthibanSoundr/

BossyDistantDownload

Python

No description

fork
loading
Files
  • main.py
  • globalvariables.py
  • linspace.py
  • pendulum.py
  • pressureDrop.py
  • python_Calss.py
  • python_class_with_methods.py
  • sample2.py
  • test.py
  • tzone_utc_local.py
  • tzone01.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import struct
# model1 processing....
# converted_byte :::::::: b"'t\\xa6\\xc6\\xfcu\\t\\xd7A\\x14n\\x94B\\x8f\\x02yD\\x96C\\xa6A'"
# reconvert_byte ::::: b"'t\xa6\xc6\xfcu\t\xd7A\x14n\x94B\x8f\x02yD\x96C\xa6A'"
# converted_byte 1111111  :::::::: b"'t\\xa6\\xc6\\xfcu\\t\\xd7A\\x14n\\x94B\\x8f\\x02yD\\x96C\\xa6A'"
# reconvert_byte 2222222222222  ::::: b"'t\xa6\xc6\xfcu\t\xd7A\x14n\x94B\x8f\x02yD\x96C\xa6A'"
# data 33333333333333 >>>>>>>> (1545983987.1039095, 74.21499633789062, 996.0399780273438, 20.783000946044922)




# reconvert_byte = b"'t\xa6\xc6\xfcu\t\xd7A\x14n\x94B\x8f\x02yD\x96C\xa6A'"
# print(reconvert_byte[1:-1])

# reconvert_byte = reconvert_byte[1:-1]

# data = struct.unpack('=dfff',reconvert_byte)

# print(data)

# converted_byte :::::::: b'b\'|\\x02\\xcd\\x18v\\t\\xd7A\\xd1""\\x92B\\x8f\\x02yDj\\xbc\\xabA\'""'
# reconvert_byte ::::: b'b\'|\x02\xcd\x18v\t\xd7A\xd1""\x92B\x8f\x02yDj\xbc\xabA\'""'
# converted_byte 1111111  :::::::: b'b\'|\\x02\\xcd\\x18v\\t\\xd7A\\xd1""\\x92B\\x8f\\x02yDj\\xbc\\xabA\'"'
# reconvert_byte 2222222222222  ::::: b'b\'|\x02\xcd\x18v\t\xd7A\xd1""\x92B\x8f\x02yDj\xbc\xabA\'"'


# reconvert_byte = b'b\'\x02\xcd\x18v\t\xd7A\xd1\x92B\x8f\x02yDj\xbc\xabA\'"'
# print(reconvert_byte[2:-2])

# # print(reconvert_byte[2:-2].replace('""','').encode('utf-8'))

# reconvert_byte = reconvert_byte[2:-2]

# data = struct.unpack('=dfff',reconvert_byte)

# print(data)

import numpy as np
data = [1.000222,2.00089,3,4]

a = np.round(data[1],decimals = 3)
try:
	b = np.round(data[5],decimals = 3)
	c = np.round(data[6],decimals = 3)
except:
	b = 0
	c = 0
print(b,c)


data = [1,2,3,4,5,6,-999,-1786,-999,-9999,2222,0]

for a in data:
	print(a)

test = [i for i in data if i != -999]
print(test)