dea_tools.waterbodies

Loading and processing DEA Waterbodies data.

License: The code in this notebook is licensed under the Apache License, Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0). Digital Earth Australia data is licensed under the Creative Commons by Attribution 4.0 license (https://creativecommons.org/licenses/by/4.0/).

Contact: If you need assistance, please post a question on the Open Data Cube Slack channel (http://slack.opendatacube.org/) or on the GIS Stack Exchange (https://gis.stackexchange.com/questions/ask?tags=open-data-cube) using the open-data-cube tag (you can view previously asked questions here: https://gis.stackexchange.com/questions/tagged/open-data-cube).

If you would like to report an issue with this script, file one on Github: GeoscienceAustralia/dea-notebooks#new

Last modified: September 2021

Functions

get_geohashes([bbox, crs])

Gets all waterbody geohashes.

get_time_series([geohash, waterbody])

Gets the time series for a waterbody.

get_waterbodies(bbox[, crs])

Gets the polygons and metadata for multiple waterbodies by bbox.

get_waterbody(geohash)

Gets a waterbody polygon and metadata by geohash.

dea_tools.waterbodies.get_geohashes(bbox: tuple = None, crs: str = 'EPSG:4326') [<class 'str'>][source]

Gets all waterbody geohashes.

Parameters:
  • bbox ((xmin, ymin, xmax, ymax)) – Optional bounding box.

  • crs (str) – Optional CRS for the bounding box.

Returns:

A list of geohashes.

Return type:

[str]

dea_tools.waterbodies.get_time_series(geohash: str = None, waterbody: pandas.Series = None) pandas.DataFrame[source]

Gets the time series for a waterbody. Specify either a GeoDataFrame row or a geohash.

Parameters:
  • geohash (str) – The geohash/UID for a waterbody in DEA Waterbodies.

  • waterbody (pd.Series) – One row of a GeoDataFrame representing a waterbody.

Returns:

A time series for the waterbody.

Return type:

pd.DataFrame

dea_tools.waterbodies.get_waterbodies(bbox: tuple, crs='EPSG:4326') geopandas.GeoDataFrame[source]

Gets the polygons and metadata for multiple waterbodies by bbox.

Parameters:
  • bbox ((xmin, ymin, xmax, ymax)) – Bounding box.

  • crs (str) – Optional CRS for the bounding box.

Returns:

A GeoDataFrame with the polygons and metadata.

Return type:

gpd.GeoDataFrame

dea_tools.waterbodies.get_waterbody(geohash: str) geopandas.GeoDataFrame[source]

Gets a waterbody polygon and metadata by geohash.

Parameters:

geohash (str) – The geohash/UID for a waterbody in DEA Waterbodies.

Returns:

A GeoDataFrame with the polygon.

Return type:

gpd.GeoDataFrame