drill_spec: Drill a timeseries of a variable at a given location

Description Usage Arguments Value Examples

Description

Drill a timeseries of a variable at a given location

Usage

1
drill_spec(input, spec, lat, lon)

Arguments

input

An open ncdf4 object.

spec

Full species name (4 chars) including spaces.

lat

Latitude of sample point.

lon

Longitude of sample point

Value

Timeseries vector of species concentration.

Examples

1
2
3
4
5
6
7
8
library(ncdf4)
library(raster)
tfile <- system.file("extdata","aust_20140212_nat_0.800dg_morw.nc",package="raaqfs")
mydata <- nc_open(tfile)
lat <- -33.5
lon <- 151.0
timeseries <- drill_spec(mydata,"EC25",lat,lon)
plot(timeseries,type="l",xlab="Hour",ylab="conc")

ozjimbob/raaqfs documentation built on May 24, 2019, 5:56 p.m.