TRMM: Download and convert TRMM data

Description Usage Arguments Details Value Author(s) Examples

Description

The TRMM dataset provide global historical rainfall estimation in a gridded format.

Usage

1
2
TRMM(product = "3B43", version = 7, type = "precipitation.accum",
  twindow = NULL, areaBox = NULL, method = "auto")

Arguments

product

this is the code that identifies a product, default is "3B43"

version

this is the version number, default is 7

type

this is the type of information needed, default is "precipitation.accum". Other types could be "gaugeRelativeWeighting.bin" and "relativeError.bin"

twindow

is a vector of dates and times for which the data should be retrieve

areaBox

OPTIONAL bounding box, a list made of 4 elements: minimum longitude (xmin), minimum latitude (ymin), maximum longitude (xmax), maximum latitude (ymax)

method

method to download, see ?download.file for more info.

Details

This code is based upon Martin Brandt's blog post: http://matinbrandt.wordpress.com/2013/09/04/automatically-downloading-and-processing-trmm-rainfall-data/ and on the TRMM FAQ: http://disc.sci.gsfc.nasa.gov/additional/faq/precipitation_faq.shtml

Value

Data is loaded as multilayer GeoTIFF and loaded as a RasterBrick.

Author(s)

Claudia Vitolo

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Not run: 
  # Define a bounding box
  areaBox <- raster::extent(-10, 5, 48, 62)

  # Get 3-hourly data
  twindow <- seq(from = as.POSIXct("2012-1-1 0","%Y-%m-%d %H", tz="UTC"),
                 to = as.POSIXct("2012-1-1 23", "%Y-%m-%d %H", tz="UTC"),
                 by = 3*60*60)
  TRMMfile <- TRMM(product = "3B42", version = 7,
                   type = "precipitation.bin",
                   twindow = twindow, areaBox = areaBox)
  raster::plot(TRMMfile)

  # Get monthly data
  twindow <- seq(from=as.Date("2012-01-01"),
                 to=as.Date("2012-02-28"),
                 by = "months")
  TRMMfile <- TRMM(product = "3B43", version = 7,
                   type = "precipitation.accum",
                   twindow = twindow, areaBox = areaBox)
  raster::plot(TRMMfile)

## End(Not run)


Search within the hddtools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.