Skip to contents

Read "Simulations 'DRIAS-2020': données quotidiennes corrigées [format Netcdf]" files

Usage

readDrias2020(
  files,
  cfg = loadConfig(),
  path = getDataPath(cfg$hydroclim$path, "drias", cfg$hydroclim$drias$source, cfg = cfg)
)

Arguments

files

character One or more file names to read without the path

cfg

a config object. Configuration to use. See loadConfig for details

path

the path of the files

Value

A list containing items:

  • var character the name of the variable

  • DatesR a POSIXct with the dates of data

  • cells a list containing one item by cell

Each cell is then a list with 2 items:

  • xy: a vector of lenght 2 : coordinates of the cell-centroid in Lambert II projection

  • data: a vector of the same lenght as DatesR with the meteorological time series

Details

files could be a vector with the "Historical" and the "rcpn.n" files, the two times series are then merged into a continuous one.