mpaextract: This function downloads a time series of a variable from EMIS...

Description Usage Arguments Value Examples

Description

This function downloads a time series of a variable from EMIS or GMIS for a period of time month for a given MPA using the wcs-t service. The data are extracted with a buffer of about 10 km around the MPA.

Usage

1
2
mpaextract(name = "EMIS_A_CHLA", resolution = "4km",
  startdate = "2005-09", enddate = "2005-10", wdpaid = 555540558)

Arguments

name

A character vector of the shortname of the variable

resolution

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

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")

wdpaid

An integer of the ID of the marine protected area corresponding to the wdpaid of the mpa

Value

A rasterstack object of the variable for the given period on the MPA

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
     #extraction of the MODIS sea surface temperature at 2 km from EMIS in 2009 and 2012 on the Pantelleria mpa (Italy)
     img<-mpaextract("EMIS_T_SST","2km","2009-01","2012-12",555540558)
     plot(img)
	 #extraction of the MODIS chlorophyll a concentration at 4km from GMIS for 2008 and 2010 in the vicinity of the Bird Island marine protected area (South Africa)
     img<-mpaextract("GMIS_A_CHLA","4km","2008-01","2010-12",306180)
     plot(img)
  
## End(Not run)

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