MURSST_query: A basic MURSST query function to retrieve one or more...

Description Usage Arguments Value See Also Examples

View source: R/mursst.R

Description

A basic MURSST query function to retrieve one or more datasets

Usage

1
2
3
4
5
  MURSST_query(top = "http://www.neracoos.org/thredds/catalog/GMRI/SATELLITE/NASA/MUR_SST/catalog.xml",
  region = "NorthEastShelf", product = "DailyFiles",
  year = format(as.Date(Sys.Date()), "%Y"),
  day = format(as.Date(Sys.Date()), "%j"), what = c("all", "most_recent",
  "within", "before", "after")[1], date_filter = NULL, verbose = FALSE)

Arguments

top

character, uri of the top catalog

product

character, the product type (L3SMI)

year

character or numeric, four digit year(s) - ignored if what is not 'all'

day

character or numeric, three digit year of day(s) - ignored if what is not 'all'. You can improve efficiency by preselecting days for months, days, or seasons.

what

character, optional filters

  • all - return all occurences, the default, used with year and day, date_filter = NULL

  • most_recent - return only the most recent, date_filter = NULL

  • within - return the occurrences bounded by date_filter first and secomd elements

  • before - return the occurences prior to the first date_filter element

  • after - return the occurrences after the first date_filter element

date_filter

POSIXct or Date, one or two element vector populated according to the what parameter. By default NULL. It is an error to not match the value of date_filter

verbose

logical, by default FALSE

platform

character, the name of the platform (MODISA)

Value

list of DatasetRefClass or NULL

See Also

get_monthdays, get_8days and get_seasondays

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
      query <- MURSST_query(
         product = 'DailyFiles',
         what = 'most_recent')
      query <- MURSST_query(
         what = 'within',
         date_filter = as.POSIXct(c("2008-01-01", "2008-06-01"), format = "%Y-%m-%d") )
   
## End(Not run)

BigelowLab/neracooscrawler documentation built on May 5, 2019, 2:44 p.m.