ursaConnection | R Documentation |
Class ursaConnection
is a part of class ursaRaster
. It defines storage of raster images and manipulations with reading and writing.
## S3 method for class 'ursaConnection'
print(x, ...)
## S3 method for class 'ursaConnection'
seek(con, where = NA, origin = "start", rw = "", ...)
x |
|
con |
|
where |
Passed to |
origin |
Passed to |
rw |
Passed to |
... |
|
ursaConnection
get item $con
from ursaRaster
object.
Functions print
and is.con
are for developers rather than users.
Non-public function .con.skeleton()
is used to generate the blank ursaConnection
object. This approach provides unified sequence of list's items:
ursaConnection
is a list. The most of names have a relation to specification of ENVI Header Files. Items:
driver |
Character. Keyword of supported image formats. Allowed "ENVI" or "GDAL". |
samples |
Integer. Number of image columns (samples) |
lines |
Integer. Number of image rows (lines) |
bands |
Integer. Number of image bands (channels, layers) |
datatype |
Integer. Keyword for data type (4 - 32-bit floating point, 2 - 16-bit signed integer, etc) |
interleave |
Character |
byteorder |
Integer, 0 or 1. The order of bytes. |
endian |
Character. See |
swap |
Integer 0 or 1. Passed to C-funcions |
signed |
Logical. Derived from |
offset |
Integer. Header offset in binary file. Default is 0. |
wkt |
Logical. In ENVI Header files |
nodata |
Numeric. Replacement |
mode |
Character. |
sizeof |
Integer, positive. Size in bytes for stored values. Extracted from |
indexC |
Integer vector. Sample indices in spatial cropping. |
indexR |
Integer vector. Line indices in spatial cropping. |
indexZ |
Integer vector. Band indices |
posC |
Integer vector. Sample indices in partial reading. |
posR |
Integer vector. Line indices in partial reading. |
posZ |
Integer vector. Band indices in spatial crottping or partial reading. |
fname |
Character. File name. If |
connection |
Character. See |
compress |
Signed integer. |
seek |
Logical. Does connection support |
handle |
|
Nikita Platonov platonov@sevin.ru
ursa(obj,"con")
session_grid(NULL)
print(methods(class="ursaConnection"))
a <- pixelsize()
write_envi(rep(a,5),"tmp1",compress=FALSE)
## change spatial domain for cropping example
g <- session_grid(regrid(lim=c(-1200000,-1400000,1600000,1800000)))
print(g)
b <- open_envi("tmp1")
d <- b[,30:70]
print(ursa(d[2:3],"con"))
close(b)
envi_remove("tmp1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.