delHdf: Delete MODIS grid files to reduce the local storage

Description Usage Arguments Value Author(s) Examples

Description

Delete MODIS grid files to reduce the local storage.

Usage

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

Arguments

product

Character. MODIS grid product to be deleted. 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

Default is the newest available onlie, or character or integer. Refers to the MODIS product collection-version. Often '005', but see MODIS pages or run ?getCollection for more information.

extent

Default "global", that meant all available tiles. for any other settings than "global" see 'extent' in ?getTile.

tileV

Default NULL, numeric or character vector. Vertical tile number(s) (for MODIS between 0 and 17). I.e.: tileV = 9:17. If provided extent is ignored.

tileH

Default NULL, numeric or character vector. Horizontal tile number(s) (for MODIS between 0 and 35). I.e.: tileH = 1:5. Refer to http://modis-land.gsfc.nasa.gov/MODLAND_grid.htm to find your area. If provided extent is ignored.

begin

Start date,default is from the beginning. Every file '>=' than this date up to end will be deleted See: ?transDate for formatting.

end

End date, default is to the most recent. Every file '<=' than this date down to begin will be deleted See: ?transDate for formatting.

ask

Default TRUE. Should the function, after the checking ask for deletion?

...

Arguments from ?MODISoptions, ie localArcDir

Value

Numeric, the amount of mega Bytes removed from archive, if files have been found, else NULL if no files have been found.

Author(s)

Matteo Mattiuzzi

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## 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") 
 

## End(Not run)

aubreyd/modis4rwrfhydro documentation built on May 10, 2019, 2:13 p.m.