getgmisdataseries: This function downloads a time series of a variable from GMIS...

Description Usage Arguments Value Examples

Description

This function downloads a time series of a variable from GMIS for a period of time on a spatial area using the wcs-t service

Usage

1
2
3
getgmisdataseries(name = "GMIS_A_CHLA", resolution = "4km",
  startdate = "2005-09", enddate = "2005-10", xmin = 15, xmax = 20.5,
  ymin = 30, ymax = 32.5)

Arguments

name

A character vector of the shortname of the variable

resolution

A character vector giving the spatial resolution of the data: "4km" or "9km"

startdate

A character vector of the month who begins the series("YYYY-MM")

enddate

A character vector of the month who ends the series("YYYY-MM")

xmin

A numeric vector of the lower longitude of the spatial area

xmax

A numeric vector of the max longitude of the spatial area

ymin

A numeric vector of the lower latitude of the spatial area

ymax

A numeric vector of the max latitude of the spatial area

Value

A rasterstack object of the variable for the given period

Examples

1
2
3
4
5
6
## Not run: 
     #extraction of the MODIS chlorophyll a concentration for 2008 and 2010 in the vicinity of the Bird Island area (South Africa)
     img<-getgmisdataseries("GMIS_A_CHLA","4km","2008-01","2010-12",xmin=26.1,xmax=26.5,ymin=-34,ymax=-33.5)
     plot(img)
  
## End(Not run)

ldbk/EMISR documentation built on May 20, 2019, 11:28 p.m.