arcStats: Get summarisation of local MODIS hdf data. As Plot or as...

Description Usage Arguments Value Author(s) Examples

View source: R/arcStats.R

Description

In the same manner as getHdf(), this function quantifies the availability of local MODIS hdf data. This function gives you an overview (plot or/and talbe) of locally available MODIS GRID hdf files.

Usage

1
2
arcStats(product, collection=NULL, extent="global", begin="2000.01.01",
 end=format(Sys.time(),'%Y.%m.%d'), asMap=TRUE, outName=NULL,...)

Arguments

product

Character. See ?getProduct. MODIS grid product to be checked. For 'MODIS TERRA Vegetation Indices at 250 m ground resolution' use: MOD13Q1. For vegetation indices from TERRA and AQUA use M.D13Q1. Run getProduct() for an overview of supported products.

collection

Character or integer. Refers to the MODIS product collection-version. Often '005', but see MODIS pages or run ?getCollection for more information.

extent

deafult is 'global'. Additionally see the argument 'extent' in ?getTile or for interactive selection use: 'extent=getTile()'.

begin

Character. Begin date of MODIS time series. See: ?transDate

end

Character. Default is 'Today' expressed in a function. End date of MODIS time series. See: ?transDate

asMap

TRUE, FALSE or "both". Indicates if the output is a 'png' a 'csv' or 'both' of them.

outName

Character. Default is the 'product.collection.YYYYMMDDHHMMSS.png/csv' of the function call or if applicable 'product.collection.extent.YYYYMMDDHHMMSS.png/csv'

...

Any relevant arguments in MODISoptions(). Most important 'outProj' and 'outDirPath'

Value

An invisible NULL (provably this will change to a matrix like object similar to the '*.csv' output. If 'asMap'= TRUE a 'table.csv' and a 'image.png' file(s) in 'outDirPath' see MODISoptions().

Author(s)

Matteo Mattiuzzi

Examples

 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
## Not run: 
# arcStats result on a webserver:
# "http://ivfl-info.boku.ac.at/index.php/eo-data-processing/status-of-the-local-archive"
#
# The following examples are expecting that you have some data stored locally!
########################################################### 
# generates 2 png's and 2 csv's one for TERRA one for AQUA
arcStats(product="M.D13Q1")

# generates 2 png's and 2 csv's one for TERRA one for AQUA with the specified countries.
arcStats(product="M.D13Q1",extent=c("austria","germany","italy"))

# generates 1 png and 1 csv for AQUA.
arcStats(product="MYD13Q1",begin="2005001",outName="MyDataStart2005")

# generates 1 png for AQUA for the selected area and plots it in 'Sinusoidal'.
arcStats(product="MYD13Q1",begin="2005001",asMap=TRUE, outName="InteractiveSelection2005",
 extent=getTile(), outProj="asIn")

# generates 1 png for AQUA for the selected area and plots it in 'Geographic' Coordinates.
arcStats(product="MYD13Q1",begin="2005001",asMap=TRUE, outName="InteractiveSelection2005",
 extent=getTile(), outProj="GEOGRAPHIC")


## End(Not run)

MODIS documentation built on May 2, 2019, 6:09 p.m.

Related to arcStats in MODIS...