Raster¶
-
class
caris.coverage.
Raster
¶ -
__init__
()¶ Constructor
One of filename or uri is required.
-
add_band
()¶ Add a new band
-
create_copy
()¶ Save a copy of this Raster
Either uri or path must be specified.
-
read
()¶ Read raster data
- Parameters
- Returns
raster data from left to right, then bottom to top
- Return type
-
read_np_array
()¶ Read raster data as a numpy array
- Parameters
- Returns
The data read
- Return type
-
set_string_table
()¶ New in version 5.3.0.
Replace a band’s string table
-
write
()¶ Write data to a Raster
- Parameters
band_name (
str
) – The name of the band to write tooffset ((x_offset, y_offset), (width, height) – The lower-left offset into the Raster to begin the write and the width and height of the area to write.
data (
numpy.ndarray
) – The data to write
-
property
block_size
¶ (width, height) of int: The recommended block size to use when reading.
-
property
bounding_polygon
¶ New in version 5.1.0.
str: The bounding polygon in WKT format.
-
property
dims
¶ (width, height) of int: The dimensions in pixels of the raster
-
property
elevation_band_name
¶ str: The default elevation band name.
-
property
extents
¶ ((x1, y1), (x2, y2)) of float: The extents of the raster
-
property
highest_level
¶ int: The highest resolution level.
-
property
iso19139_xml
¶ str: The iso xml metadata
-
property
lowest_level
¶ int: The lowest resolution level.
-
property
transform
¶ RasterTransform
: The raster transform.
-
property
uri
¶ str: The uri of the opened csar file
-
property
wkt_cosys
¶ str: The coordinate system in WKT format.
-