open_envi {ursa} | R Documentation |
open_envi file
Description
open_envi
creates object of ursaRaster
class, reads ENVI header file and prepares connections
for ENVI binary file
Usage
open_envi(fname, resetGrid = FALSE, headerOnly = FALSE, decompress = !headerOnly,
cache = 0L, ...)
Arguments
fname |
Filename; full-name or short-name |
resetGrid |
Logical. If |
headerOnly |
Logical. If |
decompress |
If ENVI binary file is compressed and you have not to use ENVI values then put |
cache |
Integer. Using cache for compressed files. If |
... |
If input file does not exists then these additional arguments will be passed to |
Details
open_envi
try to find ENVI files (binary and header) and open them. If unsuccessful then function passes ...
-arguments to create_envi
function
Value
Returns object of class ursaRaster
. Values from ENVI binary are not in memory yet.
Author(s)
Nikita Platonov platonov@sevin.ru
See Also
Examples
session_grid(NULL)
a <- pixelsize()
write_envi(a,"example")
a <- open_envi("example")
dir(pattern="^example.*")
ursa_info(a)
close(a)
rm(a)
envi_remove("example")
## additional arguments are enough to create new ENVI file
dir(pattern="^example.*")
a <- open_envi("example",layername=paste0("test",1:3))
ursa_info(a)
dir(pattern="^example.*")
close(a)
envi_remove("example")