aiRthermo (version 1.0)

stuve_diagram: Thermodynamic (STUVE) Diagram

Description

This function generates an St<U+00FC>ve diagram

Usage

stuve_diagram(Pres, Temp, TempD = NA, XLIM = c(-80, 45), YLIM = c(1050, 100))

Arguments

Pres

A vector with pressure values in hPa.

Temp

A vector with temperature values in Celsius .

TempD

An optional vector with dew point temperatures in Celsius. The default value is NA.

XLIM

X axis limit in Celsius. Default value is c(-80, 45)

YLIM

Y axis limit in hPa. Default value is c(1050, 100)

Value

The result is a plot object.

Details

It is possible to add extra lines and to save as a pdf, jpeg or png (see examples).

Examples

Run this code
# NOT RUN {
data(RadiosondeA)
aPs<-RadiosondeA[,1]*100
aTs<-C2K(RadiosondeA[,3])
aws<-RadiosondeA[,6]/1000
capeCin<-CAPE_CIN(PlowTop=98000,precoolType="adiabatic",
                  Ps=aPs,Ts=aTs,ws=aws,doLog=0,deltaP=5,
                  getLiftedBack=TRUE,upToTop=TRUE)

#How to add a line to the plot
stuveA<-stuve_diagram(Pres = aPs/100,Temp=aTs-273.15)
lines(capeCin$Tl-273.15,capeCin$Pl/100,col="red",lwd=2)
# }

Run the code above in your browser using DataLab