utils (deprecated)#
easysnowdata.utils#
Shared utility functions used across easysnowdata modules.
Credential handling lives in easysnowdata.auth and the cache directory
in easysnowdata.config; the names kept here are thin delegates so the
existing modules and tests keep working.
Decorator: raise CredentialError with setup instructions if EE credentials are missing. |
|
Decorator: raise CredentialError with setup instructions if EarthData credentials are missing. |
|
Initialise Google Earth Engine once, honouring |
|
Context manager that silences stdout for noisy third-party calls. |
|
Convert a bounding-box input of any supported type to a GeoDataFrame. |
|
Build the pixel-grid kwargs required by |
|
Return an ODC-STAC band configuration dict for common sensors. |
|
Return the start date of the water year containing date. |
|
Convert a date to the day-of-water-year (DOWY), 1-indexed. |
|
Convert a date to its water year (WY). |
|
Parse an HLS granule XML metadata URL into a one-row DataFrame. |