genTile: Generate Global Tiling System

Description Usage Arguments Value Author(s) See Also Examples

View source: R/genTile.R

Description

This function generates a matrix with bounding box information for a global tiling system (based on Lat/Lon).

Usage

1
2
3
4
5
6
genTile(
  tileSize = 1,
  offset = 0,
  StartNameFrom = c(0, 0),
  extent = list(xmin = -180, xmax = 180, ymin = -90, ymax = 90)
)

Arguments

tileSize

numeric, size of a single tile in degrees (EPSG:4326).

offset

numeric, shifts the tiling system in upper-left direction.

StartNameFrom

numeric. c(Lat-Direction,Lon-Direction) start number in the naming of the tiles.

extent

list. Tile system extent information, basically the coverage of the data on server.

Value

A matrix.

Author(s)

Matteo Mattiuzzi

See Also

getTile.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# 1x1 degree tiling system
e1 <- genTile()  
head(e1)
  
# 10x10 degree tiling system with offset to be aligned to Geoland2 Dataset
e2 <- genTile(tileSize = 10, offset = (1/112) / 2)
head(e2)

# Tiling system for SRTMv4 data (CGIAR-CSI) 
e3 <- genTile(tileSize = 5, StartNameFrom = c(1, 1), 
              extent = list(xmin = -180, xmax = 180, ymin = -60,ymax = 60)) 
head(e3)               

MODIS documentation built on Nov. 12, 2020, 5:06 p.m.