Skip to content
Snippets Groups Projects
Commit 4ef72c0d authored by Aiko Voigt's avatar Aiko Voigt
Browse files

Adds jupyter notebook to plot global mean time series of icon nextgems ngc4008 simulation

parent 6d793e95
No related branches found
No related tags found
No related merge requests found
%% Cell type:markdown id:735830fd-62b6-4962-aa55-f90dc7a741da tags:
# Gobal mean time series of ngc4008
%% Cell type:markdown id:4dc8fe11-d0e4-4d46-9568-1af7e147fd9b tags:
On Teachinghub, use the MagicPy Kernel.
%% Cell type:code id:cb932c48-e396-4bfd-beb1-a7a2a16cf393 tags:
``` python
import intake
import healpy as hp
import matplotlib.pyplot as plt
import numpy as np
import dask
import zarr
import easygems
import easygems.healpix as egh
import xarray as xr
```
%% Cell type:markdown id:e61a8fba-237b-423f-9492-59c76fd4fbaf tags:
Load simulation data from publicly available cloud. The number in front of ".zarr" is the zoom level. A higher zoom level leads to much larger data. Zoom levels 0 to 9 are available.
%% Cell type:code id:c71c9d41-1d62-4a0a-92db-58041a61fc90 tags:
``` python
icon = xr.open_zarr("https://s3.eu-dkrz-1.dkrz.cloud/nextgems/rechunked_ngc4008/ngc4008_P1D_0.zarr").resample(time="ME").mean()
```
%% Cell type:code id:192e609e-ba30-4efe-9f51-a9005e0767b1 tags:
``` python
icon=icon.groupby(icon.time.dt.year).mean()
```
%% Cell type:code id:2942963e-00e5-48d4-9b37-dd43f43093e2 tags:
``` python
plt.plot(icon["ts"].mean("cell")[1:29],"x-")
```
%% Output
[<matplotlib.lines.Line2D at 0x7f8241abd3f0>]
%% Cell type:code id:44a5236d-63a7-44f6-8b97-242c41b71e38 tags:
``` python
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment