utils#

Utils: mostly getting directories relative to the project

Functions

get_data_dir()

Get data directory.

get_root_dir()

Get root directory.

get_split_name(name)

Get split name (with _).

get_src_dir()

Get src directory.

open_rpc_file(rpc_path)

Create a rasterio RPC object from a .rpc file.

quick_xml_to_dict(element)

Convert a lxml root to a nested dict (quick and dirty)

read(raster_path[, pixel_size, size, ...])

Overload of sertit.rasters.read() managing DASK in EOReader's way.

simplify(footprint_fct)

Simplify footprint decorator

stack(band_xds, save_as_int, nodata, **kwargs)

Stack a dictionnary containing bands in a DataArray

stack_dict(bands, band_xds, save_as_int, ...)

Stack a dictionnary containing bands in a DataArray

use_dask()

Use Dask or not

write(xds, filepath, **kwargs)

Overload of sertit.rasters.write() managing DASK in EOReader's way.