Skip to content

Adapting the MOSAIKS example notebook by selecting different bands #26

Answered by calebrob6
cullen-molitor asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @cullen-molitor,

Here's an example of reading different band sets with stackstac -- https://gist.github.com/calebrob6/09b6a0210d63f96e80317a5796623d9b. To implement this in the above code I think you could replace:
matching_urls = [pc.sign(item["assets"]["visual"]["href"]) for item in df3.stac_item.tolist()] with something that signed the whole item, then use stackstac instead of rasterio.open in the CustomDataset.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@TomAugspurger
Comment options

@calebrob6
Comment options

@calebrob6
Comment options

@calebrob6
Comment options

@cullen-molitor
Comment options

Answer selected by cullen-molitor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants