Skip to content

Commit

Permalink
Deploy dev to GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dopplershift committed Dec 28, 2023
1 parent 92ce03f commit d2ae34f
Show file tree
Hide file tree
Showing 381 changed files with 2,521 additions and 1,230 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ def effective_layer(p, t, td, h, height_layer=False):
sped = df['speed'].values * units.knot
height = df['height'].values * units.meter

###########################################
# Compute needed variables from our data file and attach units
relhum = mpcalc.relative_humidity_from_dewpoint(T, Td)
mixrat = mpcalc.mixing_ratio_from_relative_humidity(p, T, relhum)

###########################################
# Compute the wind components
u, v = mpcalc.wind_components(sped, wdir)
Expand All @@ -96,6 +101,7 @@ def effective_layer(p, t, td, h, height_layer=False):
# Compute common sounding index parameters
ctotals = mpcalc.cross_totals(p, T, Td)
kindex = mpcalc.k_index(p, T, Td)
gdi = mpcalc.galvez_davison_index(p, T, mixrat, p[0])
showalter = mpcalc.showalter_index(p, T, Td)
total_totals = mpcalc.total_totals_index(p, T, Td)
vert_totals = mpcalc.vertical_totals(p, T)
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,24 @@
"p = df['pressure'].values * units.hPa\nT = df['temperature'].values * units.degC\nTd = df['dewpoint'].values * units.degC\nwdir = df['direction'].values * units.degree\nsped = df['speed'].values * units.knot\nheight = df['height'].values * units.meter"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Compute needed variables from our data file and attach units\n\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"relhum = mpcalc.relative_humidity_from_dewpoint(T, Td)\nmixrat = mpcalc.mixing_ratio_from_relative_humidity(p, T, relhum)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -105,7 +123,7 @@
},
"outputs": [],
"source": [
"ctotals = mpcalc.cross_totals(p, T, Td)\nkindex = mpcalc.k_index(p, T, Td)\nshowalter = mpcalc.showalter_index(p, T, Td)\ntotal_totals = mpcalc.total_totals_index(p, T, Td)\nvert_totals = mpcalc.vertical_totals(p, T)"
"ctotals = mpcalc.cross_totals(p, T, Td)\nkindex = mpcalc.k_index(p, T, Td)\ngdi = mpcalc.galvez_davison_index(p, T, mixrat, p[0])\nshowalter = mpcalc.showalter_index(p, T, Td)\ntotal_totals = mpcalc.total_totals_index(p, T, Td)\nvert_totals = mpcalc.vertical_totals(p, T)"
]
},
{
Expand Down
Binary file modified dev/_downloads/bc82bea3a5dd7bdba60b65220891d9e5/examples_python.zip
Binary file not shown.
Binary file not shown.
12 changes: 12 additions & 0 deletions dev/_sources/api/generated/metpy.calc.galvez_davison_index.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
galvez_davison_index
===============================

.. currentmodule:: metpy.calc

.. autofunction:: galvez_davison_index

.. include:: metpy.calc.galvez_davison_index.examples

.. raw:: html

<div style='clear:both'></div>
1 change: 1 addition & 0 deletions dev/_sources/api/generated/metpy.calc.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ Soundings
cross_totals
downdraft_cape
el
galvez_davison_index
k_index
lcl
lfc
Expand Down
4 changes: 4 additions & 0 deletions dev/_sources/api/references.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ References
Services and Supporting Research, 2003.
`FCM-R19-2003 <../_static/FCM-R19-2003-WindchillReport.pdf>`_, 75 pp.
.. [Galvez2015] Galvez, J. M. and Michel Davison, 2015. “The Gálvez-Davison Index for Tropical
Convection.” `GDI_Manuscript_V20161021
<https://www.wpc.ncep.noaa.gov/international/gdi/GDI_Manuscript_V20161021.pdf>`_.
.. [Galway1956] Galway, J. G., 1956: The Lifted Index as a Predictor of Latent Instability.
*American Meteorology Society*,
doi:`10.1175/1520-0477-37.10.528
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Create a new figure. The dimensions here give a good aspect ratio
.. code-block:: none
[<matplotlib.lines.Line2D object at 0x7fce84e54510>]
[<matplotlib.lines.Line2D object at 0x7ff5f2eab1d0>]
Expand Down Expand Up @@ -429,7 +429,7 @@ try another Skew-T with a few more advanced features:

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.800 seconds)
**Total running time of the script:** (0 minutes 0.808 seconds)


.. _sphx_glr_download_examples_Advanced_Sounding_With_Complex_Layout.py:
Expand Down
2 changes: 1 addition & 1 deletion dev/_sources/examples/Four_Panel_Map.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ By reading model output data from a netCDF file, we can create a four panel plot

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 9.122 seconds)
**Total running time of the script:** (0 minutes 9.030 seconds)


.. _sphx_glr_download_examples_Four_Panel_Map.py:
Expand Down
2 changes: 1 addition & 1 deletion dev/_sources/examples/XArray_Projections.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ data on a map using CartoPy.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 9.732 seconds)
**Total running time of the script:** (0 minutes 9.740 seconds)


.. _sphx_glr_download_examples_XArray_Projections.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Dataset and plotting using Matplotlib.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.175 seconds)
**Total running time of the script:** (0 minutes 0.172 seconds)


.. _sphx_glr_download_examples_calculations_Absolute_Vorticity.py:
Expand Down
2 changes: 1 addition & 1 deletion dev/_sources/examples/calculations/Advection.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ the example xarray Dataset and plotting using Matplotlib.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.131 seconds)
**Total running time of the script:** (0 minutes 0.164 seconds)


.. _sphx_glr_download_examples_calculations_Advection.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ And print the corresponding dewpoint
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.004 seconds)
**Total running time of the script:** (0 minutes 0.005 seconds)


.. _sphx_glr_download_examples_calculations_Dewpoint_and_Mixing_Ratio.py:
Expand Down
2 changes: 1 addition & 1 deletion dev/_sources/examples/calculations/Divergence.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Dataset and plotting using Matplotlib.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.129 seconds)
**Total running time of the script:** (0 minutes 0.151 seconds)


.. _sphx_glr_download_examples_calculations_Divergence.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Use the layer defined above and plot the equivalent potential temperature

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.072 seconds)
**Total running time of the script:** (0 minutes 0.093 seconds)


.. _sphx_glr_download_examples_calculations_Equivalent_Potential_Temperature.py:
Expand Down
2 changes: 1 addition & 1 deletion dev/_sources/examples/calculations/QVector.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Dataset and plotting using Matplotlib.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.194 seconds)
**Total running time of the script:** (0 minutes 0.220 seconds)


.. _sphx_glr_download_examples_calculations_QVector.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Dataset and plotting using Matplotlib.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.144 seconds)
**Total running time of the script:** (0 minutes 0.170 seconds)


.. _sphx_glr_download_examples_calculations_Shearing_Deformation.py:
Expand Down
2 changes: 1 addition & 1 deletion dev/_sources/examples/calculations/Smoothing.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Now, create a grid showing different smoothing options

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.512 seconds)
**Total running time of the script:** (0 minutes 0.561 seconds)


.. _sphx_glr_download_examples_calculations_Smoothing.py:
Expand Down
63 changes: 41 additions & 22 deletions dev/_sources/examples/calculations/Sounding_Calculations.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,27 @@ Isolate needed variables from our data file and attach units
.. GENERATED FROM PYTHON SOURCE LINES 92-93
Compute needed variables from our data file and attach units

.. GENERATED FROM PYTHON SOURCE LINES 93-96
.. code-block:: Python
relhum = mpcalc.relative_humidity_from_dewpoint(T, Td)
mixrat = mpcalc.mixing_ratio_from_relative_humidity(p, T, relhum)
.. GENERATED FROM PYTHON SOURCE LINES 97-98
Compute the wind components

.. GENERATED FROM PYTHON SOURCE LINES 93-95
.. GENERATED FROM PYTHON SOURCE LINES 98-100
.. code-block:: Python
Expand All @@ -171,16 +189,17 @@ Compute the wind components
.. GENERATED FROM PYTHON SOURCE LINES 96-97
.. GENERATED FROM PYTHON SOURCE LINES 101-102
Compute common sounding index parameters

.. GENERATED FROM PYTHON SOURCE LINES 97-103
.. GENERATED FROM PYTHON SOURCE LINES 102-109
.. code-block:: Python
ctotals = mpcalc.cross_totals(p, T, Td)
kindex = mpcalc.k_index(p, T, Td)
gdi = mpcalc.galvez_davison_index(p, T, mixrat, p[0])
showalter = mpcalc.showalter_index(p, T, Td)
total_totals = mpcalc.total_totals_index(p, T, Td)
vert_totals = mpcalc.vertical_totals(p, T)
Expand All @@ -192,11 +211,11 @@ Compute common sounding index parameters
.. GENERATED FROM PYTHON SOURCE LINES 104-105
.. GENERATED FROM PYTHON SOURCE LINES 110-111
Compture the parcel profile for a surface-based parcel

.. GENERATED FROM PYTHON SOURCE LINES 105-107
.. GENERATED FROM PYTHON SOURCE LINES 111-113
.. code-block:: Python
Expand All @@ -209,11 +228,11 @@ Compture the parcel profile for a surface-based parcel
.. GENERATED FROM PYTHON SOURCE LINES 108-109
.. GENERATED FROM PYTHON SOURCE LINES 114-115
Compute the corresponding LI, CAPE, CIN values for a surface parcel

.. GENERATED FROM PYTHON SOURCE LINES 109-112
.. GENERATED FROM PYTHON SOURCE LINES 115-118
.. code-block:: Python
Expand All @@ -227,11 +246,11 @@ Compute the corresponding LI, CAPE, CIN values for a surface parcel
.. GENERATED FROM PYTHON SOURCE LINES 113-114
.. GENERATED FROM PYTHON SOURCE LINES 119-120
Determine the LCL, LFC, and EL for our surface parcel

.. GENERATED FROM PYTHON SOURCE LINES 114-118
.. GENERATED FROM PYTHON SOURCE LINES 120-124
.. code-block:: Python
Expand All @@ -246,11 +265,11 @@ Determine the LCL, LFC, and EL for our surface parcel
.. GENERATED FROM PYTHON SOURCE LINES 119-120
.. GENERATED FROM PYTHON SOURCE LINES 125-126
Compute the characteristics of a mean layer parcel (50-hPa depth)

.. GENERATED FROM PYTHON SOURCE LINES 120-124
.. GENERATED FROM PYTHON SOURCE LINES 126-130
.. code-block:: Python
Expand All @@ -265,11 +284,11 @@ Compute the characteristics of a mean layer parcel (50-hPa depth)
.. GENERATED FROM PYTHON SOURCE LINES 125-126
.. GENERATED FROM PYTHON SOURCE LINES 131-132
Compute the characteristics of the most unstable parcel (50-hPa depth)

.. GENERATED FROM PYTHON SOURCE LINES 126-129
.. GENERATED FROM PYTHON SOURCE LINES 132-135
.. code-block:: Python
Expand All @@ -283,11 +302,11 @@ Compute the characteristics of the most unstable parcel (50-hPa depth)
.. GENERATED FROM PYTHON SOURCE LINES 130-131
.. GENERATED FROM PYTHON SOURCE LINES 136-137
Compute the Bunkers Storm Motion vector and use to calculate the critical angle

.. GENERATED FROM PYTHON SOURCE LINES 131-134
.. GENERATED FROM PYTHON SOURCE LINES 137-140
.. code-block:: Python
Expand All @@ -301,11 +320,11 @@ Compute the Bunkers Storm Motion vector and use to calculate the critical angle
.. GENERATED FROM PYTHON SOURCE LINES 135-136
.. GENERATED FROM PYTHON SOURCE LINES 141-142
Work on the calculations needed to compute the significant tornado parameter

.. GENERATED FROM PYTHON SOURCE LINES 136-157
.. GENERATED FROM PYTHON SOURCE LINES 142-163
.. code-block:: Python
Expand Down Expand Up @@ -337,11 +356,11 @@ Work on the calculations needed to compute the significant tornado parameter
.. GENERATED FROM PYTHON SOURCE LINES 158-159
.. GENERATED FROM PYTHON SOURCE LINES 164-165
Compute the supercell composite parameter, if possible

.. GENERATED FROM PYTHON SOURCE LINES 159-173
.. GENERATED FROM PYTHON SOURCE LINES 165-179
.. code-block:: Python
Expand All @@ -366,11 +385,11 @@ Compute the supercell composite parameter, if possible
.. GENERATED FROM PYTHON SOURCE LINES 174-175
.. GENERATED FROM PYTHON SOURCE LINES 180-181
Print Important Sounding Parameters

.. GENERATED FROM PYTHON SOURCE LINES 175-211
.. GENERATED FROM PYTHON SOURCE LINES 181-217
.. code-block:: Python
Expand Down Expand Up @@ -461,7 +480,7 @@ Print Important Sounding Parameters
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.250 seconds)
**Total running time of the script:** (0 minutes 0.255 seconds)


.. _sphx_glr_download_examples_calculations_Sounding_Calculations.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Dataset and plotting using Matplotlib.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.142 seconds)
**Total running time of the script:** (0 minutes 0.169 seconds)


.. _sphx_glr_download_examples_calculations_Stretching_Deformation.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Dataset and plotting using Matplotlib.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.176 seconds)
**Total running time of the script:** (0 minutes 0.175 seconds)


.. _sphx_glr_download_examples_calculations_Total_Deformation.py:
Expand Down
Loading

0 comments on commit d2ae34f

Please sign in to comment.