Skip to contents

This function extracts timeseries from (hourly) files from the chain metnordic_coordwindow() –> metnordic_buildquery() –> metnordic_download_daterange() –> metnordic_merge_hourly() –> metnordic_extract(). This function extracts from the nearest grid cell, if you would like a bi-linear interpolation of the nearest 4 cells, please try metnordic_extract_grid()

Usage

metnordic_extract(
  directory,
  mn_variables,
  point,
  outdir,
  name,
  verbose = FALSE
)

Arguments

directory

(String) directory containing merged files as created by metnordic_merge_hourly()

mn_variables

(vector, strings) variables to extract

point

an object of class "sf" with point geometry.

outdir

(string) directory in which to write the file (.csv)

name

(string) name of the file (will be added to filename)

verbose

(boolean) print?

Value

path to written file