utils#
Utils: mostly getting directories relative to the project
Functions
|
Convert an array to uint16 before saving it to disk. |
Overrides the default band resampling (bilinear) with the env variable "EOREADER_BAND_RESAMPLING", if existing and valid |
|
Get data directory. |
|
|
Get the image path from a |
|
Pop the driver to write a file on disk from kwargs. |
Get root directory. |
|
|
Get split name (with _). |
Get src directory. |
|
|
Get the window suffix to add it into band filenames |
|
Is this array saved as uint16 on disk? |
|
Load numpy pickles, with a handling of cloud-stored files. |
|
Create a rasterio RPC object from a |
|
Convert a lxml root to a nested dict (quick and dirty) |
|
Overload of |
|
Read 8 bit arrays as a succession of binary masks. |
|
Simplify footprint decorator |
|
Stack a dictionary containing bands in a DataArray |
|
Use Dask or not |
|
Overload of |
|
Write path in attrs |