Sample script for plotting a emagram¶
In [1]:
Copied!
from bsod2 import Sondeset
from pathlib import Path
from IPython.display import HTML
from bsod2 import Sondeset
from pathlib import Path
from IPython.display import HTML
In [2]:
Copied!
FILE_PATH = Path("Seisuimaru2407/raw_data/F2024061813S1101388.CSV") # path to the raw data file for the station
FILE_PATH = Path("Seisuimaru2407/raw_data/F2024061813S1101388.CSV") # path to the raw data file for the station
In [3]:
Copied!
ss = Sondeset(FILE_PATH,interp="p")
ss
ss = Sondeset(FILE_PATH,interp="p")
ss
Out[3]:
N=1, sonde_no=["1101388"]
interp by p: pmin=50.0, pmax=1100.0, dp=1.0
Indexing tha data.
In [4]:
Copied!
ss[0]
ss[0]
Out[4]:
sonde No=1101388, launch time=2024-06-18 13:29:57, product name=iMS-100
| Prs | Time | WD | WS | Height | Xdistanc | Ydistanc | GeodetLat | GeodetLon | Tmp | Hum | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 953 | 1003.00 | 2024-06-18 13:29:59 | 180.00 | 0.00 | 4.00 | 0.00 | 0.00 | 34.07 | 136.21 | 20.00 | 76.60 |
| 952 | 1002.00 | 2024-06-18 13:30:03 | 127.29 | 0.13 | 12.90 | -3.70 | -4.40 | 34.07 | 136.21 | 19.10 | 78.20 |
| 951 | 1001.00 | 2024-06-18 13:30:06 | 247.12 | 0.05 | 21.30 | -5.50 | 2.20 | 34.07 | 136.21 | 18.40 | 79.40 |
| 950 | 1000.00 | 2024-06-18 13:30:06 | 273.63 | 0.20 | 29.92 | -7.65 | 3.89 | 34.07 | 136.21 | 18.32 | 79.71 |
| 949 | 999.00 | 2024-06-18 13:30:07 | 291.24 | 0.31 | 38.17 | -10.26 | 4.40 | 34.07 | 136.21 | 18.58 | 80.22 |
Plotting emagram
In [5]:
Copied!
ss[0].plot_emagram(save_dir=Path("./"))
HTML(f'<img src="{ss[0].sonde_no}.png">')
ss[0].plot_emagram(save_dir=Path("./"))
HTML(f'<img src="{ss[0].sonde_no}.png">')
Out[5]: