earth2studio
earth2studio copied to clipboard
Local Datasource Example
Earth2Studio Pull Request
Description
Adds an example showing how to create and use a local data source for inference.
Closes: https://github.com/NVIDIA/earth2studio/issues/528
Checklist
- [ ] I am familiar with the Contributing Guidelines.
- [ ] New or existing tests cover these changes.
- [ ] The documentation is up to date with these changes.
- [ ] The CHANGELOG.md is up to date with these changes.
- [ ] An issue is linked to this pull request.
- [ ] Assess and address Greptile feedback (AI code review bot for guidance; use discretion, addressing all feedback is not required).
Dependencies
Disclaimer: This is AI-generated, please review response for accuracy
Greptile Overview
Greptile Summary
Adds a new example demonstrating how to create and use a local Zarr data source for inference pipelines. The example shows fetching data from WeatherBench2, storing it locally, and using it with the Pangu model.
- Well-structured example with clear documentation sections
- Demonstrates practical workflow: fetch → store → load → infer → visualize
- Critical issue: Variable name typo on line 101 (
coodsinstead ofcoords) will cause runtime error
Confidence Score: 3/5
- This PR adds useful functionality but contains a syntax error that will prevent the example from running
- The example is well-written and follows established patterns, but the variable name typo (
coodsvscoords) on line 101 will cause aNameErrorwhen the code executes line 108. Once fixed, this would be a solid addition - Fix the typo in
examples/19_local_datasource.pybefore merging
Important Files Changed
File Analysis
| Filename | Score | Overview |
|---|---|---|
| examples/19_local_datasource.py | 3/5 | New example demonstrating local data source creation with Zarr; contains a typo that will cause runtime error |