Closed yellowcap closed 3 months ago
I have been working more on the v1 pipeline, realizing that we will need cloud and nodata tracking at the chip level. I played around with creating classes where the platform specific cloud and nodata filters can be added through class method overrides.
the classes are at
https://github.com/Clay-foundation/model/blob/clay-v1-pipeline/scripts/pipeline_v1/chip_indexer.py
script to try them out with the data attached below is
This has migrated to https://github.com/Clay-foundation/stacchip
This is a proof of concept for #178. This is kind of a generic approach that is solely based on STAC, so we could spin this out into a separate pipeline repository and make it standallone for it to be used also in other projects.
Its functional but a bit clunky, but it does show how this could work.
To test it locally:
Create a working directory with an
/items
subdirectory.create_stac.sh
, this should create local static STAC itemsedit_stac.py
this will change default source paths for Landsat to S3 locations.indexing.py
this should create an index json file that represents the items and the chips in themchipping.py
script should print chips that are dynamically created from the index.