This script, is really more of a function, the best way to use this would be to copy the contents of this script into the bottom of the script you wish to use it in. This function reads in temperature and moisture information and returns a good approximation of both potential and equivalent potential temperature.
This function asks for up to four inputs, though only temperature and moisture inputs are required.
It is capable of calculating equivalent potential temperature given four different moisture input variables:
- Relative Humidity (-rh)
- Mixing Ratio (-r)
- Vapor Pressure (-e)
- Specific Humidity (-q)
The default is relative humidity.