rtofs_glo2ds_nav: Compute the elements for navigating ncfd4 array extraction

Description Usage Arguments Value

View source: R/glo_2ds.R

Description

Compute the elements for navigating ncfd4 array extraction

Usage

1
2
3
4
5
6
7
rtofs_glo2ds_nav(
  NC,
  bb = c(-72, -63, 39, 46),
  level = 1,
  layers = seq_len(NC$dim$time$len),
  offset = 360
)

Arguments

NC

ncdf4 class object

bb

numeric, a 4 element vector specifing the bonding box in [left, right, bottom, top] order.

level

numeric vector or one or more contiguous level numbers. Since we are accessing surface data this is a bit of a red herring. Best to accept the default.

layers

numeric vector or one or more contiguous layer numbers.

offset

numeric the longitudinal offset need to translate between the typical [-180, 180] to the rtofs degrees east system. By default it is 360 which implies the input bb longitudes range form [-180, 180]. If the actual bb longitudes are [0,360] then set this to min(NC$dim$lon$vals)

Value

a list of navigation elements


BigelowLab/rtofs documentation built on Nov. 13, 2020, 12:14 p.m.