romsdata: ROMS single slice 2D layer Extract a data layer from ROMS by...

Description Usage Arguments Value Examples

Description

romsdata always works in the first two dimensions (x-y), the more specialist functions will work in the space indicated by their name roms_xy, roms_xt and so on.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
roms_xy(x, varname, slice = c(1L, 1L), transpose = TRUE, ...)

roms_xz(x, varname, slice = c(1L, 1L), transpose = TRUE, ...)

roms_xt(x, varname, slice = c(1L, 1L), transpose = TRUE, ...)

roms_yz(x, varname, slice = c(1L, 1L), transpose = TRUE, ...)

roms_yt(x, varname, slice = c(1L, 1L), transpose = TRUE, ...)

roms_zt(x, varname, slice = c(1L, 1L), transpose = TRUE, ...)

romsdata(x, varname, slice = c(1L, 1L), ncdf = TRUE, transpose = TRUE,
  ...)

Arguments

x

ROMS file name

varname

name of ROMS variable

slice

index in w and t (depth and time), defaults to first encountered

transpose

the extents (ROMS is FALSE, Access is TRUE)

...

unused

ncdf

default to TRUE, set to FALSE to allow raster format detection brick

Value

RasterLayer

Examples

1
2
3
4
5
6
7
8
#x <- raadtools:::cpolarfiles()$fullname[1]
#plot(roms_xy(x, "u"))
#plot(roms_xz(x, "u", slice = c(392L,1L)), asp = NA)
#plot(roms_xt(x, "u", slice = c(392L,1L)), asp = NA)

#plot(roms_yz(x, "u"))
#plot(roms_yt(x, "u", slice = c(1L,1L)), asp = NA)
#plot(roms_zt(x, "u", slice = c(1L, 392L)), asp = NA)

angstroms documentation built on May 2, 2019, 2:41 p.m.