get_earthdata | R Documentation |
get_earthdata
allows retrieving georeferences optical satellite images of low and moderate spatial resolution (up to 250m per cell) using GIBS API for Developers.
get_earthdata(bbox = NA, res = c("2km", "1km", "500m", "250m"),
date = NA, product = "", geocode = "",
expand = 1.05, border = 0, display = FALSE,
cache = NA, verbose = FALSE)
bbox |
Numeric of length 4 or character. Spatial extent in the notation |
res |
Character or numeric. Parameter, which is responsible for dimension of output raster image. If character, then zoom is selected using keyword list |
date |
Character or |
product |
Character of integer. Data product form GIBS. Currently only MODIS-oriented (corrected reflectance) products are available:
Please check actual list by calling If numeric, then index of item among available products. Regular expressions can be used to simplify value of product, e.g., case-insensitive "aqua 721", "terra truecolor", "suomi", "SNNP". |
geocode |
Character. Keyword for geocode service. Valid values are |
expand |
Numeric. Multiplier for plotting panel zoom in relation to extent of plotting geometry. Ignored if geocoding is not applied. Default is |
border |
Integer. Value in pixels of fixed margins around plotting geometry. Ignored if geocoding is not applied. Default is |
display |
Logical. Value |
cache |
Logical. Is cache used? Default is |
verbose |
Logical. Value |
Argument method="libcurl"
is used in function download.file
for tile downloading. Please check capabilities("libcurl")
.
Valid zoom values (e. g., specified via res
argument) are 3:6 for EPSG:3413 and 0:8 for EPSG:3587.
Longitude 180 degrees has a seam in EPSG:3857 (e.g., see bbox=c(170,68,-170,73)
and bbox=c(-1600000,1308000,-1370000,1570000)
for Wrangel Island. If region crosses longitude 180 degrees in EPSG:3857, then the prior day is taken for Western Hemisphere.
If bbox=NULL
, then character vector of available products.
If display=FALSE
then object of class ursaRaster
with RGBA image.
If display=TRUE
then returned value of display_brick
.
Nikita Platonov platonov@sevin.ru
session_grid(NULL)
pr <- get_earthdata()
print(pr,quote=FALSE)
## internet connection is required -- begin
a1 <- get_earthdata(bbox=c(2000000,400000,2300000,700000))
display(a1)
## internet connection is required -- end
a2 <- get_earthdata(product=2
# ,date=Sys.Date()-7L ## empty tiles for winter polar regions
,date=as.Date(format(Sys.Date()-365L,"%Y-06-15"))
,res=7,bbox=c(57.8,69.4,62.3,70.8))
display(a2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.