Learn R Programming

MODIS (version 1.1.2)

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.

tileV

numeric or character. Vertical tile number(s), see tileH.

tileH

numeric or character. Horizontal tile number, see getTile.

begin

character. Begin date of MODIS time series, see transDate for formatting.

end

Same for end date.

ask

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

...

Arguments passed to MODISoptions, particularly localArcPath.

Examples

Run this code
# NOT RUN {
# YOU ARE ASKED TO CONFIM THE DELETION! BUT IF THE EXAMPLE THIS FOR YOU SENSITIVE DATA CHANGE IT!

# 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") 
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab