ursa_info {ursa} | R Documentation |
Print metadata for raster image.
Description
Function shows information about raster CRS, data type, storage mode, nodata value, structure of band names.
Usage
ursa_info(obj, detail = NA, ...)
Arguments
obj |
|
detail |
Not used. Reserved for potential detail levels |
... |
Arguments, which are passed to |
Details
ursa_info
generates a list and then shows structure of this list via function str
.
Value
Object of temporal class ursaMetadata
is a list with items:
columns |
Number of columns (samples) |
rows |
Number of rows (lines) |
resx |
Grid cell size by horizontal axis |
resy |
Grid cell size by vertical axis |
minx |
Left margin of boundary box |
maxx |
Right margin of boundary box |
miny |
Bottom margin of boundary box |
maxy |
Top margin of boundary box |
proj4 |
PROJ.4 string |
nodata |
Optional. Value, which is interpreted as |
datatype |
Optional. If data are on disk, then integer code of data type. |
interleave |
Optional. If data are on disk, then abbreviation of bands interleave. |
mode |
Character of length 2: |
bandname |
Band names. |
colortable |
Optional. Structure of color table. |
Function returns NULL
.
Author(s)
Nikita Platonov platonov@sevin.ru
See Also
Examples
session_grid(NULL)
a <- as.integer(round(ursa_dummy(nband=3)))
print(a) ## print data
ursa_info(a,digits=1) ## print metadata
fname <- tempfile()
write_envi(a,fname,compress=FALSE)
b1 <- open_envi(fname)
ursa_info(b1)
close(b1)
b2 <- read_envi(fname)
ursa_info(b2)
# print ENVI header
sapply(c(" -------------- begin --------------",readLines(paste0(fname,".hdr"))
," --------------- end ---------------"),message)
envi_remove(fname)