open_envi | R Documentation |
open_envi
creates object of ursaRaster
class, reads ENVI header file and prepares connections
for ENVI binary file
open_envi(fname, resetGrid = FALSE, headerOnly = FALSE, decompress = !headerOnly, cache = 0L, ...)
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 |
open_envi
try to find ENVI files (binary and header) and open them. If unsuccessful then function passes ...
-arguments to create_envi
function
Returns object of class ursaRaster
. Values from ENVI binary are not in memory yet.
Nikita Platonov platonov@sevin.ru
close
, create_envi
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.