Skip to content

Instantly share code, notes, and snippets.

@xuanlongma
Last active December 15, 2015 07:49
Show Gist options
  • Save xuanlongma/5226770 to your computer and use it in GitHub Desktop.
Save xuanlongma/5226770 to your computer and use it in GitHub Desktop.
read TRMM 3B43 V7 data
## TRMM 3B43 Monthly precipitation does NOT need flip (which 3B42 need)
r.trmm <- raster(nrows = 400, ncols = 1440, xmn = 0, xmx = 360, ymn =
-50, ymx = 50, crs="+proj=longlat +datum=WGS84")
r.trmm[] <- readBin(files.input, 'double', n = 576000, size = 4,
endian = 'big')
## TRMM 3B42
## r.trmm <- flip(rotate(r.trmm), 'y')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment