Browse Source

Merge pull request #135 from NCAR/file_emb

File emb
main
Michaela Sizemore 4 years ago committed by GitHub
parent
commit
27b626898e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      CONTRIBUTING.md
  2. 2
      doc/source/_templates/product_table.txt
  3. 3
      doc/source/plot.rst
  4. 4
      src/wrf/interp.py

4
CONTRIBUTING.md

@ -0,0 +1,4 @@ @@ -0,0 +1,4 @@
Please read the contributor guide here:
https://wrf-python.readthedocs.io/en/latest/contrib.html

2
doc/source/_templates/product_table.txt

@ -83,6 +83,8 @@ @@ -83,6 +83,8 @@
| | | | |
| | | atm | |
+--------------------+---------------------------------------------------------------+-----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
| T2 | 2m Temperature | K | |
+--------------------+---------------------------------------------------------------+-----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
| ter | Model Terrain Height | m | **units** (str) : Set to desired units. Default is *'m'*. |
| | | | |
| | | km | |

3
doc/source/plot.rst

@ -7,6 +7,8 @@ make use of xarray's builtin plotting functions, since additional work is most @@ -7,6 +7,8 @@ make use of xarray's builtin plotting functions, since additional work is most
likely needed to extend xarray in order to work correctly. This is planned
for a future release.
A subset of the wrfout file used in these examples can be downloaded `here <https://doi.org/10.5065/yd8c-hm41>`_.
Matplotlib With Cartopy
-------------------------
@ -819,4 +821,3 @@ terrain filled. @@ -819,4 +821,3 @@ terrain filled.
ax_cross.set_title("Cross-Section of Reflectivity (dBZ)", {"fontsize" : 14})
pyplot.show()

4
src/wrf/interp.py

@ -90,10 +90,10 @@ def interplevel(field3d, vert, desiredlev, missing=default_fill(np.float64), @@ -90,10 +90,10 @@ def interplevel(field3d, vert, desiredlev, missing=default_fill(np.float64),
wrfin = Dataset("wrfout_d02_2010-06-13_21:00:00")
rh = getvar(wrfin, "rh")
z = getvar(wrfin, "z")
height = getvar(wrfin, "height_agl")
pblh = getvar(wrfin, "PBLH")
rh_pblh = interplevel(rh, z, pblh)
rh_pblh = interplevel(rh, height, pblh)
"""

Loading…
Cancel
Save