Learn R Programming

MODIS (version 1.1.2)

runMrt: Run MODIS Reprojection Tool with Specified Parameters

Description

Specifying input parameters, this function gets MODIS grid data from the archive (HTTP/FTP or local) and processes them with the 'MRT-grid' tool. See also the 'MRT' manual, available online via https://lpdaac.usgs.gov/sites/default/files/public/mrt41_usermanual_032811.pdf, for further information.

Usage

runMrt(...)

Arguments

...

See Details.

Details

rll product See getProduct. begin See transDate. end See transDate. extent See getTile. SDSstring See getSds. Default is to extract all SDS. job character. Name of the current job for the creation of the output folder. If not specified, it is created in 'PRODUCT.COLLECTION_DATETIME'

localArcPath character. Defaults to options("MODIS_localArcPath"). Local path to look for and/or download MODIS files. outDirPath character. Defaults to options("MODIS_outDirPath"). Root directory where to write job folder.

dataType character, defaults to 'GeoTiff' (see MODISoptions. 'MRT' supports: "raw binary" (hdr+dat), "HDF-EOS" (hdf), and "GeoTiff" (tif). Any other format specified through MODISoptions or dataType, is switched to 'GeoTiff'.

outProj character, see 'MRT' manual. zone Optional UTM zone number when outProj = "UTM". If not set, it is autodetected. See 'MRT' manual. projPara character in the form "6371007.18 0.00 0.00 ...". For outProj %in% c("GEO","SIN"), it is autodetected. See 'MRT' manual. datum character, defaults to 'NODATUM'. See 'MRT' manual.

mosaic logical, defaults to TRUE. Mosaic files or not? One case for setting mosaic=FALSE is a too large extent. HDF4 file supports max 2GB filesize, if crossed mosaicing process will fail. anonym logical, defaults to TRUE. If FALSE, the job name is added at the end of the root filename. quiet logical, defaults to FALSE. It is up to you to switch to 'boring' alias FALSE. Not fully implemented! dlmethod default options("MODIS_dlmethod"). Argument passed to download.file (see MODISoptions). stubbornness Default is options("MODIS_stubborness"). See ?MODISoptions

See Also

getHdf.

Examples

Run this code
# NOT RUN {
runMrt( product="MOD11A1", extent="austria", begin="2010001", end="2010002", SDSstring="101",
        job="ExampleGEOdelme", outProj="GEO")
runMrt( product="MOD11A1", extent="austria", begin="2010001", end="2010002", SDSstring="101",
        job="ExampleSINdelme", outProj="SIN")
runMrt( product="MOD11A1", extent="austria", begin="2010001", end="2010002", SDSstring="101",
        job="ExampleUTMdelme", outProj="UTM")
# }

Run the code above in your browser using DataLab