Layer#
- class rforge.library.containers.layer.Layer(array: ndarray[int32] | None = None, bounds: Dict[str, float | int] | None = None, crs: str | None = None, driver: str | None = None, no_data: int | float | None = None, transform: Tuple[float, float, float, float, float, float] | None = None, units: str | None = None)[source]#
Represents a data layer in a geospatial dataset.
- _array#
The array data of the layer.
- Type:
Optional[np.ndarray[np.int32]]
- _bounds#
The spatial bounds of the layer.
- Type:
Optional[Dict[str, float]]
- _crs#
The coordinate reference system (CRS) of the layer.
- Type:
Optional[str]
- _driver#
The driver used for data storage.
- Type:
Optional[str]
- _no_data#
The value representing no data in the layer.
- Type:
Optional[Union[int, float]]
- _transform#
Affine transformation parameters.
- Type:
Optional[Tuple[float, float, float, float, float, float]]
- _units#
The units of the layer data.
- Type:
Optional[str]
- array()#
Getter and setter for the layer array data.
- bounds()#
Getter and setter for the spatial bounds.
- crs()#
Getter and setter for the CRS.
- driver()#
Getter and setter for the driver.
- no_data()#
Getter and setter for the no_data value.
- transform()#
Getter and setter for the affine transformation parameters.
- units()#
Getter and setter for the units.
- resolution()#
Computes the resolution of the layer.
- width()#
Computes the width of the layer.
- height()#
Computes the height of the layer.
- count()#
Computes the number of bands in the layer.
- mean()#
Computes the mean value(s) of the layer data.
- median()#
Computes the median value(s) of the layer data.
- min()#
Computes the minimum value(s) of the layer data.
- max()#
Computes the maximum value(s) of the layer data.
- std_dev()#
Computes the standard deviation value(s) of the layer data.
- property array: ndarray[int32] | None#
- property bounds: Dict[str, float] | None#
- property count: int#
- property crs: str | None#
- property driver: str | None#
- property height: int#
- property max: float | int | list[int | float] | None#
- property mean: float | int | list[int | float] | None#
- property median: float | int | list[int | float] | None#
- property min: float | int | list[int | float] | None#
- property no_data: int | float | None#
- property resolution: float#
- property std_dev: float | int | list[int | float] | None#
- property transform: Tuple[float, float, float, float, float, float] | None#
- property units: str | None#
- property width: int#