Plotting Soundings with Observed RAOB Dataο
[1]:
# import sounderpy
import sounderpy as spy
Load RAOB Dataο
The function:
.get_obs_data('station', 'year', 'month', 'day', 'hour')where
stationis RAOB identifier for a given RAOB site, see: https://kylejgillett.github.io/sounderpy/reference/gettingdata.html#available-raob-sites
[2]:
# Gaylord, MI EF3 tornado on 05/20/2022
clean_data = spy.get_obs_data('apx', '2022', '05', '20', '18')
> OBSERVED DATA ACCESS FUNCTION
-----------------------------------
> PROFILE FOUND: APX on 05/20/2022 at 18z | From UW (ID: 72634)
> COMPLETE --------
> RUNTIME: 00:00:16
> SUMMARY: 18Z Launch for KAPX, Gaylord at 05-20-2022-18Z
> THERMODYNAMICS ---------------------------------------------
--- SBCAPE: 2289.6 | MUCAPE: 2289.6 | MLCAPE: 2119.0 | MUECAPE: 1859.6
--- MU 0-3: 81.8 | MU 0-6: 584.0 | SB 0-3: 81.8 | SB 0-6: 584.0
> KINEMATICS -------------------------------------------------
--- 0-500 SRW: 35.9 knot | 0-500 SWV: 0.02 | 0-500 SHEAR: 21.2 | 0-500 SRH: 178.2
--- 1-3km SRW: 23.1 knot | 1-3km SWV: 0.005 | 1-3km SHEAR: 15.4 | | 1-3km SRH: 75.6
==============================================================
[3]:
# `clean_data` is a python dictionary of 'clean' vertical profile data
# it comes with temperature, dewpoint, pressure, height, u and v
# as well as a number of useful 'meta data'
clean_data
[3]:
{'p': Quantity(array([943.6, 906.1, 899.8, 892.9, 886.9, 880.7, 873.7, 865.6, 859.1,
853.4, 848.9, 844.9, 839.1, 832.7, 826.6, 819.9, 813.3, 807.7,
802.4, 796.4, 790.7, 784.6, 778. , 771.9, 765.8, 759.5, 753.2,
745.9, 740.4, 734.2, 728.4, 722.7, 717.5, 711.3, 704.8, 698.9,
693.2, 687.3, 681.8, 676.5, 670.4, 664.4, 657.6, 651.5, 645.3,
638.9, 632.9, 626.4, 620.4, 614.5, 609.3, 604.1, 599.1, 594.1,
589.3, 584.8, 580.1, 575.9, 571.4, 566.7, 561.9, 557.4, 551.9,
546.5, 541.8, 537. , 532.5, 527.7, 522.9, 518.6, 514.4, 510. ,
506.1, 502.4, 498.9, 494.5, 490.8, 487.4, 483.8, 480.3, 476.8,
473.1, 469.6, 465.7, 461.9, 457.9, 454.2, 450.5, 446.8, 443. ,
440.1, 436.5, 432.7, 428.6, 424.8, 420.9, 416.1, 412. , 408.2,
404.1, 399.4, 395.1, 390.7, 386. , 380.9, 376.4, 371.5, 366.8,
362.4, 358.4, 354.2, 350.6, 347. , 343.3, 340.1, 336.9, 334.1,
331.3, 328.2, 324.6, 321.3, 318. , 314.8, 312.1, 309. , 305.8,
303. , 299.7, 296.7, 293.8, 290.8, 288. , 285.5, 283.1, 280.6,
278.2, 275.9, 273.3, 270.3, 267.8, 265. , 262.4, 259.6, 257.3,
255.1, 252.5, 250. , 247.5, 244.9, 242.4, 239.8, 237.1, 234.6,
231.8, 229.6, 227.2, 224.9, 222.6, 219.8, 217.1, 214.7, 212.2,
209.4, 206.8, 203.9, 201.4, 198.9, 196. , 193.1, 190.2, 187.4,
184.9, 182.1, 179.7, 177.6, 175.5, 173.5, 171.8, 169.8, 168.2,
166.7, 164.8, 163.4, 162.1, 160.7, 159.4, 157.2, 155.3, 152.8,
150.4, 147.9, 145.3, 142.7, 140. , 137.8, 135.6, 133.8, 132.2,
130.9, 129.6, 128.3, 126.8, 124.9, 123.1, 121.6, 120. , 118.3,
117. , 115.7, 114.4, 113.1, 111.8, 110.5, 109.2, 107.9, 106.6,
105.3, 104. , 102.7, 101.4, 100.1, 98.8]), "hectopascal"),
'z': Quantity(array([ 448., 803., 865., 931., 990., 1051., 1119., 1199.,
1264., 1323., 1368., 1408., 1467., 1532., 1595., 1665.,
1734., 1792., 1848., 1911., 1972., 2037., 2109., 2175.,
2242., 2312., 2381., 2463., 2525., 2595., 2660., 2726.,
2785., 2857., 2933., 3002., 3070., 3140., 3206., 3270.,
3344., 3418., 3501., 3578., 3656., 3736., 3813., 3896.,
3974., 4051., 4120., 4189., 4255., 4322., 4388., 4448.,
4514., 4571., 4634., 4701., 4767., 4832., 4911., 4987.,
5056., 5125., 5191., 5262., 5333., 5397., 5461., 5528.,
5587., 5644., 5698., 5766., 5823., 5877., 5933., 5989.,
6044., 6104., 6160., 6224., 6284., 6350., 6411., 6474.,
6536., 6600., 6649., 6711., 6777., 6848., 6914., 6983.,
7068., 7140., 7209., 7283., 7369., 7449., 7532., 7620.,
7716., 7803., 7898., 7989., 8076., 8157., 8241., 8313.,
8386., 8463., 8528., 8596., 8653., 8713., 8780., 8856.,
8927., 8998., 9069., 9131., 9199., 9271., 9336., 9410.,
9479., 9547., 9617., 9683., 9745., 9800., 9862., 9921.,
9977., 10040., 10114., 10178., 10248., 10314., 10387., 10444.,
10503., 10571., 10636., 10703., 10771., 10839., 10910., 10984.,
11054., 11132., 11195., 11262., 11326., 11394., 11474., 11555.,
11626., 11699., 11784., 11862., 11951., 12030., 12108., 12198.,
12290., 12386., 12476., 12558., 12652., 12732., 12807., 12879.,
12948., 13007., 13075., 13134., 13186., 13257., 13307., 13355.,
13407., 13459., 13543., 13619., 13716., 13815., 13919., 14026.,
14136., 14250., 14346., 14441., 14522., 14594., 14649., 14710.,
14770., 14843., 14934., 15023., 15100., 15181., 15266., 15335.,
15402., 15474., 15544., 15615., 15687., 15759., 15835., 15911.,
15989., 16068., 16142., 16228., 16310., 16389.]), "meter"),
'T': Quantity(array([ 26. , 22.5, 22. , 21.3, 20.8, 20.1, 19.5, 18.8, 18.5,
18.2, 17.7, 17.4, 17. , 16.4, 16.1, 15.5, 14.9, 14.5,
14.2, 13.7, 13.8, 13.8, 13.5, 13.3, 12.8, 12.2, 11.6,
10.8, 10.4, 9.7, 9.2, 8.6, 8.1, 7.6, 6.9, 6.4,
5.9, 5.4, 5.5, 5.7, 6. , 5.5, 4.9, 4.4, 3.7,
3. , 2.4, 2.3, 2.4, 1.8, 1.3, 1. , 0.5, -0.1,
-0.5, -0.5, -0.5, -0.6, -1. , -1.6, -2.2, -2.8, -3.5,
-4.2, -4.9, -5.4, -5.9, -6.6, -7.2, -7.8, -8.4, -8.9,
-9.4, -9.9, -10.4, -11.1, -11.6, -12.1, -12.7, -13.2, -13.7,
-14.2, -14.6, -14.8, -15.3, -15.4, -15.9, -16.4, -16.8, -16.6,
-16.9, -17.4, -17.9, -18.5, -19.1, -19.5, -20. , -20.7, -21.3,
-21.9, -22.5, -22.4, -23. , -23.8, -24.7, -25.5, -26.3, -27.1,
-27.9, -28.7, -29.5, -30.2, -30.8, -31.4, -31.9, -32.5, -32.9,
-33.2, -33.7, -34.3, -34.7, -35. , -35.5, -36.1, -36.6, -37. ,
-37.2, -37.6, -37.8, -38.4, -39. , -39.5, -39.9, -40.3, -40.8,
-41.2, -41.7, -42.2, -42.9, -43.4, -44. , -44.5, -45.1, -45.5,
-46.1, -46.6, -47.1, -47.7, -48.2, -48.8, -49.3, -49.8, -50.3,
-51.1, -51.7, -52.2, -52.8, -53.1, -54. , -54.8, -55.3, -56.1,
-56.9, -57.6, -58.4, -58.9, -59.6, -60.5, -61.4, -62.2, -63. ,
-63.4, -64.2, -65. , -65.9, -66.5, -66.9, -67.2, -68. , -68.1,
-68.5, -68.9, -68.1, -67.9, -64. , -63.7, -62.8, -62.1, -62.7,
-63.6, -64.5, -65.5, -66.6, -67.8, -68.8, -69.6, -69.9, -70.1,
-70. , -66.3, -66.2, -66.5, -65.2, -64.8, -65.3, -64.8, -63.5,
-63.5, -62.9, -62.8, -62.6, -61.8, -60.3, -59.8, -59. , -58.6,
-58.6, -58.6, -58. , -55.4, -55.2, -55.6]), "degree_Celsius"),
'Td': Quantity(array([ 17.4, 16.4, 16.3, 16.2, 16.2, 16.1, 16. , 15.8, 15.3,
15. , 14.7, 14.7, 14.4, 14.4, 13.9, 13.8, 13.6, 13.3,
12.9, 12.7, 12. , 11.2, 10.5, 9.8, 9.6, 9.2, 8.8,
8.5, 8.3, 7.9, 7.6, 7.6, 7.3, 6.5, 5.9, 5.4,
4.8, 4.2, 2.9, 0.3, -2.5, -3. , -3.7, -4. , -3.9,
-4. , -3.8, -3.9, -4.6, -4.4, -4.8, -4.4, -3.7, -3.9,
-4.6, -7.1, -9.5, -10.5, -12.7, -13.6, -13.8, -14.1, -14.3,
-14.3, -14.4, -14.3, -14.2, -14.3, -15. , -15.3, -15.7, -16.5,
-16.6, -16.8, -16.9, -17.1, -17. , -17. , -16.9, -17.1, -17.2,
-17.3, -17.4, -17.5, -17.7, -18.3, -18.9, -19.4, -19.9, -22.1,
-23.1, -24. , -25.2, -25.8, -26.5, -28.4, -30. , -30.3, -30.6,
-31. , -31.3, -35.8, -37.5, -38.1, -37.8, -37.1, -35.9, -35.3,
-35.2, -35. , -34.3, -35.1, -35. , -35. , -35.6, -36.3, -36.4,
-36.5, -37. , -37.5, -38. , -38.4, -39.4, -39.9, -40.4, -40.8,
-41. , -41.3, -41.4, -42. , -42.6, -43.2, -44.1, -44.8, -45.2,
-45.8, -46.1, -46.7, -47.4, -48. , -48.3, -48.3, -48.9, -49.3,
-49.9, -50.4, -50.8, -51.4, -51.9, -52.6, -53.5, -54.7, -55.2,
-56.2, -56.7, -57.2, -57.7, -58.1, -58.9, -59.6, -60.4, -61.3,
-62.2, -62.8, -63.7, -64.1, -64.9, -65.9, -66.8, -67.5, -67. ,
-67.4, -68.2, -68.9, -69.8, -70.4, -70.8, -71. , -71.9, -72. ,
-72.4, -72.9, -72.2, -72.2, -68.6, -68.4, -67.7, -67.1, -67.7,
-68.8, -69.6, -70.7, -71.8, -73. , -73.9, -74.7, -75.1, -75.3,
-75.4, -72.9, -73.8, -74.7, -74.3, -74.8, -76. , -76.3, -76.3,
-77. , -77.3, -78. , -78.8, -78.9, -78.5, -79.1, -79.7, -80.6,
-82.1, -83.3, -83.8, -82.9, -83.2, -83.7]), "degree_Celsius"),
'u': Quantity(array([ 10.40079339, 14.2712425 , 17.31992288, 17.62026836,
17.5201532 , 18.12937742, 19.15945568, 21.52223436,
25.32227168, 27.41838633, 28.61502243, 27.86332076,
28.69366012, 29.07624225, 29.58635176, 30.56604669,
30.69611497, 31.15384877, 30.88870963, 31.86719155,
33.67530992, 36.98059872, 39.16248394, 40.63641521,
41.51088091, 41.97041096, 42.88947105, 44.55444395,
46.01748473, 45.92821726, 44.96130742, 43.94749407,
42.46018905, 40.28546745, 39.31139072, 39.00297521,
38.95278747, 37.11156603, 36.5932581 , 37.94356282,
38.97545335, 40.30114904, 39.90344034, 39.10802292,
38.97545335, 39.42889802, 40.13547141, 41.6474241 ,
43.15937679, 45.86363246, 49.11485768, 51.34621346,
53.30862833, 54.94660294, 57.10247194, 56.80034246,
56.06266573, 55.449959 , 56.50807525, 56.66331722,
57.24262523, 58.43742871, 59.78725826, 61.29707652,
62.60126964, 64.12547566, 64.81502774, 64.48178852,
63.81531009, 62.14731188, 61.9824649 , 62.31215886,
62.81559243, 61.31601596, 60.1496787 , 60.60293355,
61.61298244, 62.62303134, 63.75452893, 64.01832006,
64.08304251, 63.67505829, 64.36158183, 65.21973626,
65.69140439, 64.12651077, 62.15251708, 60.5543095 ,
58.13667185, 55.0340223 , 53.34480296, 52.51905078,
51.31763458, 49.64352653, 48.79346614, 48.98737129,
49.98588257, 51.15221983, 50.93771717, 51.10256415,
50.86353158, 49.15125005, 46.49517489, 44.1900486 ,
43.15134381, 43.03837288, 44.44215127, 46.92333329,
50.28784927, 52.18585945, 52.75103396, 50.95361631,
49.83900596, 50.5374833 , 51.26741113, 50.98560023,
47.92909707, 44.81908844, 42.29812736, 42.75132158,
44.11090425, 45.64665133, 47.81452522, 49.52218683,
52.38668677, 52.65679712, 51.98531788, 52.34741989,
53.28691048, 52.65201331, 52.86231255, 54.40699051,
54.74388884, 54.03761575, 54.37429871, 56.98194861,
57.47997884, 56.78113412, 55.20873348, 54.33517757,
54.96558066, 55.14175239, 56.55112625, 57.60815665,
58.13667185, 58.95610192, 57.35789434, 56.47000124,
54.78940892, 54.61323719, 55.40452951, 56.72125869,
59.47580311, 62.42674558, 63.51558417, 62.1792487 ,
61.63855958, 63.2007788 , 63.40882057, 62.10481154,
61.73948911, 61.92215033, 63.38344001, 63.33411107,
62.78969178, 63.08039724, 63.16278965, 63.57314605,
66.41440397, 69.78839775, 70.46869315, 70.64486488,
71.28216221, 72.56971571, 72.77149519, 73.43570277,
75.5776734 , 77.6917342 , 78.2202494 , 79.55522187,
83.91883384, 91.09949501, 96.99310272, 101.63790659,
102.97268461, 99.45133387, 90.24269825, 79.30107081,
72.28829184, 69.20820725, 68.4153578 , 68.4979539 ,
69.51118387, 67.84997544, 63.94627823, 57.52742272,
50.26804804, 43.37207033, 36.58119577, 32.13508675,
32.50247935, 37.31299092, 43.62903397, 49.28924736,
50.83912759, 47.54175511, 41.74057634, 38.44982551,
37.74268113, 38.76275359, 38.21351643, 36.51740729,
37.33252799, 37.33252799, 36.78214178, 38.67639348,
40.32194528, 41.56737893, 41.19439316, 39.1680661 ,
36.34399909, 33.35260434]), "knot"),
'v': Quantity(array([ 9.36491643, 20.38144653, 28.82519228, 29.32505111, 29.1584315 ,
29.01306868, 30.66153849, 31.90802462, 31.2704013 , 31.54124541,
31.78020203, 33.20621262, 33.00828008, 33.44839049, 34.03520435,
33.94703398, 34.09148945, 33.40841261, 33.1240857 , 32.99944287,
33.67530992, 33.29748065, 32.86122583, 32.90672021, 32.4318546 ,
32.79087882, 33.50892726, 33.57418169, 32.2217897 , 30.9789737 ,
30.32678478, 30.77236663, 30.84913309, 31.47445668, 32.98617345,
35.11843662, 36.32406197, 37.11156603, 37.89342804, 39.29170952,
41.79605663, 43.21769121, 42.79120084, 41.93822009, 41.79605663,
40.82981914, 40.13547141, 41.6474241 , 43.15937679, 44.28999504,
44.22321649, 44.6345824 , 44.73125037, 46.10567426, 46.24067003,
45.9960104 , 43.80095492, 43.32225596, 42.58188897, 42.69887218,
41.58920165, 40.9183281 , 40.32701489, 39.80678693, 40.65373985,
40.07004441, 38.94479769, 38.74456737, 38.34410672, 38.8339505 ,
38.73094267, 38.93695833, 37.74341575, 36.8423793 , 36.14157318,
34.98912 , 35.572272 , 36.155424 , 35.33971246, 34.03914458,
32.65194104, 33.85662906, 34.2216601 , 34.6779489 , 32.03983871,
29.90268306, 27.67208347, 26.96051561, 27.1095753 , 26.84188615,
27.1805347 , 27.92487464, 27.28607032, 27.5178561 , 27.04665993,
28.282872 , 30.03454835, 30.73535447, 31.82941831, 31.93242614,
33.03116362, 33.15293677, 32.55627195, 32.10594962, 30.21489622,
27.94944614, 25.658688 , 26.01002837, 26.73852376, 30.12952 ,
32.9625044 , 35.67810624, 34.89764767, 32.8194254 , 32.03543397,
30.63523931, 31.12551957, 32.56297382, 34.25234817, 34.61933761,
35.72030595, 35.66307259, 36.03082913, 37.31764446, 36.68155298,
34.19572388, 31.23593028, 27.83361688, 25.98976278, 26.82754075,
28.10739016, 28.92871 , 30.3450331 , 31.198632 , 31.393016 ,
29.03375298, 28.03485887, 27.69400952, 26.92709849, 26.50103681,
25.6308712 , 25.71302142, 26.37022325, 26.86312462, 27.1095753 ,
26.24894775, 25.53737989, 25.14206441, 25.54872097, 25.46657074,
24.66768584, 24.07674586, 24.02978426, 23.96338245, 24.38134843,
25.12204718, 24.90359459, 23.00320226, 21.83340785, 22.6043028 ,
22.47133632, 22.53781956, 23.06968551, 24.31168743, 24.10270444,
25.48613482, 26.81101353, 28.30458823, 29.56959776, 31.07179658,
32.86009128, 32.9422415 , 34.76663349, 36.97611702, 38.69329035,
37.41735946, 35.24244789, 36.22825063, 36.47470132, 35.42026684,
35.62143157, 34.96981974, 35.30260232, 34.9967378 , 33.45785341,
30.40532408, 31.07305291, 32.03971234, 30.68455939, 27.96193077,
26.26219531, 24.93121633, 22.58555275, 20.74381923, 19.55033922,
19.80828016, 19.29609575, 16.64897793, 16.2869977 , 24.21552477,
29.26536385, 30.21546428, 30.54937847, 30.79934005, 29.351984 ,
25.27839959, 21.26788592, 19.59116462, 20.92110978, 21.48654517,
22.062584 , 23.71468158, 24.24402715, 24.24402715, 25.75513294,
26.0875568 , 24.227869 , 21.17963743, 15.81304598, 8.32542946,
3.81990823, 2.33224129]), "knot"),
'site_info': {'site-id': 'KAPX',
'site-name': 'Gaylord',
'site-lctn': 'MI',
'site-latlon': [44.91, -84.72],
'site-elv': 447.7,
'source': 'RAOB OBSERVED PROFILE',
'model': 'no-model',
'fcst-hour': 'no-fcst-hour',
'run-time': ['none', 'none', 'none', 'none'],
'valid-time': ['2022', '05', '20', '18'],
'data-source': 'UNIV. OF WYOMING Β· WMO 72634 / ICAO KAPX / IGRA2 USM00072634 Β· RECORD 1996β2026 (ACTIVE)'},
'titles': {'top_title': 'RAOB OBSERVED VERTICAL PROFILE',
'left_title': 'VALID: 05-20-2022 18Z',
'right_title': 'KAPX - Gaylord, MI | 44.91, -84.72 '}}
Build a plot of our RAOB dataο
The functions:
spy.build_sounding(clean_data), &spy.build_hodograph()
[4]:
# first here we can make a sounding!
# radar='single' shows the nearest NEXRAD site's reflectivity on the map.
# The default radar mosaic only keeps about the last month, so it can't cover this date.
spy.build_sounding(clean_data, radar='single')
> SOUNDING PLOTTER FUNCTION
---------------------------------
> PREPARING DATA
> BUILDING SKEW-T LOG-P DIAGRAM
> BUILDING HODOGRAPH
> BUILDING MAP INSET
> RADAR SCAN FOUND: Site: KAPX Scan: 2022-05-20 | 18:02z
Ignoring fixed x limits to fulfill fixed data aspect with adjustable data limits.
Ignoring fixed x limits to fulfill fixed data aspect with adjustable data limits.
Ignoring fixed y limits to fulfill fixed data aspect with adjustable data limits.
> BUILDING ACCESSORY PLOTS
> PLOTTING SOUNDING PARAMETERS
> FIGURE LOADING...
> COMPLETE --------
> RUNTIME: 00:00:37
[5]:
spy.build_hodograph(clean_data, radar='single')
> HODOGRAPH PLOTTER FUNCTION --
-------------------------------
> PREPARING DATA
> BUILDING HODOGRAPH
> BUILDING MAP INSET
> RADAR SCAN FOUND: Site: KAPX Scan: 2022-05-20 | 18:02z
Ignoring fixed x limits to fulfill fixed data aspect with adjustable data limits.
> BUILDING ACCESSORY PLOTS
> PLOTTING PARAMETERS
> FIGURE LOADING...
> COMPLETE --------
> RUNTIME: 00:00:13
[ ]: