Open
Conversation
For stac_querier.py go ahead and add aoi_is_item query functionality. For hand_index_querier.py improve DuckDB credential setting, simplified catchment data parquet structure, and better error handling
data_service.py now has credential refresh. This was necessary because couldn't get fsspec to use IAM credentials directly so was obtaining credentials from the IAM using boto3 and passing them to fsspec. But then those credentials were expiring. Pass through pass through additional metadata fields gauge, hucs, and stac_items from STAC queries Add aoi_is_item flag to be able to query directly by stac item append_file_to_uri() method supporting atomic append operations for S3 and local files DataServiceException class for better specific error handling. This is so that a pipeline can be reported as failed if there is a data service issue
d400680 to
ce9ab24
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates the scripts in src/ associated with intermediate file handling between jobs, querying the STAC, and querying the hand-index. The following changes were made:
catchment data parquet structure, and better error handling
data_service.py now has credential refresh. This was necessary because
couldn't get fsspec to use IAM credentials directly so was obtaining
credentials from the IAM using boto3 and passing them to fsspec. But
then those credentials were expiring.
stac_items from STAC queries
and local files
so that a pipeline can be reported as failed if there is a data service
issue