You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like updates to TDS 5 broke this workshop notebook. Assuming we keep it, the 4th from the end cell needs to look like:
frommetpy.unitsimportunitsimportnumpyasnp# get netCDF variablespressure=point_data.variables["altitude"]
temp=point_data.variables["Temperature_isobaric"]
u_cmp=point_data.variables["u-component_of_wind_isobaric"]
v_cmp=point_data.variables["v-component_of_wind_isobaric"]
relh=point_data.variables["Relative_humidity_isobaric"]
# download data and assign the units based on the variables metadata# Need to put units on the left to assure things work properly with masked arraysp=units(pressure.units) *pressure[:].squeeze()
T=units(temp.units) *temp[:].squeeze()
u=units(u_cmp.units) *u_cmp[:].squeeze()
v=units(v_cmp.units) *v_cmp[:].squeeze()
relh=units('percent') *relh[:].squeeze()
This updates to use "altitude" instead of "isobaric", and also removes the code to manually sync the levels since it seems like the server is doing that for us?
The text was updated successfully, but these errors were encountered:
It looks like updates to TDS 5 broke this workshop notebook. Assuming we keep it, the 4th from the end cell needs to look like:
This updates to use "altitude" instead of "isobaric", and also removes the code to manually sync the levels since it seems like the server is doing that for us?
The text was updated successfully, but these errors were encountered: