Utils
Enums¶
geefetch.utils.enums
¶
Utilities¶
geefetch.utils.config
¶
git_style_diff(a, b)
¶
Generate a unified diff between two strings, similar to Git-style diffs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
a
|
str
|
The original string. |
required |
b
|
str
|
The modified string to compare against |
required |
Returns:
| Type | Description |
|---|---|
str
|
A unified diff string showing the differences between |
geefetch.utils.gee
¶
Google Earth Engine utilities.
auth(project)
¶
Authentificate and initialize Google Earth Engine
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
project
|
str
|
Google Earth Engine project id. |
required |
geefetch.utils.rasterio
¶
create_vrt(out, tifs)
¶
Create a GDAL Virtual Raster (VRT) file from a list of GeoTIFF files.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
out
|
Path
|
Path to the output |
required |
tifs
|
Iterable[Path]
|
List or iterable of input |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the output path does not have a |