Description Usage Arguments Value See Also Examples
View source: R/modisa.R View source: R/query.R View source: R/query.R
A basic MODISA query function to retrieve one or more datasets
A basic MODISA query function to retrieve one or more datasets
A basic MURSST query function to retrieve one or more datasets
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | MODISA_query(top = "http://www.neracoos.org/thredds/catalog/GMRI/SATELLITE/NASA/MODISA_NESHELF/catalog.xml",
platform = "MODISA", product = "L3SMI",
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, greplargs = NULL,
verbose = FALSE)
MODISA_query(top = "http://www.neracoos.org/thredds/catalog/GMRI/SATELLITE/NASA/MODISA_NESHELF/catalog.xml",
platform = "MODISA", product = "L3SMI",
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, greplargs = NULL,
verbose = FALSE)
MODISA_query(top = "http://www.neracoos.org/thredds/catalog/GMRI/SATELLITE/NASA/MODISA_NESHELF/catalog.xml",
platform = "MODISA", product = "L3SMI",
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, greplargs = NULL,
verbose = FALSE)
|
top |
character, uri of the top catalog |
platform |
character, the name of the platform (MODISA) |
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
|
date_filter |
POSIXct or Date, one or two element vector populated according to
the |
greplargs |
list or NULL, if a list the provide two elements,
pattern=character and fixed=logical, which are arguments for |
verbose |
logical, by default FALSE |
top |
character, uri of the top catalog |
platform |
character, the name of the platform (MODISA) |
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
|
date_filter |
POSIXct or Date, one or two element vector populated according to
the |
greplargs |
list or NULL, if a list the provide two elements,
pattern=character and fixed=logical, which are arguments for |
verbose |
logical, by default FALSE |
top |
character, uri of the top catalog |
platform |
character, the name of the platform (MODISA) |
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
|
date_filter |
POSIXct or Date, one or two element vector populated according to
the |
greplargs |
list or NULL, if a list the provide two elements,
pattern=character and fixed=logical, which are arguments for |
verbose |
logical, by default FALSE |
list of DatasetRefClass or NULL
list of DatasetRefClass or NULL
list of DatasetRefClass or NULL
get_monthdays
, get_8days
and get_seasondays
get_monthdays
, get_8days
and get_seasondays
get_monthdays
, get_8days
and get_seasondays
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | ## Not run:
query <- MODISA_query(
what = 'most_recent',
greplargs = list(pattern='8D_CHL_chlor_a_4km', fixed = TRUE))
query <- MODISA_query(
what = 'within',
date_filter = as.POSIXct(c("2008-01-01", "2008-06-01"), format = "%Y-%m-%d"),
greplargs = list(
chl = list(pattern='8D_CHL_chlor_a_4km', fixed = TRUE),
sst = list(pattern='8D_SST_sst_4km', fixed = TRUE)) )
## End(Not run)
## Not run:
query <- MODISA_query(
what = 'most_recent',
greplargs = list(pattern='8D_CHL_chlor_a_4km', fixed = TRUE))
query <- MODISA_query(
what = 'within',
date_filter = as.POSIXct(c("2008-01-01", "2008-06-01"), format = "%Y-%m-%d"),
greplargs = list(
chl = list(pattern='8D_CHL_chlor_a_4km', fixed = TRUE),
sst = list(pattern='8D_SST_sst_4km', fixed = TRUE)) )
## End(Not run)
## Not run:
query <- MODISA_query(
what = 'most_recent',
greplargs = list(pattern='8D_CHL_chlor_a_4km', fixed = TRUE))
query <- MODISA_query(
what = 'within',
date_filter = as.POSIXct(c("2008-01-01", "2008-06-01"), format = "%Y-%m-%d"),
greplargs = list(
chl = list(pattern='8D_CHL_chlor_a_4km', fixed = TRUE),
sst = list(pattern='8D_SST_sst_4km', fixed = TRUE)) )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.