croproms: Crop a ROMS layer

Description Usage Arguments Details Examples

View source: R/c-grid.r

Description

Crop a ROMS data layer from romsdata with a raster extent.

Usage

1
croproms(x, ext, ...)

Arguments

x

ROMS xy- coordinates, see romscoords

ext

raster::extent in the coordinate system of x

...

ignored

Details

The spatial crop is performed in the coordinate space of roms data.

Examples

1
2
3
4
5
## notice that extent is in long-lat, but ice_local is in the grid
## space of ice_coords
ice_local <- croproms(ice_coords, extent(100, 120, -75, -60))
plot(ice_coords[[2]], col = grey(seq(0, 1, length  = 20)))
plot(crop(ice_fake, ice_local), add = TRUE)

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