https://github.com/cordmaur/fabdem-brazil-south

FABDEM for the South region of Brazil, published as a STAC catalog.

https://github.com/cordmaur/fabdem-brazil-south

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.4%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

FABDEM for the South region of Brazil, published as a STAC catalog.

Basic Info
  • Host: GitHub
  • Owner: cordmaur
  • License: mit
  • Language: Jupyter Notebook
  • Default Branch: main
  • Size: 952 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 2 years ago · Last pushed over 2 years ago
Metadata Files
Readme License

README.md

Brazil's South STAC-FABDEM

The FABDEM (Forest And Buildings removed Copernicus DEM) is a global elevation map, developed by the University of Bristol (Neal et al. 2023) that removes building and tree height biases from the Copernicus GLO 30 Digital Elevation Model (DEM), as described by Hawker et al. (2022).

This dataset is a major improvement over traditional DEMs currently available through the cloud platforms Google Earth Engine or Microsoft Planetary. However there is a drawback. Although the data is originally provided in 1-deg tiles saved in COG (Cloud Optimized GeoTIFF) format, it is grouped in 10 by 10 degrees ZIP files that makes it cumbersome for "on-demand" retrieval.

With that in mind, the current repository demonstrates how to re-organize this data and re-publish it as a STAC dataset directly on GitHub. The processing has been performed for the South region of Brazil (image below).

image

STAC-FABDEM creation

The whole procedure is described in the notebook nbs/01-StacCreation-BrSouth.ipynb.

Usage

The notebook nbs/02-FABDEM_Usage.ipynb describes the process, but in summary, it relies on 3 main components: * STAC catalog: published in the /stac_catalog folder * Search Function: This function selects the STAC items that intersects the region of interest. The code is available at /nbs/utils.py * STACKSTAC library: library to stack STAC items into a DASK cube (https://github.com/gjoseph92/stackstac).

As this is not a full STAC server implementation, we are going to use pystac instead of the pystac_client library. Initially, we can load the STAC catalog directly from GitHub with the following commands: ``` import pystac

catalog = pystac.Catalog.fromfile(href='https://github.com/cordmaur/fabdem-brazil-south/raw/main/staccatalog/catalog.json') catalog ``` image

Then, assuming we have a region of interest, we can search the STAC items that touches the region, by using the search_catalog function. ``` from shapely.geometry import box from utils import search_catalog

Create an region of interest as a bounding box

bbox = box(-56.2, -30.8, -54.8, -30.2)

select the items intersecting out area of interest (bbox)

items = search_catalog(catalog, bbox) items ``` image image

With the intersecting STAC items selected, we can retrieve the FABDEM for the desired ROI by calling stackstac.stack method, like so: ``` import stackstac

create a cube with the items stacked

cube = stackstac.stack( items=items, bounds_latlon=bbox.bounds )

reduce the cube in the "time" dimension

dem = cube.mean(dim='time').squeeze().compute()

plot the region

dem.plot.imshow(robust=True, aspect=1, vmin=50, vmax=200, figsize=(14, 5)) #type: ignore ``` image

References

  • Neal, J. (Creator), Hawker, L. (Creator), Uhe, P. (Contributor), Paulo, L. (Contributor), Sosa, J. (Contributor), Savage, J. (Contributor), Sampson, C. (Contributor) (17 Jan 2023). FABDEM V1-2. University of Bristol. 10.5523/bris.s5hqmjcdj8yo2ibzi9b4ew3sn

  • Hawker, Laurence, Peter Uhe, Luntadila Paulo, Jeison Sosa, James Savage, Christopher Sampson, and Jeffrey Neal. “A 30 m Global Map of Elevation with Forests and Buildings Removed.” Environmental Research Letters 17, no. 2 (February 2022): 024016. https://doi.org/10.1088/1748-9326/ac4d4f.

Owner

  • Name: Mauricio Cordeiro
  • Login: cordmaur
  • Kind: user
  • Location: Toulouse

Data scientist specialized in geosciences and remote sensing for environment. Deep learning practitioner. More info: http://cordmaur.carrd.co

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Issues and Pull Requests

Last synced: about 2 years ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels