Description Usage Arguments Details Value Author(s) See Also Examples
read_gdal
creates ursaRaster
object from GDAL supported raster files using functions from rgdal packages.
1 2 3 |
fname |
Character. GDAL supported raster file name. |
resetGrid |
Logical. If |
band |
Character (regular expression) or integer. |
verbose |
Logical. Value |
... |
Ignored. |
ursa_read
is simplified implementation of gdal_read
.
The composite GDAL formats (e.g., NetCDF: Network Common Data Format, HDF5: Hierarchical Data Format Release 5) are likely unsupported.
read_gdal
uses functions from rgdal:
GDALinfo
- to get raster metadata.
getRasterData
- to get raster data.
Category names and color tables are supported.
Object of class ursaRaster
.
Nikita Platonov platonov@sevin.ru
rgdal::GDALinfo()
for supported GDAL raster formats
as.ursa
is an alternative call for GDAL raster files import.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | session_grid(NULL)
rgdal::gdalDrivers()
Fin1 <- system.file("pictures/Rlogo.jpg",package="rgdal")
a1 <- read_gdal(Fin1)
print(a1)
display(a1)
Fin2 <- system.file("pictures/test_envi_class.envi",package="rgdal")
b1 <- read_gdal(Fin2)
b2 <- read_envi(Fin2,resetGrid=TRUE)
print(identical(ursa_grid(b1),ursa_grid(b2)))
print(identical(ursa_value(b1),ursa_value(b2)))
print(identical(ursa_colortable(b1),ursa_colortable(b2)))
print(ursa_colortable(b1))
print(as.table(b1))
display(b1,detail="l")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.