A vertical cross section of temperature does not show as much structure as possible because the vertical temperature gradient is much larger than the horizontal temperature gradient. One way to solve this problem is to subtract the U. S. Standard Atmosphere from the temperature field, and create a vertical cross section of temperature anomaly.
This exercise will show how Jython can be used in the IDV for complex calculations like this.
Sample RUC Datadata source.
Contour Vertical Cross Sectionof the
Edit->Formulas->Jython Librarymenu item.
..workshop/default.pytab which is the Jython library loaded from the plugin. You should see:
def tempAnom(t): """ temperature anomaly from U.S. Standard Atmosphere """ # get pressure levels of temperature grids p=extractPressureFromNWPGrid(t) # calculate temperature for a constant lapse rate (6.5 C/km) atmosphere tstd=288.15*(p/1013.25)**(287.05*.0065/9.806) # change temperature in stratosphere to isothermal (216.65 K) for i in range(len(p)): if p[i] < 225.0: tstd[i]=216.65 # calculate the temperature anomaly tanom=t-tstd return tanom
If it is not there, paste this formula into your locally editable
library and click the
Edit->Formulas->Create Formulamenu item.
Name:anomaly of temperature
Formulasdata source in the
anomaly of temperatureformula under the Workshop tab in the
Contour Vertical Cross Section
Edit->Sharingmenu of each display control, check the