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 Jul 17, 2023
1 parent 41c9e6d commit 8bbbfe6
Show file tree
Hide file tree
Showing 133 changed files with 995 additions and 770 deletions.
Binary file not shown.
20 changes: 20 additions & 0 deletions dev/_downloads/5efd259fad2625b979995a43ebbb8b81/unit_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,26 @@
# operation can be performed:
print(3 * units.inch + 5 * units.cm)

#########################################################################
# ``pint`` by default will print full unit names for :class:`~pint.Quantity`.
print(f'{20 * units.meter ** 2}')

#########################################################################
# This can be reduced to symbolic by specifying a compact (~) formatter:
print(f'{20 * units.meter ** 2:~}')

#########################################################################
# A compact (~), pretty (P) formatter:
print(f'{20 * units.meter ** 2:~P}')

#########################################################################
# Place formatters following other print specifications:
print(f'{20 * units.meter ** 2:0.3f~P}')

#########################################################################
# Other string formatting options are available, see the `Pint string formatting specification
# <https://pint.readthedocs.io/en/stable/user/formatting.html>`_.

#########################################################################
# Converting Units
# ----------------
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,85 @@
"print(3 * units.inch + 5 * units.cm)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"``pint`` by default will print full unit names for :class:`~pint.Quantity`.\n\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"print(f'{20 * units.meter ** 2}')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"This can be reduced to symbolic by specifying a compact (~) formatter:\n\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"print(f'{20 * units.meter ** 2:~}')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"A compact (~), pretty (P) formatter:\n\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"print(f'{20 * units.meter ** 2:~P}')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Place formatters following other print specifications:\n\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"print(f'{20 * units.meter ** 2:0.3f~P}')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Other string formatting options are available, see the [Pint string formatting specification](https://pint.readthedocs.io/en/stable/user/formatting.html).\n\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion dev/_sources/examples/Advanced_Sounding.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ Create a new figure. The dimensions here give a good aspect ratio.

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

**Total running time of the script:** ( 0 minutes 0.233 seconds)
**Total running time of the script:** ( 0 minutes 0.218 seconds)


.. _sphx_glr_download_examples_Advanced_Sounding.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 5.558 seconds)
**Total running time of the script:** ( 0 minutes 5.215 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 5.488 seconds)
**Total running time of the script:** ( 0 minutes 5.109 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.244 seconds)
**Total running time of the script:** ( 0 minutes 0.227 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.157 seconds)
**Total running time of the script:** ( 0 minutes 0.146 seconds)


.. _sphx_glr_download_examples_calculations_Advection.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ If you want the unabbrieviated version, input full=True
.. rst-class:: sphx-glr-timing

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


.. _sphx_glr_download_examples_calculations_Angle_to_Direction.py:
Expand Down
2 changes: 1 addition & 1 deletion dev/_sources/examples/calculations/Bulk_Shear.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Compute the bulk shear for the lowest three km
.. rst-class:: sphx-glr-timing

**Total running time of the script:** ( 0 minutes 0.014 seconds)
**Total running time of the script:** ( 0 minutes 0.013 seconds)


.. _sphx_glr_download_examples_calculations_Bulk_Shear.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.006 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.169 seconds)
**Total running time of the script:** ( 0 minutes 0.160 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.097 seconds)
**Total running time of the script:** ( 0 minutes 0.090 seconds)


.. _sphx_glr_download_examples_calculations_Equivalent_Potential_Temperature.py:
Expand Down
2 changes: 1 addition & 1 deletion dev/_sources/examples/calculations/Gradient.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Finally, the deltas can be arrays for unevenly spaced data.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** ( 0 minutes 0.017 seconds)
**Total running time of the script:** ( 0 minutes 0.016 seconds)


.. _sphx_glr_download_examples_calculations_Gradient.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ Calculate the mean pressure weighted temperature over a depth of 500 hPa
.. rst-class:: sphx-glr-timing

**Total running time of the script:** ( 0 minutes 0.014 seconds)
**Total running time of the script:** ( 0 minutes 0.012 seconds)


.. _sphx_glr_download_examples_calculations_Mean_Pressure_Weighted.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ parcel

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

**Total running time of the script:** ( 0 minutes 0.008 seconds)
**Total running time of the script:** ( 0 minutes 0.007 seconds)


.. _sphx_glr_download_examples_calculations_Mountain_Problem.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.189 seconds)
**Total running time of the script:** ( 0 minutes 0.174 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.240 seconds)
**Total running time of the script:** ( 0 minutes 0.226 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.703 seconds)
**Total running time of the script:** ( 0 minutes 0.688 seconds)


.. _sphx_glr_download_examples_calculations_Smoothing.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ Print Important Sounding Parameters
.. rst-class:: sphx-glr-timing

**Total running time of the script:** ( 0 minutes 0.331 seconds)
**Total running time of the script:** ( 0 minutes 0.310 seconds)


.. _sphx_glr_download_examples_calculations_Sounding_Calculations.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ Calculate the static stability and convert to K/Pa units
.. rst-class:: sphx-glr-timing

**Total running time of the script:** ( 0 minutes 0.011 seconds)
**Total running time of the script:** ( 0 minutes 0.010 seconds)


.. _sphx_glr_download_examples_calculations_Static_Stability.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.239 seconds)
**Total running time of the script:** ( 0 minutes 0.224 seconds)


.. _sphx_glr_download_examples_calculations_Stretching_Deformation.py:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ for the layer from the surface pressure to 500-hPa
.. rst-class:: sphx-glr-timing

**Total running time of the script:** ( 0 minutes 0.014 seconds)
**Total running time of the script:** ( 0 minutes 0.013 seconds)


.. _sphx_glr_download_examples_calculations_Thickness_Hydrostatic.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.243 seconds)
**Total running time of the script:** ( 0 minutes 0.226 seconds)


.. _sphx_glr_download_examples_calculations_Total_Deformation.py:
Expand Down
2 changes: 1 addition & 1 deletion dev/_sources/examples/calculations/Vorticity.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.243 seconds)
**Total running time of the script:** ( 0 minutes 0.228 seconds)


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

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


.. _sphx_glr_download_examples_calculations_Wind_Speed.py:
Expand Down
42 changes: 21 additions & 21 deletions dev/_sources/examples/calculations/sg_execution_times.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,48 +6,48 @@

Computation times
=================
**00:03.098** total execution time for **examples_calculations** files:
**00:02.922** total execution time for **examples_calculations** files:

+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_calculations_Smoothing.py` (``Smoothing.py``) | 00:00.703 | 0.0 MB |
| :ref:`sphx_glr_examples_calculations_Smoothing.py` (``Smoothing.py``) | 00:00.688 | 0.0 MB |
+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_calculations_Sounding_Calculations.py` (``Sounding_Calculations.py``) | 00:00.331 | 0.0 MB |
| :ref:`sphx_glr_examples_calculations_Sounding_Calculations.py` (``Sounding_Calculations.py``) | 00:00.310 | 0.0 MB |
+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_calculations_Absolute_Vorticity.py` (``Absolute_Vorticity.py``) | 00:00.244 | 0.0 MB |
| :ref:`sphx_glr_examples_calculations_Vorticity.py` (``Vorticity.py``) | 00:00.228 | 0.0 MB |
+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_calculations_Vorticity.py` (``Vorticity.py``) | 00:00.243 | 0.0 MB |
| :ref:`sphx_glr_examples_calculations_Absolute_Vorticity.py` (``Absolute_Vorticity.py``) | 00:00.227 | 0.0 MB |
+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_calculations_Total_Deformation.py` (``Total_Deformation.py``) | 00:00.243 | 0.0 MB |
| :ref:`sphx_glr_examples_calculations_Shearing_Deformation.py` (``Shearing_Deformation.py``) | 00:00.226 | 0.0 MB |
+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_calculations_Shearing_Deformation.py` (``Shearing_Deformation.py``) | 00:00.240 | 0.0 MB |
| :ref:`sphx_glr_examples_calculations_Total_Deformation.py` (``Total_Deformation.py``) | 00:00.226 | 0.0 MB |
+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_calculations_Stretching_Deformation.py` (``Stretching_Deformation.py``) | 00:00.239 | 0.0 MB |
| :ref:`sphx_glr_examples_calculations_Stretching_Deformation.py` (``Stretching_Deformation.py``) | 00:00.224 | 0.0 MB |
+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_calculations_QVector.py` (``QVector.py``) | 00:00.189 | 0.0 MB |
| :ref:`sphx_glr_examples_calculations_QVector.py` (``QVector.py``) | 00:00.174 | 0.0 MB |
+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_calculations_Divergence.py` (``Divergence.py``) | 00:00.169 | 0.0 MB |
| :ref:`sphx_glr_examples_calculations_Divergence.py` (``Divergence.py``) | 00:00.160 | 0.0 MB |
+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_calculations_Advection.py` (``Advection.py``) | 00:00.157 | 0.0 MB |
| :ref:`sphx_glr_examples_calculations_Advection.py` (``Advection.py``) | 00:00.146 | 0.0 MB |
+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_calculations_Wind_Speed.py` (``Wind_Speed.py``) | 00:00.152 | 0.0 MB |
| :ref:`sphx_glr_examples_calculations_Wind_Speed.py` (``Wind_Speed.py``) | 00:00.142 | 0.0 MB |
+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_calculations_Equivalent_Potential_Temperature.py` (``Equivalent_Potential_Temperature.py``) | 00:00.097 | 0.0 MB |
| :ref:`sphx_glr_examples_calculations_Equivalent_Potential_Temperature.py` (``Equivalent_Potential_Temperature.py``) | 00:00.090 | 0.0 MB |
+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_calculations_Gradient.py` (``Gradient.py``) | 00:00.017 | 0.0 MB |
| :ref:`sphx_glr_examples_calculations_Gradient.py` (``Gradient.py``) | 00:00.016 | 0.0 MB |
+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_calculations_Bulk_Shear.py` (``Bulk_Shear.py``) | 00:00.014 | 0.0 MB |
| :ref:`sphx_glr_examples_calculations_Bulk_Shear.py` (``Bulk_Shear.py``) | 00:00.013 | 0.0 MB |
+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_calculations_Thickness_Hydrostatic.py` (``Thickness_Hydrostatic.py``) | 00:00.014 | 0.0 MB |
| :ref:`sphx_glr_examples_calculations_Thickness_Hydrostatic.py` (``Thickness_Hydrostatic.py``) | 00:00.013 | 0.0 MB |
+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_calculations_Mean_Pressure_Weighted.py` (``Mean_Pressure_Weighted.py``) | 00:00.014 | 0.0 MB |
| :ref:`sphx_glr_examples_calculations_Mean_Pressure_Weighted.py` (``Mean_Pressure_Weighted.py``) | 00:00.012 | 0.0 MB |
+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_calculations_Static_Stability.py` (``Static_Stability.py``) | 00:00.011 | 0.0 MB |
| :ref:`sphx_glr_examples_calculations_Static_Stability.py` (``Static_Stability.py``) | 00:00.010 | 0.0 MB |
+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_calculations_Mountain_Problem.py` (``Mountain_Problem.py``) | 00:00.008 | 0.0 MB |
| :ref:`sphx_glr_examples_calculations_Mountain_Problem.py` (``Mountain_Problem.py``) | 00:00.007 | 0.0 MB |
+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_calculations_Dewpoint_and_Mixing_Ratio.py` (``Dewpoint_and_Mixing_Ratio.py``) | 00:00.006 | 0.0 MB |
| :ref:`sphx_glr_examples_calculations_Dewpoint_and_Mixing_Ratio.py` (``Dewpoint_and_Mixing_Ratio.py``) | 00:00.005 | 0.0 MB |
+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_calculations_Angle_to_Direction.py` (``Angle_to_Direction.py``) | 00:00.005 | 0.0 MB |
| :ref:`sphx_glr_examples_calculations_Angle_to_Direction.py` (``Angle_to_Direction.py``) | 00:00.004 | 0.0 MB |
+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_examples_calculations_Parse_Angles.py` (``Parse_Angles.py``) | 00:00.002 | 0.0 MB |
+---------------------------------------------------------------------------------------------------------------------+-----------+--------+
2 changes: 1 addition & 1 deletion dev/_sources/examples/cross_section.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ to ``ax.set_xticklabels`` to label lat/lon pairs, similar to the default NCL out

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

**Total running time of the script:** ( 0 minutes 4.786 seconds)
**Total running time of the script:** ( 0 minutes 4.627 seconds)


.. _sphx_glr_download_examples_cross_section.py:
Expand Down
Loading

0 comments on commit 8bbbfe6

Please sign in to comment.