Skip to content

Commit d5a729b

Browse files
authored
Merge pull request #10 from modelblocks-org/feature-small-template-update
reshuffled readme
2 parents b7181c4 + 5e231d4 commit d5a729b

3 files changed

Lines changed: 53 additions & 51 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ on:
66

77
jobs:
88
release-workflow:
9+
permissions:
10+
contents: write
911
uses: modelblocks-org/data-module-template/.github/workflows/template-release.yml@latest

README.md

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -2,54 +2,28 @@
22

33
A module to aggregate CDR potential in Europe into flexible spatial resolutions, using the CO2Stop dataset
44

5-
## About this module
6-
<!-- Please do not modify this templated section -->
7-
8-
This is a modular `snakemake` workflow built for [Modelblocks](https://www.modelblocks.org/) data modules.
5+
<!-- Place an attractive image of module outputs here -->
6+
<p align="center">
7+
<img src="./figures/aquifer_kept.png" width="70%">
8+
</p>
99

10-
This module can be imported directly into any `snakemake` workflow.
11-
For more information, please consult:
12-
- The Modelblocks [documentation](https://modelblocks.readthedocs.io/en/latest/).
13-
- The integration example in this repository (`tests/integration/Snakefile`).
14-
- The `snakemake` [documentation on modularisation](https://snakemake.readthedocs.io/en/stable/snakefiles/modularization.html).
15-
16-
## Development
10+
## About
1711
<!-- Please do not modify this templated section -->
1812

19-
We use [`pixi`](https://pixi.sh/) as our package manager for development.
20-
Once installed, run the following to clone this repository and install all dependencies.
21-
22-
```shell
23-
git clone git@github.com:modelblocks-org/module_co2stop_cdr.git
24-
cd module_co2stop_cdr
25-
pixi install --all
26-
```
27-
28-
For testing, simply run:
29-
30-
```shell
31-
pixi run test-integration
32-
```
33-
34-
To test a minimal example of a workflow using this module:
35-
36-
```shell
37-
pixi shell # activate this project's environment
38-
cd tests/integration/ # navigate to the integration example
39-
snakemake --use-conda --cores 2 # run the workflow!
40-
```
13+
This is a modular `snakemake` workflow created as part of the [Modelblocks project](https://www.modelblocks.org/). It can be imported directly into any `snakemake` workflow.
4114

42-
## Documentation
15+
For more information, please consult the Modelblocks [documentation](https://modelblocks.readthedocs.io/en/latest/),
16+
the [integration example](./tests/integration/Snakefile),
17+
and the `snakemake` [documentation](https://snakemake.readthedocs.io/en/stable/snakefiles/modularization.html).
4318

44-
### Overview
19+
## Overview
4520
<!-- Please describe the processing stages of this module here -->
4621

4722
The analysis of the module is structured as follows:
4823

49-
<div style="width:50%; margin: auto;">
50-
51-
![scenarios](./figures/rulegraph.png)
52-
</div>
24+
<p align="center">
25+
<img src="./figures/rulegraph.png" width="50%">
26+
</p>
5327

5428
1. The CO2Stop dataset is downloaded and cleaned up following methods described in the [JRC - CO2 transport report](https://publications.jrc.ec.europa.eu/repository/handle/JRC136709).
5529
2. To avoid double-counting, traps within the remaining storage units are removed as their capacity is already included in the storage unit total (please consult the [CO2Stop Final report](https://energy.ec.europa.eu/publications/assessment-co2-storage-potential-europe-co2stop_en) section 2.3.1 for details).
@@ -62,10 +36,11 @@ Additionally, the following removal criteria is applied to further clean the dat
6236
3. Three scenarios (`low`, `medium`, `high`) are created for each sequestration type (`aquifer`, `gas`, `oil`) for the remaining CO2Stop data.
6337
User-configured lower and upper bounds are applied per-polygon at this stage.
6438
See `bounds_mtco2: co2stop_polygons` in the configuration schema for more information.
65-
<div style="width:50%; margin: auto;">
6639

67-
![scenarios](./figures/aquifer_scenarios.png)
68-
</div>
40+
<p align="center">
41+
<img src="./figures/aquifer_scenarios.png" width="66%">
42+
</p>
43+
6944
4. The resulting sequestration potential is aggregated per scenario into user provided shapes.
7045

7146
>[!WARNING]
@@ -76,26 +51,51 @@ See `bounds_mtco2: co2stop_polygons` in the configuration schema for more inform
7651
>
7752
>We provide automated figures and logging (in `logs/storage_units/` and `logs/traps/`) so users can evaluate how their settings affect polygon selection.
7853
>Below is an example for storage unit aquifers where only undisclosed and artificial polygons have been removed. This can be seen as a _MINIMUM_ amount of removals.
79-
><div style="width:50%; margin: auto;">
80-
>
81-
>![scenarios](./figures/aquifer_kept.png)
82-
></div>
54+
> <p align="center">
55+
> <img src="./figures/aquifer_kept.png" width="70%">
56+
> </p>
8357
84-
### Configuration
85-
<!-- Feel free to describe how to configure this module below -->
58+
## Configuration
59+
<!-- Please describe how to configure this module below -->
8660

8761
Please consult the configuration [README](./config/README.md) and the [configuration example](./config/config.yaml) for a general overview on the configuration options of this module.
8862

89-
### Input / output structure
90-
<!-- Feel free to describe input / output file placement below -->
63+
## Input / output structure
64+
<!-- Please describe input / output file placement below -->
9165

9266
As input, all you need to provide is a `.parquet` shapes file with the polygons to aggregate capacities into. This file should follow the schema provided by the [geo-boundaries module](https://github.com/calliope-project/module_geo_boundaries/tree/v0.1.6).
9367

9468
Outputs for each input shape file can be requested per potential scenario (low, medium, high), and CDR group (aquifer, gas, oil, and total aggregate sum).
9569

9670
Please consult the [interface file](./INTERFACE.yaml) for more information.
9771

98-
### References
72+
## Development
73+
<!-- Please do not modify this templated section -->
74+
75+
We use [`pixi`](https://pixi.sh/) as our package manager for development.
76+
Once installed, run the following to clone this repository and install all dependencies.
77+
78+
```shell
79+
git clone git@github.com:modelblocks-org/module_co2stop_cdr.git
80+
cd module_co2stop_cdr
81+
pixi install --all
82+
```
83+
84+
For testing, simply run:
85+
86+
```shell
87+
pixi run test-integration
88+
```
89+
90+
To test a minimal example of a workflow using this module:
91+
92+
```shell
93+
pixi shell # activate this project's environment
94+
cd tests/integration/ # navigate to the integration example
95+
snakemake --use-conda --cores 2 # run the workflow!
96+
```
97+
98+
## References
9999
<!-- Please provide thorough referencing below -->
100100

101101
This module is based on the following research and datasets:

figures/rulegraph.png

3.54 KB
Loading

0 commit comments

Comments
 (0)