rasters¶
Raster tools
You can use this only if you have installed sertit[full] or sertit[rasters]
Functions
|
Collocate two georeferenced arrays: forces the slave raster to be exactly georeferenced onto the master raster by reprojection. |
|
Cropping a dataset: setting nodata outside of the given shapes AND cropping the raster to the shapes extent. |
|
Get the image path from a BEAM-DIMAP data. |
|
Get the extent of a raster as a geopandas.Geodataframe. |
|
Get real footprint of the product (without nodata, in french == emprise utile) |
|
Get nodata mask from a xarray. |
|
Get the nodata vector of a raster as a vector. |
|
Get the valid data of a raster as a vector. |
|
Compute the hillshade of a DEM from an azimuth and elevation angle (in degrees). |
|
Masking a dataset: setting nodata outside of the given shapes, but without cropping the raster to the shapes extent. |
|
Merge rasters as a GeoTiff. |
|
Merge rasters as a VRT. |
|
Painting a dataset: setting values inside the given shapes. |
|
Path, xarray or dataset decorator. |
|
Read a raster dataset from a : |
|
Read bit arrays as a succession of binary masks (sort of read a slice of the bit mask, slice number bit_id) |
|
Read 8 bit arrays as a succession of binary masks. |
|
Set metadata from a xr.DataArray to another (including rioxarray metadata such as encoded_nodata and crs). |
|
Set nodata to a xarray that have no default nodata value. |
|
Sieving, overloads rasterio function with raster shaped like (1, h, w). |
|
Compute the slope of a DEM (in degrees). |
|
Function found here: https://stackoverflow.com/questions/18296035/how-to-extract-the-bits-of-larger-numeric-numpy-data-types |
|
Vectorize a xarray to get the class vectors. |
|
Overloads xr.where with: |
|
Write raster to disk. |