Skip to content

Commit b503240

Browse files
committed
deploy: b0067ee
1 parent 5c8debf commit b503240

File tree

55 files changed

+235
-528
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+235
-528
lines changed

README.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
<link rel="next" title="Synoptic Analysis" href="notebooks/synoptic/index.html" />
8181
<meta name="viewport" content="width=device-width, initial-scale=1"/>
8282
<meta name="docsearch:language" content="en"/>
83-
<meta name="docbuild:last-update" content="14 June 2024"/>
83+
<meta name="docbuild:last-update" content="17 June 2024"/>
8484
</head>
8585

8686

@@ -811,7 +811,7 @@ <h3>Running on Your Own Machine<a class="headerlink" href="#running-on-your-own-
811811

812812
<div class="footer-item">
813813
<p class="last-updated">
814-
Last updated on 14 June 2024.
814+
Last updated on 17 June 2024.
815815
<br/>
816816
</p>
817817
</div>
@@ -865,7 +865,7 @@ <h3>Running on Your Own Machine<a class="headerlink" href="#running-on-your-own-
865865

866866
By MetPy Maintainers.
867867

868-
Last updated on 14 June 2024.
868+
Last updated on 17 June 2024.
869869
</p>
870870
</div>
871871
</div>
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

_sources/notebooks/synoptic/Upperair_Obs.ipynb

Lines changed: 2 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"import numpy as np\n",
3939
"import xarray as xr\n",
4040
"\n",
41+
"from metpy.io import add_station_lat_lon\n",
4142
"from metpy.plots import StationPlot\n",
4243
"from metpy.units import units\n",
4344
"from siphon.simplewebservice.iastate import IAStateUpperAir"
@@ -123,119 +124,6 @@
123124
" marker='x', color='black', transform=transform)"
124125
]
125126
},
126-
{
127-
"cell_type": "markdown",
128-
"metadata": {
129-
"cell_marker": "######################################################################"
130-
},
131-
"source": [
132-
"Station Information\n",
133-
"-------------------\n",
134-
"\n",
135-
"A helper function for obtaining radiosonde station information (e.g.,\n",
136-
"latitude/longitude) requried to plot data obtained from each station.\n",
137-
"Original code by github user sgdecker."
138-
]
139-
},
140-
{
141-
"cell_type": "code",
142-
"execution_count": null,
143-
"metadata": {
144-
"lines_to_next_cell": 1
145-
},
146-
"outputs": [],
147-
"source": [
148-
"def station_info(stid):\n",
149-
" r\"\"\"Provide information about weather stations.\n",
150-
"\n",
151-
" Parameters\n",
152-
" ----------\n",
153-
" stid: str or iterable object containing strs\n",
154-
" The ICAO or IATA code(s) for which station information is requested.\n",
155-
" with_units: bool\n",
156-
" Whether to include units for values that have them. Default True.\n",
157-
"\n",
158-
" Returns\n",
159-
" -------\n",
160-
" info: dict\n",
161-
" Information about the station(s) within a dictionary with these keys:\n",
162-
" 'state': Two-character ID of the state/province where the station is located,\n",
163-
" if applicable\n",
164-
" 'name': The name of the station\n",
165-
" 'lat': The latitude of the station [deg]\n",
166-
" 'lon': The longitude of the station [deg]\n",
167-
" 'elevation': The elevation of the station [m]\n",
168-
" 'country': Two-character ID of the country where the station is located\n",
169-
"\n",
170-
" Modified code from Steven Decker, Rutgers University\n",
171-
"\n",
172-
" \"\"\"\n",
173-
" # Provide a helper function for later usage\n",
174-
" def str2latlon(s):\n",
175-
" deg = float(s[:3])\n",
176-
" mn = float(s[-3:-1])\n",
177-
" if s[-1] == 'S' or s[-1] == 'W':\n",
178-
" deg = -deg\n",
179-
" mn = -mn\n",
180-
" return deg + mn / 60.\n",
181-
"\n",
182-
" # Various constants describing the underlying data\n",
183-
" url = 'https://www.aviationweather.gov/docs/metar/stations.txt'\n",
184-
" # file = 'stations.txt'\n",
185-
" state_bnds = slice(0, 2)\n",
186-
" name_bnds = slice(3, 19)\n",
187-
" icao_bnds = slice(20, 24)\n",
188-
" iata_bnds = slice(26, 29)\n",
189-
" lat_bnds = slice(39, 45)\n",
190-
" lon_bnds = slice(47, 54)\n",
191-
" z_bnds = slice(55, 59)\n",
192-
" cntry_bnds = slice(81, 83)\n",
193-
"\n",
194-
" # Generalize to any number of IDs\n",
195-
" if isinstance(stid, str):\n",
196-
" stid = [stid]\n",
197-
"\n",
198-
" # Get the station dataset\n",
199-
" infile = urllib.request.urlopen(url)\n",
200-
" data = infile.readlines()\n",
201-
"\n",
202-
" state = []\n",
203-
" name = []\n",
204-
" lat = []\n",
205-
" lon = []\n",
206-
" z = []\n",
207-
" cntry = []\n",
208-
"\n",
209-
" for s in stid:\n",
210-
" s = s.upper()\n",
211-
" for line_bytes in data:\n",
212-
" line = line_bytes.decode('UTF-8')\n",
213-
" icao = line[icao_bnds]\n",
214-
" iata = line[iata_bnds]\n",
215-
" if len(s) == 3 and s in iata or len(s) == 4 and s in icao:\n",
216-
" state.append(line[state_bnds].strip())\n",
217-
" name.append(line[name_bnds].strip())\n",
218-
" lat.append(str2latlon(line[lat_bnds]))\n",
219-
" lon.append(str2latlon(line[lon_bnds]))\n",
220-
" z.append(float(line[z_bnds]))\n",
221-
" cntry.append(line[cntry_bnds])\n",
222-
"\n",
223-
" break\n",
224-
" else:\n",
225-
" state.append('NA')\n",
226-
" name.append('NA')\n",
227-
" lat.append(np.nan)\n",
228-
" lon.append(np.nan)\n",
229-
" z.append(np.nan)\n",
230-
" cntry.append('NA')\n",
231-
"\n",
232-
" infile.close()\n",
233-
"\n",
234-
" return {'state': np.array(state), 'name': np.array(name), 'lat': np.array(lat),\n",
235-
" 'lon': np.array(lon), 'elevation': np.array(z), 'country': np.array(cntry),\n",
236-
" 'units': {'lat': 'deg', 'lon': 'deg', 'z': 'm'}}"
237-
]
238-
},
239127
{
240128
"cell_type": "markdown",
241129
"metadata": {
@@ -312,9 +200,7 @@
312200
"df = data[data_subset]\n",
313201
"\n",
314202
"# Get station lat/lon from look-up file; add to Dataframe\n",
315-
"stn_info = station_info(list(df.station.values))\n",
316-
"df.insert(10, 'latitude', stn_info['lat'])\n",
317-
"df.insert(11, 'longitude', stn_info['lon'])"
203+
"df = add_station_lat_lon(df)"
318204
]
319205
},
320206
{

genindex.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<link rel="search" title="Search" href="search.html" />
7777
<meta name="viewport" content="width=device-width, initial-scale=1"/>
7878
<meta name="docsearch:language" content="en"/>
79-
<meta name="docbuild:last-update" content="14 June 2024"/>
79+
<meta name="docbuild:last-update" content="17 June 2024"/>
8080
</head>
8181

8282

@@ -600,7 +600,7 @@ <h1 id="index">Index</h1>
600600

601601
<div class="footer-item">
602602
<p class="last-updated">
603-
Last updated on 14 June 2024.
603+
Last updated on 17 June 2024.
604604
<br/>
605605
</p>
606606
</div>
@@ -654,7 +654,7 @@ <h1 id="index">Index</h1>
654654

655655
By MetPy Maintainers.
656656

657-
Last updated on 14 June 2024.
657+
Last updated on 17 June 2024.
658658
</p>
659659
</div>
660660
</div>

notebooks/convective/MUCAPE.html

Lines changed: 18 additions & 18 deletions
Large diffs are not rendered by default.

notebooks/convective/TCPW.html

Lines changed: 17 additions & 17 deletions
Large diffs are not rendered by default.

notebooks/convective/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<link rel="prev" title="Sounding Plotter" href="../skewt/Sounding_Plotter.html" />
8080
<meta name="viewport" content="width=device-width, initial-scale=1"/>
8181
<meta name="docsearch:language" content="en"/>
82-
<meta name="docbuild:last-update" content="14 June 2024"/>
82+
<meta name="docbuild:last-update" content="17 June 2024"/>
8383
</head>
8484

8585

@@ -703,7 +703,7 @@ <h1>Convective Calculations<a class="headerlink" href="#convective-calculations"
703703

704704
<div class="footer-item">
705705
<p class="last-updated">
706-
Last updated on 14 June 2024.
706+
Last updated on 17 June 2024.
707707
<br/>
708708
</p>
709709
</div>
@@ -757,7 +757,7 @@ <h1>Convective Calculations<a class="headerlink" href="#convective-calculations"
757757

758758
By MetPy Maintainers.
759759

760-
Last updated on 14 June 2024.
760+
Last updated on 17 June 2024.
761761
</p>
762762
</div>
763763
</div>

notebooks/convective/miller_composite.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<link rel="prev" title="Total Column Precipitable Water (TCPW)" href="TCPW.html" />
8080
<meta name="viewport" content="width=device-width, initial-scale=1"/>
8181
<meta name="docsearch:language" content="en"/>
82-
<meta name="docbuild:last-update" content="14 June 2024"/>
82+
<meta name="docbuild:last-update" content="17 June 2024"/>
8383
</head>
8484

8585

@@ -591,9 +591,9 @@ <h1>Miller Composite Chart<a class="headerlink" href="#miller-composite-chart" t
591591
</div>
592592
</div>
593593
<div class="cell_output docutils container">
594-
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_2455/1703524492.py:2: UserWarning: Vertical dimension number not found. Defaulting to (..., Z, Y, X) order.
594+
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_2444/1703524492.py:2: UserWarning: Vertical dimension number not found. Defaulting to (..., Z, Y, X) order.
595595
vort_adv_500 = mpcalc.advection(avor_500, u_500, v_500,) * 1e9
596-
/tmp/ipykernel_2455/1703524492.py:2: UserWarning: Latitude and longitude computed on-demand, which may be an expensive operation. To avoid repeating this computation, assign these coordinates ahead of time with .metpy.assign_latitude_longitude().
596+
/tmp/ipykernel_2444/1703524492.py:2: UserWarning: Latitude and longitude computed on-demand, which may be an expensive operation. To avoid repeating this computation, assign these coordinates ahead of time with .metpy.assign_latitude_longitude().
597597
vort_adv_500 = mpcalc.advection(avor_500, u_500, v_500,) * 1e9
598598
</pre></div>
599599
</div>
@@ -1047,7 +1047,7 @@ <h1>Miller Composite Chart<a class="headerlink" href="#miller-composite-chart" t
10471047

10481048
<div class="footer-item">
10491049
<p class="last-updated">
1050-
Last updated on 14 June 2024.
1050+
Last updated on 17 June 2024.
10511051
<br/>
10521052
</p>
10531053
</div>
@@ -1101,7 +1101,7 @@ <h1>Miller Composite Chart<a class="headerlink" href="#miller-composite-chart" t
11011101

11021102
By MetPy Maintainers.
11031103

1104-
Last updated on 14 June 2024.
1104+
Last updated on 17 June 2024.
11051105
</p>
11061106
</div>
11071107
</div>

notebooks/declarative/Declarative_300hPa.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<link rel="prev" title="MetPy’s Simplified Plotting Interface" href="index.html" />
8080
<meta name="viewport" content="width=device-width, initial-scale=1"/>
8181
<meta name="docsearch:language" content="en"/>
82-
<meta name="docbuild:last-update" content="14 June 2024"/>
82+
<meta name="docbuild:last-update" content="17 June 2024"/>
8383
</head>
8484

8585

@@ -885,7 +885,7 @@ <h2>Declarative Plot<a class="headerlink" href="#declarative-plot" title="Link t
885885

886886
<div class="footer-item">
887887
<p class="last-updated">
888-
Last updated on 14 June 2024.
888+
Last updated on 17 June 2024.
889889
<br/>
890890
</p>
891891
</div>
@@ -939,7 +939,7 @@ <h2>Declarative Plot<a class="headerlink" href="#declarative-plot" title="Link t
939939

940940
By MetPy Maintainers.
941941

942-
Last updated on 14 June 2024.
942+
Last updated on 17 June 2024.
943943
</p>
944944
</div>
945945
</div>

notebooks/declarative/declarative_500_hPa.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
<link rel="prev" title="MetPy Declarative - 300 hPa" href="Declarative_300hPa.html" />
7979
<meta name="viewport" content="width=device-width, initial-scale=1"/>
8080
<meta name="docsearch:language" content="en"/>
81-
<meta name="docbuild:last-update" content="14 June 2024"/>
81+
<meta name="docbuild:last-update" content="17 June 2024"/>
8282
</head>
8383

8484

@@ -842,7 +842,7 @@ <h2>The Plot<a class="headerlink" href="#the-plot" title="Link to this heading">
842842

843843
<div class="footer-item">
844844
<p class="last-updated">
845-
Last updated on 14 June 2024.
845+
Last updated on 17 June 2024.
846846
<br/>
847847
</p>
848848
</div>
@@ -896,7 +896,7 @@ <h2>The Plot<a class="headerlink" href="#the-plot" title="Link to this heading">
896896

897897
By MetPy Maintainers.
898898

899-
Last updated on 14 June 2024.
899+
Last updated on 17 June 2024.
900900
</p>
901901
</div>
902902
</div>

notebooks/declarative/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<link rel="prev" title="Smoothing Contours" href="../specialty/Smoothing_Contours.html" />
8080
<meta name="viewport" content="width=device-width, initial-scale=1"/>
8181
<meta name="docsearch:language" content="en"/>
82-
<meta name="docbuild:last-update" content="14 June 2024"/>
82+
<meta name="docbuild:last-update" content="17 June 2024"/>
8383
</head>
8484

8585

@@ -703,7 +703,7 @@ <h1>MetPy’s Simplified Plotting Interface<a class="headerlink" href="#metpys-s
703703

704704
<div class="footer-item">
705705
<p class="last-updated">
706-
Last updated on 14 June 2024.
706+
Last updated on 17 June 2024.
707707
<br/>
708708
</p>
709709
</div>
@@ -757,7 +757,7 @@ <h1>MetPy’s Simplified Plotting Interface<a class="headerlink" href="#metpys-s
757757

758758
By MetPy Maintainers.
759759

760-
Last updated on 14 June 2024.
760+
Last updated on 17 June 2024.
761761
</p>
762762
</div>
763763
</div>

notebooks/skewt/Advanced_Sounding.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<link rel="prev" title="Skew-T Analysis" href="index.html" />
8080
<meta name="viewport" content="width=device-width, initial-scale=1"/>
8181
<meta name="docsearch:language" content="en"/>
82-
<meta name="docbuild:last-update" content="14 June 2024"/>
82+
<meta name="docbuild:last-update" content="17 June 2024"/>
8383
</head>
8484

8585

@@ -879,7 +879,7 @@ <h2>Create Sounding Plot<a class="headerlink" href="#create-sounding-plot" title
879879

880880
<div class="footer-item">
881881
<p class="last-updated">
882-
Last updated on 14 June 2024.
882+
Last updated on 17 June 2024.
883883
<br/>
884884
</p>
885885
</div>
@@ -933,7 +933,7 @@ <h2>Create Sounding Plot<a class="headerlink" href="#create-sounding-plot" title
933933

934934
By MetPy Maintainers.
935935

936-
Last updated on 14 June 2024.
936+
Last updated on 17 June 2024.
937937
</p>
938938
</div>
939939
</div>

notebooks/skewt/Foundational_Sounding.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
<link rel="prev" title="Advanced Sounding" href="Advanced_Sounding.html" />
8282
<meta name="viewport" content="width=device-width, initial-scale=1"/>
8383
<meta name="docsearch:language" content="en"/>
84-
<meta name="docbuild:last-update" content="14 June 2024"/>
84+
<meta name="docbuild:last-update" content="17 June 2024"/>
8585
</head>
8686

8787

@@ -1182,7 +1182,7 @@ <h2>Resources and references<a class="headerlink" href="#resources-and-reference
11821182

11831183
<div class="footer-item">
11841184
<p class="last-updated">
1185-
Last updated on 14 June 2024.
1185+
Last updated on 17 June 2024.
11861186
<br/>
11871187
</p>
11881188
</div>
@@ -1236,7 +1236,7 @@ <h2>Resources and references<a class="headerlink" href="#resources-and-reference
12361236

12371237
By MetPy Maintainers.
12381238

1239-
Last updated on 14 June 2024.
1239+
Last updated on 17 June 2024.
12401240
</p>
12411241
</div>
12421242
</div>

0 commit comments

Comments
 (0)