powered by
Write station NetCDF (station x time) Exports a simulated climate station dataset to a NetCDF file.
write_station_netcdf( df, out_nc = "simulated_station_climate.nc", fillvalue = -9999 )
Returns the file path invisibly.
station x time long dataframe returned by simulate_climate_series()
Output NetCDF filename
Value used for missing entries
stations <- create_stations(n = 3) sim <- simulate_climate_series(stations) tmp <- tempfile(fileext = ".nc") write_station_netcdf(sim, tmp)
Run the code above in your browser using DataLab