nc_subset: Compute subset coordinates given a bounding box - suitable...

Description Usage Arguments Value

Description

Pixel center coordinates are typically specified within the 'dim' attribute in the ncdf4 object. Step size between pixel centers is taken to be the mean for all pixels by default, but this can be overridden.

Usage

1
2
nc_subset(NC, bb = c(-77, -51.5, 37.9, 56.7), step = nc_step(NC),
  dim_names = c("lon", "lat"))

Arguments

NC

a ncdf4 class object

bb

the 4 element bounding box [left, right, bottom, top]

step

one or two element numeric of the step size.

dim_names

a two element character vector providing the names of the x and y coordinates. By default c('lon', 'lat')

Value

a 5 element list of


BigelowLab/spnc documentation built on May 5, 2019, 2:45 p.m.