readROMS: 'readROMS' Read Norkyst data

Description Usage Arguments Details Value Author(s) See Also

Description

readROMS Read Norkyst data

Usage

1
2
3
readROMS(roms.dir = "R:/Jofrid/Kaldfjord_160m_2014", date = "20141101",
  var = "u", xlim = c(18.3, 18.8), ylim = c(69.6, 69.9),
  to.xyz = F)

Arguments

roms.dir

Repository of Norkyst data (in NetCDF format)

date

Text string matching date info in file name

var

Name of variable to read (currently limited to one variable only)

xlim

Specify longitude extent of subregion of grid. Note! This is only possible if data are converted to xyz format

ylim

Specify latitude extent of subregion of grid. Note! This is only possible if data are converted to xyz format

to.xyz

Logical, should data be converted to xyz points (TRUE) or be kept in original array form (FALSE)

Details

Reads data corresponding to one variable from Norkyst model output covering the Troms coast. Expects input in NetCDF4 format, and uses the ncdf4 package.

Value

Returns either 1) list containing latitude (matrix), longitude (matrix) and variable (matrix or array) or 2) data frame of lat/lon/variable data

Author(s)

Martin Biuw

See Also

cropROMS to crop data in matrix & array form, imageROMS to plot data

Other Norkyst model output: cropROMS, imageROMS


embiuw/NorKyst documentation built on May 9, 2019, 5 a.m.