importTIF: Imports raster files in .tif format (geotiff) to a raster...

Description Usage Arguments Value Author(s)

View source: R/importTIF.R

Description

Wrapper of the functions stack, brick, and CRS that facilitates loading .tif raster files into R as a stack or a brick.

Usage

1
2
3
4
5
importTIF(
folder,
crs = "+init=epsg:4326",
to.memory = TRUE
)

Arguments

folder

Folder storing the .tif raster files.

crs

Character string defining a coordinate reference system as per the PROJ.4 standard. The default crs is "+init=epsg:4326", valid for data using latitude and longitude degrees as coordinates, and the global datum WGS84. Check the help file of CRS for further details. The argument can be set to NULL, or "unknown" if the coordinate reference system is unknown.

to.memory

If TRUE (default option), the function returns a raster brick residing in memory. Otherwise it returns a stack, which resides in the hard disk, and slows down most operations. If the computer has enough RAM memory, use TRUE to speed up any operation on the outcome of this function.

Value

A raster brick or stack.

Author(s)

Blas Benito <blasbenito@gmail.com>


BlasBenito/SDMworkshop documentation built on March 4, 2020, 4:16 a.m.