forked from 3rdparty/wrf-python
50 changed files with 9547 additions and 1012 deletions
@ -0,0 +1,238 @@ |
|||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| Variable Name | Description | Available Units | Additional Keyword Arguments | |
||||||
|
+====================+===============================================================+=============================+===============================================================================================+ |
||||||
|
| avo | Absolute Vorticity | 10-5 s-1 | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| eth/theta_e | Equivalent Potential Temperature | K | **units** (str) : Set to desired units. Default is *'K'*. | |
||||||
|
| | | | | |
||||||
|
| | | degC | | |
||||||
|
| | | | | |
||||||
|
| | | degF | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| cape_2d | 2D cape (mcape/mcin/lcl/lfc) | J kg-1 ; J kg-1 ; m ; m | **missing** (float): Fill value for output only | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| cape_3d | 3D cape and cin | J kg-1 | **missing** (float): Fill value for output only | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| ctt | Cloud Top Temperature | degC | **units** (str) : Set to desired units. Default is *'degC'*. | |
||||||
|
| | | | | |
||||||
|
| | | K | | |
||||||
|
| | | | | |
||||||
|
| | | degF | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| cloudfrac | Cloud Fraction | % | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| dbz | Reflectivity | dBZ | **do_variant** (boolean): Set to True to enable variant calculation. Default is *False*. | |
||||||
|
| | | | | |
||||||
|
| | | | **do_liqskin** (boolean): Set to True to enable liquid skin calculation. Default is *False*. | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| mdbz | Maximum Reflectivity | dBZ | **do_variant** (boolean): Set to True to enable variant calculation. Default is *False*. | |
||||||
|
| | | | | |
||||||
|
| | | | **do_liqskin** (boolean): Set to True to enable liquid skin calculation. Default is *False*. | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| geopt/geopotential | Full Model Geopotential | m2 s-2 | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| helicity | Storm Relative Helicity | m2 s-2 | **top** (float): The top level for the calculation in meters. Default is *3000.0*. | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| lat | Latitude | decimal degrees | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| lon | Longitude | decimal degrees | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| omg/omega | Omega | Pa s-1 | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| p/pres | Full Model Pressure | Pa | **units** (str) : Set to desired units. Default is *'Pa'*. | |
||||||
|
| | | | | |
||||||
|
| | (in specified units) | hPa | | |
||||||
|
| | | | | |
||||||
|
| | | mb | | |
||||||
|
| | | | | |
||||||
|
| | | torr | | |
||||||
|
| | | | | |
||||||
|
| | | mmhg | | |
||||||
|
| | | | | |
||||||
|
| | | atm | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| pressure | Full Model Pressure (hPa) | hPa | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| pvo | Potential Vorticity | PVU | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| pw | Precipitable Water | kg m-2 | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| rh2 | 2m Relative Humidity | % | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| slp | Sea Level Pressure | hPa | **units** (str) : Set to desired units. Default is *'hPa'*. | |
||||||
|
| | | | | |
||||||
|
| | | hPa | | |
||||||
|
| | | | | |
||||||
|
| | | mb | | |
||||||
|
| | | | | |
||||||
|
| | | torr | | |
||||||
|
| | | | | |
||||||
|
| | | mmhg | | |
||||||
|
| | | | | |
||||||
|
| | | atm | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| ter | Model Terrain Height | m | **units** (str) : Set to desired units. Default is *'m'*. | |
||||||
|
| | | | | |
||||||
|
| | | km | | |
||||||
|
| | | | | |
||||||
|
| | | dm | | |
||||||
|
| | | | | |
||||||
|
| | | ft | | |
||||||
|
| | | | | |
||||||
|
| | | mi | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| td2 | 2m Dew Point Temperature | degC | **units** (str) : Set to desired units. Default is *'degC'*. | |
||||||
|
| | | | | |
||||||
|
| | | K | | |
||||||
|
| | | | | |
||||||
|
| | | degF | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| td | Dew Point Temperature | degC | **units** (str) : Set to desired units. Default is *'degC'*. | |
||||||
|
| | | | | |
||||||
|
| | | K | | |
||||||
|
| | | | | |
||||||
|
| | | degF | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| tc | Temperature in Celsius | degC | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| th/theta | Potential Temperature | K | **units** (str) : Set to desired units. Default is *'K'*. | |
||||||
|
| | | | | |
||||||
|
| | | degC | | |
||||||
|
| | | | | |
||||||
|
| | | degF | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| temp | Temperature (in specified units) | K | **units** (str) : Set to desired units. Default is *'K'*. | |
||||||
|
| | | | | |
||||||
|
| | | degC | | |
||||||
|
| | | | | |
||||||
|
| | | degF | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| tk | Temperature in Kelvin | K | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| times | Times in the File or Sequence | | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| xtimes | XTIME Coordinate | minutes since | | |
||||||
|
| | | | | |
||||||
|
| | (if applicable) | start of | | |
||||||
|
| | | | | |
||||||
|
| | | model run | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| tv | Virtual Temperature | K | **units** (str) : Set to desired units. Default is *'K'*. | |
||||||
|
| | | | | |
||||||
|
| | | degC | | |
||||||
|
| | | | | |
||||||
|
| | | degF | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| twb | Wet Bulb Temperature | K | **units** (str) : Set to desired units. Default is *'K'*. | |
||||||
|
| | | | | |
||||||
|
| | | degC | | |
||||||
|
| | | | | |
||||||
|
| | | degF | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| updraft_helicity | Updraft Helicity | m2 s-2 | **bottom** (float): The bottom level for the calculation in meters. Default is *2000.0*. | |
||||||
|
| | | | | |
||||||
|
| | | | **top** (float): The top level for the calculation in meters. Default is *5000.0*. | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| ua | U-component of Wind on Mass Points | m s-1 | **units** (str) : Set to desired units. Default is *'m s-1'*. | |
||||||
|
| | | | | |
||||||
|
| | | km h-1 | | |
||||||
|
| | | | | |
||||||
|
| | | mi h-1 | | |
||||||
|
| | | | | |
||||||
|
| | | kt | | |
||||||
|
| | | | | |
||||||
|
| | | ft s-1 | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| va | V-component of Wind on Mass Points | m s-1 | **units** (str) : Set to desired units. Default is *'m s-1'*. | |
||||||
|
| | | | | |
||||||
|
| | | km h-1 | | |
||||||
|
| | | | | |
||||||
|
| | | mi h-1 | | |
||||||
|
| | | | | |
||||||
|
| | | kt | | |
||||||
|
| | | | | |
||||||
|
| | | ft s-1 | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| wa | W-component of Wind on Mass Points | m s-1 | **units** (str) : Set to desired units. Default is *'m s-1'*. | |
||||||
|
| | | | | |
||||||
|
| | | km h-1 | | |
||||||
|
| | | | | |
||||||
|
| | | mi h-1 | | |
||||||
|
| | | | | |
||||||
|
| | | kt | | |
||||||
|
| | | | | |
||||||
|
| | | ft s-1 | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| uvmet10 | 10 m U and V Components of Wind | m s-1 | **units** (str) : Set to desired units. Default is *'m s-1'*. | |
||||||
|
| | | | | |
||||||
|
| | Rotated to Earth Coordinates | km h-1 | | |
||||||
|
| | | | | |
||||||
|
| | | mi h-1 | | |
||||||
|
| | | | | |
||||||
|
| | | kt | | |
||||||
|
| | | | | |
||||||
|
| | | ft s-1 | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| uvmet | U and V Components of Wind | m s-1 | **units** (str) : Set to desired units. Default is *'m s-1'*. | |
||||||
|
| | | | | |
||||||
|
| | Rotated to Earth Coordinates | km h-1 | | |
||||||
|
| | | | | |
||||||
|
| | | mi h-1 | | |
||||||
|
| | | | | |
||||||
|
| | | kt | | |
||||||
|
| | | | | |
||||||
|
| | | ft s-1 | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| wspd_wdir | Wind Speed and Direction | m s-1 | **units** (str) : Set to desired units. Default is *'m s-1'*. | |
||||||
|
| | | | | |
||||||
|
| | in Grid Coordinates | km h-1 | | |
||||||
|
| | | | | |
||||||
|
| | | mi h-1 | | |
||||||
|
| | | | | |
||||||
|
| | | kt | | |
||||||
|
| | | | | |
||||||
|
| | | ft s-1 | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| wspd_wdir10 | 10m Wind Speed and Direction | m s-1 | **units** (str) : Set to desired units. Default is *'m s-1'*. | |
||||||
|
| | | | | |
||||||
|
| | in Grid Coordinates | km h-1 | | |
||||||
|
| | | | | |
||||||
|
| | | mi h-1 | | |
||||||
|
| | | | | |
||||||
|
| | | kt | | |
||||||
|
| | | | | |
||||||
|
| | | ft s-1 | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| uvmet_wspd_wdir | Wind Speed and Direction | m s-1 | **units** (str) : Set to desired units. Default is *'m s-1'*. | |
||||||
|
| | | | | |
||||||
|
| | Rotated to Earth Coordinates | km h-1 | | |
||||||
|
| | | | | |
||||||
|
| | | mi h-1 | | |
||||||
|
| | | | | |
||||||
|
| | | kt | | |
||||||
|
| | | | | |
||||||
|
| | | ft s-1 | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| uvmet10_wspd_wdir | 10m Wind Speed and Direction | m s-1 | **units** (str) : Set to desired units. Default is *'m s-1'*. | |
||||||
|
| | | | | |
||||||
|
| | Rotated to Earth Coordinates | km h-1 | | |
||||||
|
| | | | | |
||||||
|
| | | mi h-1 | | |
||||||
|
| | | | | |
||||||
|
| | | kt | | |
||||||
|
| | | | | |
||||||
|
| | | ft s-1 | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| z/height | Full Model Height | m | **msl** (boolean): Set to False to return AGL values. True is for MSL. Default is *True*. | |
||||||
|
| | | | | |
||||||
|
| | | km | **units** (str) : Set to desired units. Default is *'m'*. | |
||||||
|
| | | | | |
||||||
|
| | | dm | | |
||||||
|
| | | | | |
||||||
|
| | | ft | | |
||||||
|
| | | | | |
||||||
|
| | | mi | | |
||||||
|
+--------------------+---------------------------------------------------------------+-----------------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,32 @@ |
|||||||
|
{{ fullname }} |
||||||
|
{{ underline }} |
||||||
|
|
||||||
|
.. currentmodule:: {{ module }} |
||||||
|
|
||||||
|
.. autoclass:: {{ objname }} |
||||||
|
|
||||||
|
{% block methods %} |
||||||
|
|
||||||
|
{% if methods %} |
||||||
|
.. rubric:: Methods |
||||||
|
|
||||||
|
.. autosummary:: |
||||||
|
{% for item in methods %} |
||||||
|
{% if item != '__init__' %} |
||||||
|
~{{ name }}.{{ item }} |
||||||
|
{% endif %} |
||||||
|
{%- endfor %} |
||||||
|
{% endif %} |
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block attributes %} |
||||||
|
{% if attributes %} |
||||||
|
.. rubric:: Attributes |
||||||
|
|
||||||
|
.. autosummary:: |
||||||
|
{% for item in attributes %} |
||||||
|
~{{ name }}.{{ item }} |
||||||
|
{%- endfor %} |
||||||
|
{% endif %} |
||||||
|
{% endblock %} |
||||||
|
|
@ -0,0 +1 @@ |
|||||||
|
This location contains the RST files created by Sphinx AutoSummary for the API. |
@ -0,0 +1,55 @@ |
|||||||
|
API Reference |
||||||
|
============= |
||||||
|
|
||||||
|
Diagnostic Routines |
||||||
|
------------------- |
||||||
|
|
||||||
|
.. autosummary:: |
||||||
|
:nosignatures: |
||||||
|
:toctree: generated/ |
||||||
|
|
||||||
|
wrf.getvar |
||||||
|
|
||||||
|
|
||||||
|
Interpolation Routines |
||||||
|
---------------------- |
||||||
|
|
||||||
|
.. autosummary:: |
||||||
|
:nosignatures: |
||||||
|
:toctree: generated/ |
||||||
|
|
||||||
|
wrf.interplevel |
||||||
|
wrf.vertcross |
||||||
|
wrf.interpline |
||||||
|
wrf.vinterp |
||||||
|
|
||||||
|
|
||||||
|
Extraction Routines |
||||||
|
------------------- |
||||||
|
|
||||||
|
.. autosummary:: |
||||||
|
:nosignatures: |
||||||
|
:toctree: generated/ |
||||||
|
|
||||||
|
wrf.npvalues |
||||||
|
wrf.util.either |
||||||
|
wrf.util.is_moving_domain |
||||||
|
|
||||||
|
|
||||||
|
Raw Computation Routines |
||||||
|
------------------------ |
||||||
|
|
||||||
|
.. autosummary:: |
||||||
|
:nosignatures: |
||||||
|
:toctree: generated/ |
||||||
|
|
||||||
|
wrf.xy |
||||||
|
wrf.interp1d |
||||||
|
wrf.interp2dxy |
||||||
|
wrf.slp |
||||||
|
wrf.uvmet |
||||||
|
wrf.cape_2d |
||||||
|
wrf.cape_3d |
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,74 +0,0 @@ |
|||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| Variable Name | Description | Units | Additional Keyword Arguments | |
|
||||||
+====================+===============================================================+=====================+===============================================================================================+ |
|
||||||
| avo | Absolute Vorticity | 10-5 s-1 | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| eth/theta_e | Equivalent Potential Temperature | K | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| cape_2d | 2D cape (mcape/mcin/lcl/lfc) | J/kg / J/kg / m / m | missing: Fill value for output only (float) | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| cape_3d | 3D cape and cin | J/kg | missing: Fill value for output only (float) | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| ctt | Cloud Top Temperature | C | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| dbz | Reflectivity | dBz | do_variant: Set to True to enable variant calculation. Default is False. | |
|
||||||
| | | | do_liqskin : Set to True to enable liquid skin calculation. Default is False. | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| mdbz | Maximum Reflectivity | dBz | do_variant: Set to True to enable variant calculation. Default is False. | |
|
||||||
| | | | do_liqskin: Set to True to enable liquid skin calculation. Default is False. | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| geopt/geopotential | Full Model Geopotential | m2 s-2 | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| helicity | Storm Relative Helicity | m-2/s-2 | top: The top level for the calculation in meters (float). Default is 3000.0. | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| lat | Latitude | decimal degrees | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| lon | Longitude | decimal degrees | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| omg/omega | Omega | Pa/s | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| p/pres | Full Model Pressure | Pa | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| pressure | Full Model Pressure | hPa | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| pvo | Potential Vorticity | PVU | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| pw | Precipitable Water | kg m-2 | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| rh2 | 2m Relative Humidity | % | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| slp | Sea Level Pressure | hPa | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| ter | Model Terrain Height | m | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| td2 | 2m Dew Point Temperature | C | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| td | Dew Point Temperature | C | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| tc | Temperature | C | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| th/theta | Potential Temperature | K | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| tk | Temperature | K | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| times | Times in the File or Sequence | | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| tv | Virtual Temperature | K | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| twb | Wet Bulb Temperature | K | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| updraft_helicity | Updraft Helicity | m-2/s-2 | bottom: The bottom level for the calculation in meters (float). Default is 2000.0. | |
|
||||||
| | | | top: The top level for the calculation in meters (float). Default is 5000.0. | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| ua | U-component of Wind on Mass Points | m/s | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| va | V-component of Wind on Mass Points | m/s | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| wa | W-component of Wind on Mass Points | m/s | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| uvmet10 | 10 m U and V Components of Wind Rotated to Earth Coordinates | m/s | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| uvmet | U and V Components of Wind Rotated to Earth Coordinates | m/s | | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
||||||
| z/height | Full Model Height | m | msl: Set to False to return AGL values. Otherwise, MSL. Default is True. | |
|
||||||
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
|
@ -0,0 +1,77 @@ |
|||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| Variable Name | Description | Units | Additional Keyword Arguments | |
||||||
|
+====================+===============================================================+=====================+===============================================================================================+ |
||||||
|
| avo | Absolute Vorticity | 10-5 s-1 | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| eth/theta_e | Equivalent Potential Temperature | K | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| cape_2d | 2D cape (mcape/mcin/lcl/lfc) | J/kg / J/kg / m / m | missing: Fill value for output only (float) | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| cape_3d | 3D cape and cin | J/kg | missing: Fill value for output only (float) | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| ctt | Cloud Top Temperature | C | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| cloudfrac | Cloud Fraction | % | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| dbz | Reflectivity | dBz | do_variant: Set to True to enable variant calculation. Default is False. | |
||||||
|
| | | | do_liqskin : Set to True to enable liquid skin calculation. Default is False. | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| mdbz | Maximum Reflectivity | dBz | do_variant: Set to True to enable variant calculation. Default is False. | |
||||||
|
| | | | do_liqskin: Set to True to enable liquid skin calculation. Default is False. | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| geopt/geopotential | Full Model Geopotential | m2 s-2 | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| helicity | Storm Relative Helicity | m2 s-2 | top: The top level for the calculation in meters (float). Default is 3000.0. | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| lat | Latitude | decimal degrees | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| lon | Longitude | decimal degrees | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| omg/omega | Omega | Pa/s | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| p/pres | Full Model Pressure | Pa | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| pressure | Full Model Pressure | hPa | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| pvo | Potential Vorticity | PVU | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| pw | Precipitable Water | kg m-2 | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| rh2 | 2m Relative Humidity | % | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| slp | Sea Level Pressure | hPa | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| ter | Model Terrain Height | m | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| td2 | 2m Dew Point Temperature | C | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| td | Dew Point Temperature | C | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| tc | Temperature | C | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| th/theta | Potential Temperature | K | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| tk | Temperature | K | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| times | Times in the File or Sequence | | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| tv | Virtual Temperature | K | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| twb | Wet Bulb Temperature | K | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| updraft_helicity | Updraft Helicity | m2 s-2 | bottom: The bottom level for the calculation in meters (float). Default is 2000.0. | |
||||||
|
| | | | top: The top level for the calculation in meters (float). Default is 5000.0. | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| ua | U-component of Wind on Mass Points | m/s | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| va | V-component of Wind on Mass Points | m/s | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| wa | W-component of Wind on Mass Points | m/s | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| uvmet10 | 10 m U and V Components of Wind Rotated to Earth Coordinates | m/s | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| uvmet | U and V Components of Wind Rotated to Earth Coordinates | m/s | | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
| z/height | Full Model Height | m | msl: Set to False to return AGL values. Otherwise, MSL. Default is True. | |
||||||
|
+--------------------+---------------------------------------------------------------+---------------------+-----------------------------------------------------------------------------------------------+ |
||||||
|
|
@ -0,0 +1,34 @@ |
|||||||
|
from netCDF4 import Dataset as NetCDF |
||||||
|
|
||||||
|
f = "/Users/ladwig/Documents/wrf_files/wrfout_d01_2016-02-25_18_00_00" |
||||||
|
outfilename = "/Users/ladwig/Documents/wrf_files/rotated_pole_test.nc" |
||||||
|
|
||||||
|
in_nc = NetCDF(f, mode='r', format="NETCDF3_CLASSIC") |
||||||
|
out_nc = NetCDF(outfilename, mode='w', format="NETCDF3_CLASSIC") |
||||||
|
|
||||||
|
# Copy Global Attributes |
||||||
|
for att_name in in_nc.ncattrs(): |
||||||
|
setattr(out_nc, att_name, getattr(in_nc, att_name)) |
||||||
|
|
||||||
|
# Copy Dimensions, but modify the vertical dimensions |
||||||
|
for dimname, dim in in_nc.dimensions.iteritems(): |
||||||
|
out_nc.createDimension(dimname, len(dim)) |
||||||
|
|
||||||
|
# Copy Variables and their Attributes, using the reduced vertical dimension |
||||||
|
for varname, var in in_nc.variables.iteritems(): |
||||||
|
if varname in ("T2", "XLAT", "XLONG", "XTIME"): |
||||||
|
datatype = var.datatype |
||||||
|
dimensions = var.dimensions |
||||||
|
shape = var.shape |
||||||
|
|
||||||
|
new_shape = shape |
||||||
|
|
||||||
|
new_var = out_nc.createVariable(varname, datatype, dimensions) |
||||||
|
|
||||||
|
new_var[:] = var[:] |
||||||
|
|
||||||
|
for att_name in var.ncattrs(): |
||||||
|
setattr(new_var, att_name, getattr(var, att_name)) |
||||||
|
|
||||||
|
in_nc.close() |
||||||
|
out_nc.close() |
Loading…
Reference in new issue