This function creates a new virtual sensor on locality within the myClim data object. The virtual sensor represents the actual vapor pressure (in kPa) calculated from temperature and relative air humidity.
mc_calc_pact(
data,
temp_sensor = "HOBO_T",
rh_sensor = "HOBO_RH",
output_sensor = "p_act",
elevation = 0,
metadata_elevation = TRUE,
localities = NULL
)cleaned myClim object see myClim-package
name of temperature sensor. Temperature sensor must be in T_C physical.
name of relative air humidity sensor. Humidity sensor must be in RH physical.
name of new virtual p_act sensor (default "p_act")
value in meters (default 0)
if TRUE then elevation from metadata of locality is used (default TRUE)
list of locality_ids for calculation; if NULL then all (default NULL)
myClim object same as input but with added p_act sensor
agg_data <- mc_calc_pact(mc_data_example_agg, "HOBO_T", "HOBO_RH", localities="A2E32")