In [9]:
# Load the needed packages
#from awot.dropsondes.dropsondes import get_dropsonde_data, splitFile
import awot
import matplotlib.pyplot as plt
%matplotlib inline
In [2]:
# Set the project name
Project="DYNAMO"
filename = '/Users/guy/data/dynamo/dropsonde/NOAA_P3_20111116.cls'
In [3]:
#sp = splitFile(filename)
ds = awot.io.read_dropsonde_data(filename, split_file=True)
In [4]:
ds['201111161245']['fields'].keys()
Out[4]:
In [5]:
ds['201111161245']['fields']['Temp']['data']
Out[5]:
In [7]:
print("Min/Max Temp: %g/%g\n"
"Min/Max Dewpt: %g/%g\n"
"Min/Max Pressure: %g/%g\n"%(
ds['201111161245']['fields']['Temp']['data'].min(), ds['201111161245']['fields']['Temp']['data'].max(),
ds['201111161245']['fields']['Dewpt']['data'].min(), ds['201111161245']['fields']['Dewpt']['data'].max(),
ds['201111161245']['fields']['Press']['data'].min(), ds['201111161245']['fields']['Press']['data'].max()))
In [8]:
awot.graph.plot_skewt_logp(ds,'201111161245', x_min=-20, x_max=40)#, p_min=400, p_max=1000)
In [ ]: