Learn R Programming

grwat (version 0.0.4)

gr_read_rean: Read reanalysis data

Description

The function reads meteorological variables (temperature and precipitation) from grwat reanalysis for using with gr_join_rean(). Reanalysis covers the East European Plain with 0.75 degrees spatial resolution and is obtained based on CIRES-DOE (1880-1949) and ERA5 (1950-2021) data.

Usage

gr_read_rean(file_prec, file_temp)

Value

list containing time series, precipitation series, temperature series and spatial points (sf)

Arguments

file_prec

Character string path to precipitation NetCDF file.

file_temp

Character string path to temperature NetCDF file.

Details

Download the reanalysis archive from here.

Examples

Run this code
if (require("sf") && require("ncdf4")) {
  
  library(grwat)
  
  # read reanalysis data
  if (FALSE) {
    rean = gr_read_rean(
      '/Volumes/Data/Spatial/Reanalysis/grwat/pre_1880-2021.nc',
      '/Volumes/Data/Spatial/Reanalysis/grwat/temp_1880-2021.nc'
    ) 
    
    str(rean)
  }
  
}

Run the code above in your browser using DataLab