checkDateLimits: Check if input falls within Date limits for currently...

Description Usage Arguments Details Value Author(s) See Also

Description

Check if input falls within Date limits

Usage

1
checkDateLimits(type, firstDay)

Arguments

type

Type of environmental layer. Currently takes 3 possible values: 'productivity', 'chlorophyll' and 'sst' below.

firstDay

An object of class Date of format YYYY-MM-01.

Details

The function uses internal dataTypeLimits to evaluate whether the provided month and year in erddapDownload follow within the supported dates. If YYYY-MM is identical to either beginning or end of supported range, than the function modifies firstDay to have the same day as the starting (or ending) supported date.

Value

An object of class Date of format 'YYYY-MM-DD' currently supported ERDDAP data

Author(s)

Diego Barneche.

See Also

dataTypeLimits, erddapDownload.


dbarneche/noaaErddap documentation built on May 16, 2020, 11:37 a.m.