utils

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) :param lon: Longitude array :type lon: xr.DataArray :param lat: Latitude array :type lat: xr.DataArray :param alt: Altitude array :type alt: xr.DataArray

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.

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.

use_dask()

Use Dask or not

write(xds, path, **kwargs)

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