Learn R Programming

MODIS (version 1.2.11)

delHdf: Delete Local MODIS Grid Files

Description

Delete MODIS grid files to reduce the local storage.

Usage

delHdf(
  product,
  collection = NULL,
  extent = "global",
  tileV = NULL,
  tileH = NULL,
  begin = NULL,
  end = NULL,
  ask = TRUE,
  ...
)

Arguments

product

character, see getProduct().

collection

character or integer, see getCollection().

extent

Extent information, defaults to "global". See getTile().

tileH, tileV

numeric or character. Horizontal and vertical tile number, see getTile().

begin, end

Date or character. Begin and end date of MODIS time series, see transDate().

ask

logical. If TRUE (default), the user is being asked for deletion after checking.

...

Arguments passed to MODISoptions(), particularly 'localArcPath'.

Author

Matteo Mattiuzzi

Examples

Run this code
if (FALSE) {
# REMOVE "MYD11A2" from specific date range and area subset:
# delHdf(product="MYD11A2",begin="2010001",end="2010.02.01",extent="austria")
# or
# delHdf(product="MYD11A2",begin="2010001",end="2010.02.01",tileV=18:19,tileH=4)

# REMOVE "MOD11A2" and "MYD11A2" from specific date range but globaly:
# delHdf(product="M.D11A2",begin="2010001",end="2010.02.01") 

# REMOVE ALL "MOD11A2" from local archive:
# delHdf(product="MOD11A2") 
}

Run the code above in your browser using DataLab