Raster¶
-
class
caris.coverage.
Raster
¶ -
__init__
()¶ Constructor
One of filename or uri is required.
Keyword Arguments:
-
add_band
()¶ Add a new band
Parameters: band_info ( BandInfo
) – TheBandInfo
describing the band to be added
-
create_copy
()¶ Save a copy of this Raster
Either uri or path must be specified.
Keyword Arguments:
-
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
Parameters:
-
write
()¶ Write data to a Raster
Parameters: - band_name (
str
) – The name of the band to write to - offset ((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
- band_name (
-
block_size
¶ (width, height) of int – The recommended block size to use when reading.
-
bounding_polygon
¶ New in version 5.1.0.
str: The bounding polygon in WKT format.
-
dims
¶ (width, height) of int – The dimensions in pixels of the raster
-
elevation_band_name
¶ str – The default elevation band name.
-
extents
¶ ((x1, y1), (x2, y2)) of float – The extents of the raster
-
highest_level
¶ int – The highest resolution level.
-
iso19139_xml
¶ str – The iso xml metadata
-
lowest_level
¶ int – The lowest resolution level.
-
transform
¶ RasterTransform
– The raster transform.
-
uri
¶ str – The uri of the opened csar file
-
wkt_cosys
¶ str – The coordinate system in WKT format.
-