RasterDelta¶
-
class
bruty.raster_data.RasterDelta(storage, arrays=None, layers=None)¶ Bases:
bruty.raster_data.RasterData
Attributes Summary
Methods Summary
apply_delta(delta)from_arrays(arrays[, metadata, layers])from_rasters(raster_old, raster_new)get_array(layer)get_array_at_res(res[, layers])Return the array at a different resolution than intrinsically stored.
get_arrays([layers])get_epse()rc_to_xy(r, c)Convert from real world x,y to raster row, col indices
rc_to_xy_using_dims(nrows, ncols, r, c[, center])Convert from real world x,y to raster row, col indices
set_array(array, layer)set_arrays(arrays[, layers])set_corners(min_x, min_y, max_x, max_y)set_epsg(val)set_metadata(metadata)set_metadata_element(key, val)xy_to_rc(x, y)Convert from real world x,y to raster row, col indices
xy_to_rc_using_dims(nrows, ncols, x, y)Convert from real world x,y to row, col indices given the shape of the array or tile to be used
Attributes Documentation
-
height¶
-
id¶
-
width¶
Methods Documentation
-
apply_delta(delta)¶
-
computed_score()¶
-
static
from_arrays(arrays, metadata={}, layers=None)¶
-
static
from_rasters(raster_old, raster_new)¶
-
get_array(layer)¶
-
get_array_at_res(res, layers=None)¶ Return the array at a different resolution than intrinsically stored. This could be to change the density of the tile (higher res data being added) or to create visualizations that could need higher or lower numbers of pixels.
- Parameters
res –
layers – list of layer names desired. If None then get all available,
-
get_arrays(layers=None)¶
-
get_corners()¶
-
get_elevation()¶
-
get_epse()¶
-
get_flags()¶
-
get_metadata()¶
-
rc_to_xy(r, c)¶ Convert from real world x,y to raster row, col indices
-
rc_to_xy_using_dims(nrows, ncols, r, c, center=False)¶ Convert from real world x,y to raster row, col indices
-
set_array(array, layer)¶
-
set_arrays(arrays, layers=None)¶
-
set_corners(min_x, min_y, max_x, max_y)¶
-
set_epsg(val)¶
-
set_metadata(metadata)¶
-
set_metadata_element(key, val)¶
-
xy_to_rc(x, y)¶ Convert from real world x,y to raster row, col indices
-
xy_to_rc_using_dims(nrows, ncols, x, y)¶ Convert from real world x,y to row, col indices given the shape of the array or tile to be used
-
__init__(storage, arrays=None, layers=None)¶ Initialize self. See help(type(self)) for accurate signature.
-