utils#

Utils: mostly getting directories relative to the project

Functions

create_gcps(lon, lat, alt)

Create GCPs from an array of longitude, latitude and altitude (based on Sentinel-3 geocoding).

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(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(path[, resolution, size, resampling, ...])

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

simplify(footprint_fct)

Simplify footprint decorator

simplify_footprint(footprint, resolution[, ...])

Simplify footprint

use_dask()

Use Dask or not

write(xds, path, **kwargs)

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