Raster¶
- class caris.coverage.Raster¶
- add_band()¶
Add a new band
- begin_transaction()¶
Begin a new transaction
- commit_transaction()¶
Commit a transaction
- 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_band_min_max()¶
New in version 5.5.0.
Set the band’s minimum and maximum values.
- Parameters
band_name (
str
) – The name of the band to update.min – A tuple/value of size tuple_length containing the minimum value
max – A tuple/value of size tuple_length containing the maximum value
- 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 bounding_polygon¶
New in version 5.1.0.
str: The bounding polygon in WKT format.
- property transform¶
The raster transform.
- Type