@@ -882,7 +882,9 @@ def calculate_pressure_stats(self):
882
882
883
883
# Pressure at 1000 feet
884
884
self .pressure_at_1000ft_list = [
885
- dayDict [hour ]["pressure" ](convert_units (1000 , "ft" , self .current_units ["height_ASL" ]))
885
+ dayDict [hour ]["pressure" ](
886
+ convert_units (1000 , "ft" , self .current_units ["height_ASL" ])
887
+ )
886
888
for dayDict in self .pressureLevelDataDict .values ()
887
889
for hour in dayDict .keys ()
888
890
]
@@ -891,7 +893,9 @@ def calculate_pressure_stats(self):
891
893
892
894
# Pressure at 10000 feet
893
895
self .pressure_at_10000ft_list = [
894
- dayDict [hour ]["pressure" ](convert_units (10000 , "ft" , self .current_units ["height_ASL" ]))
896
+ dayDict [hour ]["pressure" ](
897
+ convert_units (10000 , "ft" , self .current_units ["height_ASL" ])
898
+ )
895
899
for dayDict in self .pressureLevelDataDict .values ()
896
900
for hour in dayDict .keys ()
897
901
]
@@ -900,15 +904,17 @@ def calculate_pressure_stats(self):
900
904
901
905
# Pressure at 30000 feet
902
906
self .pressure_at_30000ft_list = [
903
- dayDict [hour ]["pressure" ](convert_units (30000 , "ft" , self .current_units ["height_ASL" ]))
907
+ dayDict [hour ]["pressure" ](
908
+ convert_units (30000 , "ft" , self .current_units ["height_ASL" ])
909
+ )
904
910
for dayDict in self .pressureLevelDataDict .values ()
905
911
for hour in dayDict .keys ()
906
912
]
907
913
self .average_pressure_at_30000ft = np .average (self .pressure_at_30000ft_list )
908
914
self .std_pressure_at_30000ft = np .std (self .pressure_at_30000ft_list )
909
915
910
916
return self .average_surface_pressure , self .std_surface_pressure
911
-
917
+
912
918
def calculate_average_cloud_base_height (self ):
913
919
"""Calculate average cloud base height."""
914
920
self .mean_cloud_base_height = np .ma .mean (self .cloud_base_height )
@@ -2443,10 +2449,18 @@ def update(frame):
2443
2449
2444
2450
def allInfo (self ):
2445
2451
print ("Pressure Information" )
2446
- print (f"Average Surface Pressure: { self .average_surface_pressure :.2f} ± { self .std_surface_pressure :.2f} { self .unit_system ['pressure' ]} " )
2447
- print (f"Average Pressure at { convert_units (1000 , 'ft' , self .current_units ['height_ASL' ]):.0f} { self .current_units ['height_ASL' ]} : { self .average_pressure_at_1000ft :.2f} ± { self .std_pressure_at_1000ft :.2f} { self .unit_system ['pressure' ]} " )
2448
- print (f"Average Pressure at { convert_units (10000 , 'ft' , self .current_units ['height_ASL' ]):.0f} { self .current_units ['height_ASL' ]} : { self .average_pressure_at_10000ft :.2f} ± { self .std_pressure_at_1000ft :.2f} { self .unit_system ['pressure' ]} " )
2449
- print (f"Average Pressure at { convert_units (30000 , 'ft' , self .current_units ['height_ASL' ]):.0f} { self .current_units ['height_ASL' ]} : { self .average_pressure_at_30000ft :.2f} ± { self .std_pressure_at_1000ft :.2f} { self .unit_system ['pressure' ]} " )
2452
+ print (
2453
+ f"Average Surface Pressure: { self .average_surface_pressure :.2f} ± { self .std_surface_pressure :.2f} { self .unit_system ['pressure' ]} "
2454
+ )
2455
+ print (
2456
+ f"Average Pressure at { convert_units (1000 , 'ft' , self .current_units ['height_ASL' ]):.0f} { self .current_units ['height_ASL' ]} : { self .average_pressure_at_1000ft :.2f} ± { self .std_pressure_at_1000ft :.2f} { self .unit_system ['pressure' ]} "
2457
+ )
2458
+ print (
2459
+ f"Average Pressure at { convert_units (10000 , 'ft' , self .current_units ['height_ASL' ]):.0f} { self .current_units ['height_ASL' ]} : { self .average_pressure_at_10000ft :.2f} ± { self .std_pressure_at_1000ft :.2f} { self .unit_system ['pressure' ]} "
2460
+ )
2461
+ print (
2462
+ f"Average Pressure at { convert_units (30000 , 'ft' , self .current_units ['height_ASL' ]):.0f} { self .current_units ['height_ASL' ]} : { self .average_pressure_at_30000ft :.2f} ± { self .std_pressure_at_1000ft :.2f} { self .unit_system ['pressure' ]} "
2463
+ )
2450
2464
print ()
2451
2465
2452
2466
print (
0 commit comments