derivate: Derivate

Description Usage Arguments Details Value

View source: R/derivate.R

Description

Compute the derivate of a 2D array.

Usage

1
2
3
  derivate (data_array, lat, lon, lat_lon = TRUE,
                     dx = TRUE, dy = TRUE, spherical_x = FALSE,
                     a = 6371000, rad = FALSE)

Arguments

data_array

32D array of the data with dims lat_lon (default) or lon_lat (see lat_lon)

lat

numeric vector of the latitudes of data_array

lon

numeric vector of the longitudes of data_array

lat_lon

logical, is the data_array dims organize lat_lon (default), if are lon_lat use =FALSE

dx

logical, should the derivation in the x axes be done ? default = TRUE

dy

logical, should the derivation in the y axes be done ? default = TRUE

spherical_x

logical, is the x axis continous (after the last value comes the first one) ? default = FALSE

a

numeric, redius of the Earth in meters default = 6371000

rad

logical, are the latitude and longitude in radians ? default = FALSE

Details

derivate compute the derivates of data_array

Value

Returns a list with the derivates of data_array.

dx

derivate in the x axis

dy

derivate in the y axis


santiagoh719/ClimFunctions documentation built on June 2, 2020, 12:05 a.m.