Generates synthetic dew point temperature series for multiple stations using simulated air temperature and relative humidity.
simulate_dewpoint(
temperature,
rh,
min_dewpoint = -5,
max_dewpoint = 35,
noise_sd = 0.5,
seed = NULL
)data.frame from simulate_temperature()
data.frame from simulate_rh()
Numeric. Minimum allowable dew point (°C). Default = -5
Numeric. Maximum allowable dew point (°C). Default = 35
Numeric. Stochastic variability in dew point. Default = 0.5
Optional numeric seed.
data.frame containing:
Station name
Longitude
Latitude
Elevation
Simulation timestamp
Calendar year
Calendar month
Climatological season
Mean air temperature (°C)
Relative humidity (%)
Simulated dew point temperature (°C)
Tmean − DewPoint
Dew point is physically linked to:
air temperature,
atmospheric moisture,
rainfall regimes,
coastal humidity effects,
elevation controls.
The simulation uses a Magnus-type approximation for realistic atmospheric thermodynamics.
stations <- create_stations(
n = 3,
seed = 123
)
#> Generating synthetic station network...
#> Generated 3 synthetic stations within bounding box.
#> Deriving climate-aware station attributes...
tindex <- generate_time_index(
start_date = "2000-01-01",
end_date = "2005-12-31",
frequency = "monthly"
)
#> Generated 72 time steps at monthly resolution.
temp <- simulate_temperature(
stations,
tindex
)
#> Temperature simulation complete for 3 stations.
rh <- simulate_rh(
stations,
tindex
)
#> Relative humidity simulation complete for 3 stations.
dew <- simulate_dewpoint(
temperature = temp,
rh = rh
)
#> Dew point simulation complete for 3 stations.
head(dew)
#> Station LON LAT ELEV DATE Year Month Season Avg.Temp
#> 1 Station_1 -2.062112 10.68112 422.5 2000-01-16 2000 1 Dry 27.74
#> 2 Station_1 -2.062112 10.68112 422.5 2000-02-15 2000 2 Dry 27.61
#> 3 Station_1 -2.062112 10.68112 422.5 2000-03-16 2000 3 Pre-Wet 27.72
#> 4 Station_1 -2.062112 10.68112 422.5 2000-04-15 2000 4 Pre-Wet 27.44
#> 5 Station_1 -2.062112 10.68112 422.5 2000-05-16 2000 5 Pre-Wet 27.52
#> 6 Station_1 -2.062112 10.68112 422.5 2000-06-15 2000 6 Wet 25.51
#> RH DewPoint Dewpoint_Depression
#> 1 51.92 17.19 10.55
#> 2 61.22 19.04 8.57
#> 3 58.69 19.39 8.33
#> 4 60.54 19.38 8.06
#> 5 59.98 19.43 8.09
#> 6 54.83 15.80 9.71