Skip to content

Add option to output to file#65

Merged
mario-winkler merged 2 commits intoEOPF-Sample-Service:mainfrom
developmentseed:feat/file-output-flag
Jan 16, 2026
Merged

Add option to output to file#65
mario-winkler merged 2 commits intoEOPF-Sample-Service:mainfrom
developmentseed:feat/file-output-flag

Conversation

@j08lue
Copy link
Copy Markdown
Contributor

@j08lue j08lue commented Jan 13, 2026

What I'm changing

The tool currently only outputs the STAC JSON by registering it to a STAC API.

I'm proposing to add an option to write to a local JSON file, alternatively.

NOTE: This PR also includes the change from

I'll rebase when the other one gets accepted, hopefully.

How I did it

  • Added an --output-file flag and adjusted the env var validation logic
  • Updated README

How you can test it

eopf-stac /path/to/source.zarr --output-file /path/to/item.json

Note that STAC_API_URL is not required in this case.

@j08lue j08lue marked this pull request as ready for review January 13, 2026 16:26
@mario-winkler
Copy link
Copy Markdown
Collaborator

@j08lue Thanks Jonas for the contribution. I will approve and merge!

@mario-winkler mario-winkler merged commit 0713639 into EOPF-Sample-Service:main Jan 16, 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.

2 participants