Skip to content

Conversation

@hrodmn
Copy link
Contributor

@hrodmn hrodmn commented Apr 18, 2025

This is pull request 3/6 for the FedGeoDay Workshop:

  1. add workshop notebooks #1
  2. add notebook for working with pgstac #2
  3. add notebook about generating STAC metadata #3
  4. Add notebook about stac-fastapi-pgstac #4
  5. write titiler-pgstac notebook #5
  6. tipg notebook (TODO)

I want to show the various ways that you can generate STAC metadata (in Python).

@hrodmn hrodmn self-assigned this Apr 18, 2025
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@hrodmn hrodmn force-pushed the feat/stac-metadata branch from 95f42de to dec25f2 Compare April 18, 2025 14:28
@hrodmn hrodmn marked this pull request as ready for review April 18, 2025 14:47
@hrodmn hrodmn force-pushed the feat/introduction branch from 0a80739 to 23adf58 Compare April 18, 2025 15:04
@hrodmn hrodmn force-pushed the feat/stac-metadata branch from 5193ba7 to 01c0d3c Compare April 18, 2025 15:04
@hrodmn hrodmn requested review from emmalu and zacdezgeo April 21, 2025 11:23
This was referenced Apr 21, 2025
@hrodmn hrodmn requested a review from gadomski April 21, 2025 11:25
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 really nice -- honestly, the best-laid-out explanation of "why don't I just make this by hand?" for STAC that I've seen.

Just need to add some dependencies to get it to run:

diff --git a/pyproject.toml b/pyproject.toml
index a525515..6b700fe 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -5,10 +5,15 @@ description = "materials for the eoAPI workshop at FedGeoDay 2025"
 readme = "README.md"
 requires-python = ">=3.13"
 dependencies = [
+    "boto3>=1.37.37",
     "httpx>=0.28.1",
     "pypgstac==0.9.6",
     "pystac>=1.12.2",
     "pystac-client>=0.8.6",
+    "rasterio>=1.4.3",
+    "rio-stac>=0.10.1",
+    "shapely>=2.1.0",
+    "stactools-sentinel2>=0.6.5",
 ]
 
 [dependency-groups]

@hrodmn
Copy link
Contributor Author

hrodmn commented Apr 21, 2025

Thanks for the review @gadomski!

Just need to add some dependencies to get it to run

Sorry about not being clear. I initially set this up with the pyproject.toml only but realized that I need to use a conda environment to make it play nice with the binder notebook server so I switched to using that for running the notebooks but did not remove the redundant dependencies section from pyproject.toml.

@gadomski gadomski dismissed their stale review April 21, 2025 14:45

Conda, not pyproject.toml

@hrodmn hrodmn mentioned this pull request Apr 21, 2025
@hrodmn hrodmn merged commit 512af4e into feat/introduction Apr 22, 2025
@hrodmn hrodmn deleted the feat/stac-metadata branch April 22, 2025 19:17
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.

3 participants