Skip to content

Link predicted observations to data repositories#82

Merged
wrynearson merged 10 commits intomainfrom
feature/link-to-data
Jan 29, 2026
Merged

Link predicted observations to data repositories#82
wrynearson merged 10 commits intomainfrom
feature/link-to-data

Conversation

@wrynearson
Copy link
Collaborator

@wrynearson wrynearson commented Jan 26, 2026

Closes #44

This PR:

  1. Adds optional data_repo_type and data_repo_url to constellation json files to link out to data.
  2. Adds a new column to the predicted pass table and map popup linking to data. Constellations with data_repo_type == STAC link to the STAC catalog using stac-map (cc @gadomski).
  3. Fixes logic in the predicted passes table that was hiding some predicted passes. It adds tooltips for table <Badge> components shown on hover.
  4. Updates the color scheme of the parameters of the predicted pass, to generally match "good" parameters like high resolution and open access to green and "bad" parameters like low resolution and costly to orange/red. "Neutral" parameters like optical and nighttime have colors outside of the red-green spectrum.
    • Note: These are hard-coded in multiple places. A future improvement could be to define types, labels, colors and icons centrally.
Predicted Passes Table Map Tooltip
CleanShot 2026-01-29 at 12 34 36@2x CleanShot 2026-01-29 at 14 33 43@2x

Data repo sources used. Please advise if these aren't correct or if you know of better "official" sources

operator type link
Vantor portal https://xpress.maxar.com/
ICEYE API https://docs.iceye.com/constellation/api/getting-started/quickstart/
NASA/USGS STAC https://landsatlook.usgs.gov/stac-server/
NASA/ISRO no NISAR data yet 😢
Planet portal https://www.planet.com/explorer/
ESA STAC https://stac.dataspace.copernicus.eu/v1/

@wrynearson wrynearson changed the title Feature/link-to-data Link predicted observations to data repositories Jan 26, 2026
Copy link
Contributor

@gadomski gadomski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me, and appreciate the cool use of stac-map. It might be nice to zoom to the pass's bounding box on load? If that's of interest, I could add a bbox= URL parameter to stac-map to set a zoom-to.

@wrynearson
Copy link
Collaborator Author

It might be nice to zoom to the pass's bounding box on load? If that's of interest, I could add a bbox= URL parameter to stac-map to set a zoom-to.

That would be fantastic. I was actually looking for such a param when building the link feature. This currently links to the STAC catalog instead of the collection (which it probably should for some satellites...) – would that be an issue for stac-map?

@gadomski
Copy link
Contributor

That would be fantastic. I was actually looking for such a param when building the link feature. This currently links to the STAC catalog instead of the collection (which it probably should for some satellites...) – would that be an issue for stac-map?

Yeah, could you open something on https://github.com/developmentseed/stac-map describing what you'd want? Should be pretty easy to do.

@wrynearson wrynearson marked this pull request as ready for review January 29, 2026 13:35
@gadomski gadomski self-requested a review January 29, 2026 13:40
Copy link
Contributor

@gadomski gadomski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks tight! I saw some editor-reformatting tweaks, so I opened #83 to make those more automatic. The PRs will likely conflict with each other, so maybe merge this one first and I can rebase #83 onto main afterwards?


const isStac = dataRepoType?.toLowerCase() === "stac";
const url = isStac
? `https://developmentseed.org/stac-map/?href=${encodeURIComponent(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This brings me joy

Screen.Recording.2026-01-29.at.6.46.54.AM.mov

A quick glance at their catalog indicates that we won't be able to go directly to a collection — looks like they have a lot of collections w/ Sentinel-3 data.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we won't be able to go directly to a collection

Sad... Thanks for your review. For other stac catalogues where it would make sense to go to a collection, we could set that as the data_repo_url

@wrynearson wrynearson merged commit d6a9e9a into main Jan 29, 2026
1 check passed
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.

Link out to get data

2 participants