readchla: Read Chlorophyll-a, NASA algorithm

View source: R/chla.R

readchlaR Documentation

Read Chlorophyll-a, NASA algorithm

Description

Ocean colour Chlorophyll-a data, provide an input of daily dates and these will be averaged into one layer.

Usage

readCHL_month(
  date,
  xylim = NULL,
  returnfiles = FALSE,
  ...,
  inputfiles = NULL,
  latest = TRUE
)

readchla(
  date,
  product = c("any", "MODISA", "SeaWiFS", "VIIRS"),
  xylim = NULL,
  algorithm = c("nasa"),
  latest = TRUE,
  grid = NULL,
  ...,
  returnfiles = FALSE,
  inputfiles = NULL
)

Arguments

date

date or dates of data to read, see Details

xylim

spatial extents to crop from source data, can be anything accepted by extent, ignored if grid is provided

returnfiles

ignore options and just return the file names and dates

...

currently ignored Note that reaCHL_month reads the NASA algorithm L3m products.

Note that this function cannot be used with 'extract()', for that use read_chla_daily().

inputfiles

input the files data base to speed up initialization

latest

if TRUE (and date not supplied) return the latest time available, otherwise the earliest

product

choice of product, see Details

algorithm

nasa only

grid

template raster object for output

Value

raster object

See Also

readCHL_month

chlafiles for details on the repository of data files, raster for the return value

Examples

readCHL_month()
## Not run: 
d <- readchla(c("2003-01-01", c("2003-06-01")),
         xylim = extent(100, 150, -70, -30))

## End(Not run)

AustralianAntarcticDivision/raadtools documentation built on Nov. 14, 2024, 4:27 p.m.