radar: Function to read radar data from thredds.met.no

View source: R/radar.thredds.met.no.R

radarR Documentation

Function to read radar data from thredds.met.no

Description

Function to read radar data from thredds.met.no

Usage

radar(
  url = "https://thredds.met.no/thredds/catalog/remotesensingradaraccr/",
  lons = c(9.5, 11.5),
  lats = c(59, 61),
  param = "lwe_precipitation_rate",
  FUN = "sum",
  it = 2010:2019,
  verbose = FALSE,
  plot = FALSE
)

Arguments

url

URL for the data on thredds.met.no

lons

Longitude selection - if NULL read all

lats

Latitude selection - if NULL read all

param

Variable name

FUN

Function for daily aggregation. =NULL gives raw data

it

Intex time - the years to select

verbose

write out diagnostics

plot

plot the results while reading.

See Also

station.thredds, meta.thredds

Examples

## Not run: 
Z <- radar(lons = c(10,12), lats = c(59,61), it=2015)
map(Z)

y <- station.thredds(stid=18700,param='precip')
x <- regrid(Z,is=y)
xy <- combine.stations(subset(y,it=x),x)
plot(xy,new=FALSE)
plot(as.monthly(xy,na.rm=TRUE,FUN='mean'),new=FALSE)

## End(Not run)

metno/esd documentation built on April 29, 2024, 3:34 p.m.