build_era5_request: Builds a request compatible with the CDS for all microclimate...

Description Usage Arguments

View source: R/build_era5_request.R

Description

'build_era5_request' creates a request or set of requests that can be submitted to the Climate Data Store (CDS) with the 'ecmwfr' package. Spatial and temporal extents are defined by the user, and requests are automatically split by year. The following variables are requested: 2m_temperature, 2m_dewpoint_temperature, surface_pressure, 10m_u_component_of_wind, 10m_v_component_of_wind, total_precipitation, total_cloud_cover, mean_surface_net_long_wave_radiation_flux, mean_surface_downward_long_wave_radiation_flux, total_sky_direct_solar_radiation_at_surface, surface_solar_radiation_downwards.

Usage

1
2
3
4
5
6
7
8
9
build_era5_request(
  xmin,
  xmax,
  ymin,
  ymax,
  start_time,
  end_time,
  outfile_name = "era5_out"
)

Arguments

xmin

The minimum longitude to request data for.

xmax

The maximum longitude to request data for.

ymin

The minimum latitude to request data for.

ymax

The maximum latitude to request data for.

start_time

a POSIXlt object indicating the first hour for which data are required.

end_time

a POSIXlt object indicating the last hour for which data are required.

outfile_name

character prefix for .nc files when downloaded (the year and file extension is automatically added). Keep in mind that you may want to submit multiple (or many) requests, and therefore this prefix should adequately describe a unique query (e.g. by its spatial or temporal extent).


dklinges9/mcera5 documentation built on Jan. 14, 2022, 9:42 p.m.