read_mxe | R Documentation |
Read (and optionally clip) binary mxe files created by the Maxent habitat suitability modelling software package.
read_mxe(file, ext, snap = "near", chunk_size = 1e+05, return_raster = TRUE)
file |
The path to the mxe file to be read. |
ext |
(Optional) An extent to clip the grid to. This must be either an
|
snap |
Character. One of |
chunk_size |
A numeric value specifying the size of the chunk of binary
data to be read at a time (size is usually in units of KB of data).
|
return_raster |
Logical. If |
If return_raster
is TRUE
, a raster
object. If
return_raster
is FALSE
, a list is returned, with the following
elements:
xll
: The x coordinate of the lower left corner of the extent.
yll
: The y coordinate of the lower left corner of the extent.
res
: The grid resolution. Note that horizontal and vertical resolution are assumed equal.
nrow
: The number of rows of data.
ncol
: The number of columns of data.
nodata
: The nodata value.
datatype
: A character string indicating the data type.
data
: A vector whose elements are the raster cell values.
Based on "Reading mxe files with R - revisited" by Peter D. Wilson.
project()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.