Examples¶
Sample data¶
The sample data was observed in the Seisui-maru 2407 cruise (2024年度 三重大学 陸海空・環境科学実習).
The notebooks below are in the sample/ directory of the repository.
Each one needs a few packages in addition to bsod2.
Emagram¶

Additional dependencies: matplotlib, metpy, numpy. See Emagram.
z vs. sonde variables¶

Additional dependencies: matplotlib, numpy. See z vs. sonde variables.
Interactive profiles¶

Vertical profiles and flight trajectories of one or more raw data directories plotted with Plotly. All the data are embedded in the figures, so they can be operated in an HTML page without Python:
- Profiles: switch the variable of each panel and the vertical axis (height or pressure) with the dropdowns, and zoom by dragging (not beyond the range of each variable).
- Trajectories: on a 2D map (pan, zoom, change the background map) and in 3D with terrain (rotate, zoom). Boundary lines over the sea are not drawn.
- Show/hide profiles by clicking the legend, and the legend itself with the Legend on/off button. The plotted profiles can also be limited by the launch time.
The figures are also saved as a standalone HTML file.
Additional dependencies: numpy, plotly, pillow. See Interactive profiles.
3D trajectories on a map¶
The interactive Plotly notebook also plots flight trajectories above a map draped over terrain. Drag to rotate the 3D view and scroll to zoom. Use the legend to show or hide flights, and hover over the lines to inspect height, pressure, temperature, relative humidity, and wind speed. Dotted lines show the trajectories projected onto the ground.
To use your own observations:
- Open the notebook and set
RAW_DATA_DIRSto your raw data directories or files. - Optionally set
LAUNCH_STARTandLAUNCH_ENDto select flights. - Run the cells, including 3D with terrain.
TILE_SOURCEselects the map, andTERRAIN_EXAGGERATIONadjusts the terrain height. - Set
HTML_PATHto save all figures in one HTML file for viewing without Python.
Additional dependencies: numpy, plotly, pillow. An internet connection is needed to download map and elevation tiles when generating the figure; the saved HTML loads Plotly.js from the internet.
Time-z cross section¶

Additional dependencies: matplotlib. See Time-z cross section.
2D/3D trajectories¶


Additional dependencies: matplotlib, cartopy, pygmt, imageio, tqdm. See 2D/3D trajectories.
