Skip to content

Commit

Permalink
Update intake catalog & examples to point to OSN bucket (#331)
Browse files Browse the repository at this point in the history
* updates data urls

* Update README.md

Co-authored-by: Anderson Banihirwe <[email protected]>

* Update README.md

Co-authored-by: Anderson Banihirwe <[email protected]>

* README.md code block format

* pre-commit lint

---------

Co-authored-by: Anderson Banihirwe <[email protected]>
  • Loading branch information
norlandrhagen and andersy005 authored Jun 7, 2024
1 parent 0444873 commit 7957fc1
Show file tree
Hide file tree
Showing 3 changed files with 405 additions and 702 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,21 @@ There are two ways to access the data using Python.

First, the entire collection of datasets at daily timescales is available through an `intake` catalog using the following code snippet.

```
```python
import intake
cat = intake.open_esm_datastore(
'https://cpdataeuwest.blob.core.windows.net/cp-cmip/version1/catalogs/global-downscaled-cmip6.json'
'https://rice1.osn.mghpcc.org/carbonplan/cp-cmip/version1/catalog/osn-rechunked-global-downscaled-cmip6.json'
)
```

You can check out this example [Jupyter notebook](https://github.com/carbonplan/cmip6-downscaling/blob/main/notebooks/accessing_data_example.ipynb) to see how to access the data, perform some simple analysis, and download subsets.

You can also access the data by using the URL of an individual dataset. See [the datasets page](https://github.com/carbonplan/cmip6-downscaling/blob/main/datasets.md) for a table of all available datasets in this collection with storage locations and other metadata. A code snippet showing how to use the URL is shown below:

```
````python
import xarray as xr
xr.open_zarr('https://cpdataeuwest.blob.core.windows.net/cp-cmip/version1/data/DeepSD/ScenarioMIP.CCCma.CanESM5.ssp245.r1i1p1f1.day.DeepSD.pr.zarr')
```
xr.open_zarr('https://rice1.osn.mghpcc.org/carbonplan/cp-cmip/version1/rechunked_data/DeepSD/ScenarioMIP.CCCma.CanESM5.ssp245.r1i1p1f1.day.DeepSD.pr.zarr',chunks={})```
````

## license

Expand Down
Loading

0 comments on commit 7957fc1

Please sign in to comment.