Skip to content

Commit 458f0fb

Browse files
committed
update paper code, new release
1 parent 7e22e5c commit 458f0fb

File tree

6 files changed

+1774
-95
lines changed

6 files changed

+1774
-95
lines changed

paper/contrail.py

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,29 @@
1818

1919

2020
def saturation_pressure_over_water(temperature):
21-
return pressure_steam * 10 ** (
22-
-7.90298 * (temperature_steam / temperature - 1)
23-
+ 5.02808 * np.log10(temperature_steam / temperature)
24-
- 1.3816e-7 * (10 ** (11.344 * (1 - temperature / temperature_steam)) - 1)
25-
+ 8.1328e-3 * (10 ** (-3.49149 * (temperature_steam / temperature - 1)) - 1)
21+
# Murphy and Koop 2005
22+
return np.exp(
23+
54.842763
24+
- 6763.22 / temperature
25+
- 4.210 * np.log(temperature)
26+
+ 0.000367 * temperature
27+
+ np.tanh(0.0415 * (temperature - 218.8))
28+
* (
29+
53.878
30+
- 1331.22 / temperature
31+
- 9.44523 * np.log(temperature)
32+
+ 0.014025 * temperature
33+
)
2634
)
2735

2836

2937
def saturation_pressure_over_ice(temperature):
30-
return pressure_ice_point * 10 ** (
31-
-9.09718 * (temperature_ice_point / temperature - 1)
32-
- 3.56654 * np.log10(temperature_ice_point / temperature)
33-
+ 0.876793 * (1 - temperature / temperature_ice_point)
38+
# Murphy and Koop 2005
39+
return np.exp(
40+
9.550426
41+
- 5723.265 / temperature
42+
+ 3.53068 * np.log(temperature)
43+
- 0.00728332 * temperature
3444
)
3545

3646

paper/plots.ipynb

Lines changed: 15 additions & 66 deletions
Large diffs are not rendered by default.

paper/readme.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This repository accompanies the paper "Fast Contrail Estimation with OpenSky Data", providing Python notebooks, scripts, and datasets integral to this paper and its findings.
44

5+
The paper can be accessed at: https://journals.open.tudelft.nl/joas/article/view/7264
6+
57
## Python Notebooks and Scripts
68

79
- `plot.ipynb`: This Jupyter notebook contains the code to replicate the figures presented in the paper.
@@ -17,3 +19,14 @@ This repository accompanies the paper "Fast Contrail Estimation with OpenSky Dat
1719
## Installation Note
1820

1921
To reproduce the results presented, it is necessary to install the `fastmeteo` Python library. Installation instructions and additional information are available at: https://github.com/junzis/fastmeteo
22+
23+
You will also need `traffic` library for trajectory visualization. More details at: https://traffic-viz.github.io/
24+
25+
Sample installation:
26+
27+
```
28+
mamba create -n fastcontrail python=3.11 -c conda-forge
29+
mamba activate fastcontrail
30+
mamba install traffic
31+
pip install git+https://github.com/junzis/fastmeteo
32+
```

0 commit comments

Comments
 (0)