Skip to contents

Fetch station metadata based on station number & parameter id from Frost v1. The function gets station name, location and sensor details such as level, exposure and performance

Usage

get_metadata_frost(
  stationid = 18700,
  paramid = NULL,
  dx = 100,
  resx = 1,
  path = sprintf("output/%i", stationid)
)

Arguments

stationid

A station number as integer and defined by met.no

paramid

A parameter number as integer and defined by met.no

dx

A distance in metre or radius defining the extent of the bounding box from the centre point

resx

A horizontal resolution in metre

path

A directory path defining where will be saved project plots/data

Value

Station metadata

Examples

get_metadata_frost(stationid = 18700)
#>  class       : SpatVector 
#>  geometry    : points 
#>  dimensions  : 1, 26  (geometries, attributes)
#>  extent      : 260966.8, 260966.8, 6652718, 6652718  (xmin, xmax, ymin, ymax)
#>  source      : 18700_stn.gpkg
#>  coord. ref. : ETRS89 / UTM zone 33N (EPSG:25833) 
#>  names       : level parameterid sensor stationid  elev   lat   lon elev.1
#>  type        : <int>       <int>  <int>     <int> <num> <num> <num>  <num>
#>  values      :     0         211      0     18700    94 59.94 10.72     94
#>     element.name    station.name (and 16 more)
#>            <chr>           <chr>              
#>  Air temperature OSLO - BLINDERN              
#get_metadata_frost(stationid = 18700, paramid = 211)
#get_metadata_frost(stationid = 18700, paramid = 211, dx = 100, resx = 1)