Skip to content

Commit

Permalink
Add maps to examples (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiannucci authored Oct 15, 2024
1 parent c5623e8 commit a37d21c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
Binary file added docs/docs/assets/datasets/oisst.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion docs/docs/icechunk-python/virtual.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,12 @@ ds = xr.open_zarr(
# err (time, zlev, lat, lon) float64 257MB dask.array<chunksize=(1, 1, 720, 1440), meta=np.ndarray>
```

Success! We have created our full dataset with 31 timesteps spanning the month of august, all with virtual references to pre-existing data files in object store. This means we can now version control our dataset, allowing us to update it, and roll it back to a previous version without copying or moving any data from the original files.
Success! We have created our full dataset with 31 timesteps spanning the month of august, all with virtual references to pre-existing data files in object store. This means we can now version control our dataset, allowing us to update it, and roll it back to a previous version without copying or moving any data from the original files.

Finally, let's make a plot of the sea surface temperature!

```python
ds.sst.isel(time=26, zlev=0).plot(x='lon', y='lat', vmin=0)
```

![oisst](../assets/datasets/oisst.png)
6 changes: 4 additions & 2 deletions docs/docs/sample-datasets.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

> The NOAA 1/4° Daily Optimum Interpolation Sea Surface Temperature (OISST) is a long term Climate Data Record that incorporates observations from different platforms (satellites, ships, buoys and Argo floats) into a regular global grid
Checkout an example dataset built using all virtual references pointing to daily Sea Surface Temperature data from 2020 to 2024 on NOAA's S3 bucket using python:
Check out an example dataset built using all virtual references pointing to daily Sea Surface Temperature data from 2020 to 2024 on NOAA's S3 bucket using python:

```python
import icechunk
Expand All @@ -23,4 +23,6 @@ storage = icechunk.StorageConfig.s3_anonymous(
store = IcechunkStore.open_existing(storage=storage, mode="r", config=StoreConfig(
virtual_ref_config=VirtualRefConfig.s3_anonymous(region='us-east-1'),
))
```
```

![oisst](./assets/datasets/oisst.png)

0 comments on commit a37d21c

Please sign in to comment.