fm35-decoder 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fm35-decoder might be problematic. Click here for more details.
- fm35_decoder-0.1.1/.gitignore +17 -0
- fm35_decoder-0.1.1/LICENSE +21 -0
- fm35_decoder-0.1.1/PKG-INFO +96 -0
- fm35_decoder-0.1.1/README.md +78 -0
- fm35_decoder-0.1.1/pyproject.toml +42 -0
- fm35_decoder-0.1.1/src/fm35_decoder_luciodaou/__init__.py +3 -0
- fm35_decoder-0.1.1/src/fm35_decoder_luciodaou/decoder.py +1178 -0
- fm35_decoder-0.1.1/src/fm35_decoder_luciodaou/table_codes/CH_0509.csv +12 -0
- fm35_decoder-0.1.1/src/fm35_decoder_luciodaou/table_codes/CL_0513.csv +12 -0
- fm35_decoder-0.1.1/src/fm35_decoder_luciodaou/table_codes/CM_0515.csv +12 -0
- fm35_decoder-0.1.1/src/fm35_decoder_luciodaou/table_codes/D_0777.csv +102 -0
- fm35_decoder-0.1.1/src/fm35_decoder_luciodaou/table_codes/Nh_2700.csv +12 -0
- fm35_decoder-0.1.1/src/fm35_decoder_luciodaou/table_codes/Sr_3849.csv +7 -0
- fm35_decoder-0.1.1/src/fm35_decoder_luciodaou/table_codes/T_3931.csv +11 -0
- fm35_decoder-0.1.1/src/fm35_decoder_luciodaou/table_codes/h_1600.csv +12 -0
- fm35_decoder-0.1.1/src/fm35_decoder_luciodaou/table_codes/rara_3685.csv +158 -0
- fm35_decoder-0.1.1/src/fm35_decoder_luciodaou/table_codes/sasa_3872.csv +11 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Lucio Daou
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: fm35_decoder
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: A lightweight Python tool to decode standard FM35 TEMP weather messages from upper-air observations.
|
|
5
|
+
Project-URL: Homepage, https://github.com/luciodaou/fm35_decoder
|
|
6
|
+
Project-URL: Bug Tracker, https://github.com/luciodaou/fm35_decoder/issues
|
|
7
|
+
Author: Lucio Daou
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Requires-Python: >=3.12
|
|
13
|
+
Requires-Dist: numpy>=2.0.0
|
|
14
|
+
Requires-Dist: pandas>=3.0.0
|
|
15
|
+
Provides-Extra: dev
|
|
16
|
+
Requires-Dist: pytest; extra == 'dev'
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
|
|
19
|
+
# FM35 Decoder
|
|
20
|
+
|
|
21
|
+
[](https://ko-fi.com/luciodaou)
|
|
22
|
+
[](https://pypi.org/project/fm35_decoder)
|
|
23
|
+
[](https://pypi.org/project/fm35_decoder)
|
|
24
|
+
[](https://opensource.org/licenses/MIT)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
A Python tool to decode standard FM35 TEMP weather messages from upper-air observations (radiosoundings).
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
Install the package directly from the repository:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
pip install fm35_decoder
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Usage
|
|
38
|
+
|
|
39
|
+
Import the decoder into your project and call the `decode` function:
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
from fm35_decoder import decode
|
|
43
|
+
|
|
44
|
+
# Your FM35/TEMP message parts
|
|
45
|
+
ttaa = "..."
|
|
46
|
+
# ...
|
|
47
|
+
df_main, df_special = decode(ttaa, ttbb, ttcc, ttdd)
|
|
48
|
+
|
|
49
|
+
# df_main: Standard levels, interpolated data and geopotential heights
|
|
50
|
+
# df_special: Tropopause, Max Wind, and Cloud groups
|
|
51
|
+
print(df_main)
|
|
52
|
+
print(df_special)
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Example
|
|
56
|
+
### df_main
|
|
57
|
+
```
|
|
58
|
+
=== Main Level DataFrame (df_main) ===
|
|
59
|
+
Pressure Height Temp DewPoint WindDir WindSpeed
|
|
60
|
+
1000 163 NaN NaN NaN NaN
|
|
61
|
+
938 714 21.2 18.8 10.0 8.0
|
|
62
|
+
925 843 20.0 18.1 75.0 6.0
|
|
63
|
+
882 1249 16.8 16.4 23.0 8.5
|
|
64
|
+
870 1366 19.8 13.8 15.0 10.0
|
|
65
|
+
850 1570 18.6 13.6 360.0 8.0
|
|
66
|
+
... ... ... ... ... ...
|
|
67
|
+
31 23586 -58.8 -91.4 85.0 27.0
|
|
68
|
+
30 23800 -58.3 -91.3 85.0 35.0
|
|
69
|
+
29 24013 -58.0 -92.0 85.0 44.0
|
|
70
|
+
28 24234 -57.7 -92.7 90.0 41.0
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## df_special
|
|
74
|
+
```
|
|
75
|
+
=== Special Data DataFrame (df_special) ===
|
|
76
|
+
Symbol Subject Description Value
|
|
77
|
+
h Cloud Base Height 600-1000m (2000-3300ft)
|
|
78
|
+
Nh Cloud Amount 8 oktas
|
|
79
|
+
CL Cloud Low Type Stratus nebulosus and/or Stratus fractus
|
|
80
|
+
CM Cloud Mid Type No CM clouds
|
|
81
|
+
CH Cloud High Type No CH clouds
|
|
82
|
+
sr Solar/Inst Solar Corr NOAA solar corrected
|
|
83
|
+
rara Solar/Inst Sonde Type Vaisala RS41/DigiCORA MW41 (Finland)
|
|
84
|
+
sasa Solar/Inst Tracking Radar (5 cm)
|
|
85
|
+
8GGgg Solar/Inst Time 11:31
|
|
86
|
+
PtPtPt Tropopause Pressure 906hPa
|
|
87
|
+
TtTtTt Tropopause Temperature -77.1C
|
|
88
|
+
DtDt Tropopause Dewpoint -89.1C
|
|
89
|
+
dtdtftft Tropopause Wind 260/18kt
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## License
|
|
93
|
+
|
|
94
|
+
This project is licensed under the terms of the **MIT License**.
|
|
95
|
+
|
|
96
|
+
You are free to create derivative works and use this software for commercial purposes. The only requirement is that you **must give credit** to the original author.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# FM35 Decoder
|
|
2
|
+
|
|
3
|
+
[](https://ko-fi.com/luciodaou)
|
|
4
|
+
[](https://pypi.org/project/fm35_decoder)
|
|
5
|
+
[](https://pypi.org/project/fm35_decoder)
|
|
6
|
+
[](https://opensource.org/licenses/MIT)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
A Python tool to decode standard FM35 TEMP weather messages from upper-air observations (radiosoundings).
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
Install the package directly from the repository:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pip install fm35_decoder
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
Import the decoder into your project and call the `decode` function:
|
|
22
|
+
|
|
23
|
+
```python
|
|
24
|
+
from fm35_decoder import decode
|
|
25
|
+
|
|
26
|
+
# Your FM35/TEMP message parts
|
|
27
|
+
ttaa = "..."
|
|
28
|
+
# ...
|
|
29
|
+
df_main, df_special = decode(ttaa, ttbb, ttcc, ttdd)
|
|
30
|
+
|
|
31
|
+
# df_main: Standard levels, interpolated data and geopotential heights
|
|
32
|
+
# df_special: Tropopause, Max Wind, and Cloud groups
|
|
33
|
+
print(df_main)
|
|
34
|
+
print(df_special)
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
### df_main
|
|
39
|
+
```
|
|
40
|
+
=== Main Level DataFrame (df_main) ===
|
|
41
|
+
Pressure Height Temp DewPoint WindDir WindSpeed
|
|
42
|
+
1000 163 NaN NaN NaN NaN
|
|
43
|
+
938 714 21.2 18.8 10.0 8.0
|
|
44
|
+
925 843 20.0 18.1 75.0 6.0
|
|
45
|
+
882 1249 16.8 16.4 23.0 8.5
|
|
46
|
+
870 1366 19.8 13.8 15.0 10.0
|
|
47
|
+
850 1570 18.6 13.6 360.0 8.0
|
|
48
|
+
... ... ... ... ... ...
|
|
49
|
+
31 23586 -58.8 -91.4 85.0 27.0
|
|
50
|
+
30 23800 -58.3 -91.3 85.0 35.0
|
|
51
|
+
29 24013 -58.0 -92.0 85.0 44.0
|
|
52
|
+
28 24234 -57.7 -92.7 90.0 41.0
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## df_special
|
|
56
|
+
```
|
|
57
|
+
=== Special Data DataFrame (df_special) ===
|
|
58
|
+
Symbol Subject Description Value
|
|
59
|
+
h Cloud Base Height 600-1000m (2000-3300ft)
|
|
60
|
+
Nh Cloud Amount 8 oktas
|
|
61
|
+
CL Cloud Low Type Stratus nebulosus and/or Stratus fractus
|
|
62
|
+
CM Cloud Mid Type No CM clouds
|
|
63
|
+
CH Cloud High Type No CH clouds
|
|
64
|
+
sr Solar/Inst Solar Corr NOAA solar corrected
|
|
65
|
+
rara Solar/Inst Sonde Type Vaisala RS41/DigiCORA MW41 (Finland)
|
|
66
|
+
sasa Solar/Inst Tracking Radar (5 cm)
|
|
67
|
+
8GGgg Solar/Inst Time 11:31
|
|
68
|
+
PtPtPt Tropopause Pressure 906hPa
|
|
69
|
+
TtTtTt Tropopause Temperature -77.1C
|
|
70
|
+
DtDt Tropopause Dewpoint -89.1C
|
|
71
|
+
dtdtftft Tropopause Wind 260/18kt
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## License
|
|
75
|
+
|
|
76
|
+
This project is licensed under the terms of the **MIT License**.
|
|
77
|
+
|
|
78
|
+
You are free to create derivative works and use this software for commercial purposes. The only requirement is that you **must give credit** to the original author.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "fm35_decoder"
|
|
3
|
+
version = "0.1.1"
|
|
4
|
+
description = "A lightweight Python tool to decode standard FM35 TEMP weather messages from upper-air observations."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.12"
|
|
7
|
+
classifiers = [
|
|
8
|
+
"Programming Language :: Python :: 3",
|
|
9
|
+
"License :: OSI Approved :: MIT License",
|
|
10
|
+
"Operating System :: OS Independent",
|
|
11
|
+
]
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "Lucio Daou" },
|
|
14
|
+
]
|
|
15
|
+
dependencies = [
|
|
16
|
+
"pandas>=3.0.0",
|
|
17
|
+
"numpy>=2.0.0",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
[project.optional-dependencies]
|
|
21
|
+
dev = [
|
|
22
|
+
"pytest",
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
[project.urls]
|
|
26
|
+
"Homepage" = "https://github.com/luciodaou/fm35_decoder"
|
|
27
|
+
"Bug Tracker" = "https://github.com/luciodaou/fm35_decoder/issues"
|
|
28
|
+
|
|
29
|
+
[build-system]
|
|
30
|
+
requires = ["hatchling"]
|
|
31
|
+
build-backend = "hatchling.build"
|
|
32
|
+
|
|
33
|
+
[tool.hatch.build.targets.wheel]
|
|
34
|
+
packages = ["src/fm35_decoder_luciodaou"]
|
|
35
|
+
|
|
36
|
+
[tool.hatch.build.targets.sdist]
|
|
37
|
+
include = [
|
|
38
|
+
"src/fm35_decoder_luciodaou",
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
[tool.hatch.metadata]
|
|
42
|
+
allow-direct-references = true
|