binlatlon: Get bin number, longitude, latitude

View source: R/bin_funcs.R

binlatlonR Documentation

Get bin number, longitude, latitude

Description

This creates a dataframe containing the bin number, longitude, and latitudes for the full globe, for a given resolution, using the Integerized Sinusoidal Binning Scheme used by NASA OBPG for their level-3 binned satellite files (e.g. MODIS-Aqua). More info here: https://oceancolor.gsfc.nasa.gov/docs/format/l3bins/

Usage

binlatlon(
  resolution = "4",
  lonlim = c(-180, 180),
  latlim = c(-90, 90),
  max_bins = 5e+07
)

Arguments

resolution

String indicating spatial resolution, see ?gen_nrows for list of accepted strings

lonlim

Minimum and maximum longitude of the area of interest

latlim

Minimum and maximum latitude of the area of interest

max_bins

Maximum number of bins that can be generated between the selected latitudes. This is to prevent overloading memory with the higher-resolution grids (e.g. 250m, 1km)

Details

WARNING: This retrieves ALL bins, over both land and water. The pre-made bin vectors for pancan/nwa/nep/gosl regions that are retrieved by the get_bins() function only include bins over water.

LATITUDE AND LONGITUDE ARE AT THE CENTER OF THE BIN.

Value

Dataframe with 3 columns: bin number, longitude, latitude


BIO-RSG/oceancolouR documentation built on April 30, 2024, 7:54 a.m.