Skip to content

Commit

Permalink
Draft of example notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Aug 12, 2024
1 parent 18a450a commit 4c7c3d8
Show file tree
Hide file tree
Showing 2 changed files with 309 additions and 8 deletions.
7 changes: 6 additions & 1 deletion aurora/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,12 @@ def crop(self, patch_size: int) -> "Batch":
surf_vars={k: v[..., :-1, :] for k, v in self.surf_vars.items()},
static_vars={k: v[..., :-1, :] for k, v in self.static_vars.items()},
atmos_vars={k: v[..., :-1, :] for k, v in self.atmos_vars.items()},
metadata=self.metadata,
metadata=Metadata(
lat=self.metadata.lat[:-1],
lon=self.metadata.lon,
atmos_levels=self.metadata.atmos_levels,
time=self.metadata.time,
),
)
else:
raise ValueError(
Expand Down
310 changes: 303 additions & 7 deletions docs/example.ipynb

Large diffs are not rendered by default.

0 comments on commit 4c7c3d8

Please sign in to comment.