Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add XarraySourceConfig to allow specifying an XarraySource from STAC Items #1980

Merged
merged 3 commits into from
Nov 6, 2023

Conversation

AdeelH
Copy link
Collaborator

@AdeelH AdeelH commented Nov 6, 2023

Overview

This PR defines XarraySourceConfig, STACItemConfig, and STACItemCollectionConfig so that an XarraySource can be specified using STAC Items, e.g. those returned by a STAC API.

This allows STAC Items to be used directly with the Raster Vision pipeline. In particular: this can be combined with the new predict_scene (#1979) command to easily run predictions on imagery queried from a STAC API.

Checklist

  • Added needs-backport label if PR is bug fix that applies to previous minor release
  • Ran scripts/format_code and committed any changes
  • Documentation updated if needed
  • PR has a name that won't get you publicly shamed for vagueness

Notes

N/A

Testing Instructions

  • See new unit tests.

@AdeelH AdeelH marked this pull request as ready for review November 6, 2023 21:09
@AdeelH AdeelH force-pushed the xarray_source_config branch from 1aa730d to 1afb81d Compare November 6, 2023 21:10
Copy link

codecov bot commented Nov 6, 2023

Codecov Report

Merging #1980 (1afb81d) into master (a7d56de) will increase coverage by 0.02%.
The diff coverage is 91.17%.

@@            Coverage Diff             @@
##           master    #1980      +/-   ##
==========================================
+ Coverage   86.18%   86.21%   +0.02%     
==========================================
  Files         193      195       +2     
  Lines        9499     9567      +68     
==========================================
+ Hits         8187     8248      +61     
- Misses       1312     1319       +7     
Files Coverage Δ
...e/rastervision/core/data/raster_source/__init__.py 100.00% <100.00%> (ø)
...astervision/core/data/raster_source/stac_config.py 100.00% <100.00%> (ø)
...on/core/data/raster_source/xarray_source_config.py 84.21% <84.21%> (ø)

... and 1 file with indirect coverage changes

@AdeelH AdeelH merged commit 885f779 into azavea:master Nov 6, 2023
1 check passed
@AdeelH AdeelH deleted the xarray_source_config branch November 6, 2023 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant