Skip to content

IOtte/datacube-stac-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ODC Stacifier

A super simple example of creating a STAC metadata file for some datasets (spatial rasters).

This tool also creates a minimum viable EO3 product and dataset definitions.

Running locally

First, install the required tools: pip3 install -r requirements.txt.

Next, use Make to get the SRTM tile used for testing, make examples/srtm_66_21.zip and then unzip with make examples/srtm/srtm_66_21.tif and now you can use the full command, using make like make test-srtm or in full form like:

python3 stac-simple.py \
  --extension=".tif" \
  --default-date="2020-06-30T12:00Z" \
  --platform=srtm \
  --band-name=elevation \
  --band-type=int16 \
  --band-nodata=-32768.0 \
  --create-product \
  --no-cog-convert \
  examples/srtm

Some basic examples are included in the examples directory, and dynamic examples can be generated using the above commands.

About

An early example of simple STAC documents and the ODC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 87.5%
  • Makefile 12.5%