README.md 1.01 KB
Newer Older
Martin Bergemann's avatar
Martin Bergemann committed
1
2
# CodeSnippets

Martin Bergemann's avatar
Martin Bergemann committed
3
4
A collection of Algorithms/Architectures in Jupyter Notebooks.

Martin Bergemann's avatar
Martin Bergemann committed
5
6
This repository should serve as a random collection of examples for algorithms and other building blocks for any kind of data processing. The code is presented in notebook format giving examples and explanation.

Martin Bergemann's avatar
Martin Bergemann committed
7
8
9
You can clone this repository:

```bash
10
git clone https://gitlab.dkrz.de/freva/codesnippets.git
Martin Bergemann's avatar
Martin Bergemann committed
11
12
13
14
15
16
17
18
```
## Installation:

To be able to run all notebooks install the kernel specs in your home on mistral:

```bash
/work/ch1187/regiklim-ces/freva/xarray/bin/python -m ipykernel install --user --name python3_codesnippets --display-name=python3_codesnippets
```
Martin Bergemann's avatar
Martin Bergemann committed
19
20
21

## List of Content:

22
* [Masking Regions in gridded data sets using shapefiles](https://gitlab.dkrz.de/freva/codesnippets/-/blob/master/notebooks/MaskRegionFromShapeFile.ipynb)
23
* [Reduce the time dimension (mean or sum) of data with two types of different missing values](https://gitlab.dkrz.de/freva/plugins4freva/codesnippets/-/blob/master/notebooks/AvgOrSumDataWithMissingValues.ipynb)