Skip to content

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

emagram

Additional dependencies: matplotlib, metpy, numpy. See Emagram.

z vs. sonde variables

vertical profile of observed sonde variables

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

Interactive profiles

interactive plot of sonde variables

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

3D radiosonde flight trajectories over a terrain 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:

  1. Open the notebook and set RAW_DATA_DIRS to your raw data directories or files.
  2. Optionally set LAUNCH_START and LAUNCH_END to select flights.
  3. Run the cells, including 3D with terrain. TILE_SOURCE selects the map, and TERRAIN_EXAGGERATION adjusts the terrain height.
  4. Set HTML_PATH to 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

time-z cross section of relative humidity

Additional dependencies: matplotlib. See Time-z cross section.

2D/3D trajectories

2D trajectories 3D trajectories

animation of 3D trajectories

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