earth2studio icon indicating copy to clipboard operation
earth2studio copied to clipboard

Local Datasource Example

Open NickGeneva opened this issue 1 month ago • 1 comments

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

NickGeneva avatar Nov 26 '25 22:11 NickGeneva

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 (coods instead of coords) 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 (coods vs coords) on line 101 will cause a NameError when the code executes line 108. Once fixed, this would be a solid addition
  • Fix the typo in examples/19_local_datasource.py before 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

greptile-apps[bot] avatar Nov 26 '25 22:11 greptile-apps[bot]