Browse Source

Updated plot tests and added images

lon0
Bill Ladwig 6 years ago
parent
commit
7941a0ec36
  1. BIN
      test/plot_tests/d01/avo.png
  2. BIN
      test/plot_tests/d01/cape_2d.png
  3. BIN
      test/plot_tests/d01/cape_3d.png
  4. BIN
      test/plot_tests/d01/cfrac.png
  5. BIN
      test/plot_tests/d01/ctt.png
  6. BIN
      test/plot_tests/d01/dbz.png
  7. BIN
      test/plot_tests/d01/eth.png
  8. BIN
      test/plot_tests/d01/geopt.png
  9. BIN
      test/plot_tests/d01/helicity.png
  10. BIN
      test/plot_tests/d01/lat.png
  11. BIN
      test/plot_tests/d01/lon.png
  12. BIN
      test/plot_tests/d01/mdbz.png
  13. BIN
      test/plot_tests/d01/omg.png
  14. BIN
      test/plot_tests/d01/p.png
  15. BIN
      test/plot_tests/d01/pressure.png
  16. BIN
      test/plot_tests/d01/pvo.png
  17. BIN
      test/plot_tests/d01/pw.png
  18. BIN
      test/plot_tests/d01/rh.png
  19. BIN
      test/plot_tests/d01/rh2.png
  20. BIN
      test/plot_tests/d01/slp.png
  21. BIN
      test/plot_tests/d01/tc.png
  22. BIN
      test/plot_tests/d01/td.png
  23. BIN
      test/plot_tests/d01/td2.png
  24. BIN
      test/plot_tests/d01/ter.png
  25. BIN
      test/plot_tests/d01/theta.png
  26. BIN
      test/plot_tests/d01/tk.png
  27. BIN
      test/plot_tests/d01/tv.png
  28. BIN
      test/plot_tests/d01/twb.png
  29. BIN
      test/plot_tests/d01/ua.png
  30. BIN
      test/plot_tests/d01/updraft_helicity.png
  31. BIN
      test/plot_tests/d01/uvmet.png
  32. BIN
      test/plot_tests/d01/uvmet10.png
  33. BIN
      test/plot_tests/d01/uvmet10_wspd_wdir.png
  34. BIN
      test/plot_tests/d01/uvmet_wspd_wdir.png
  35. BIN
      test/plot_tests/d01/va.png
  36. BIN
      test/plot_tests/d01/wa.png
  37. BIN
      test/plot_tests/d01/wspd_wdir.png
  38. BIN
      test/plot_tests/d01/wspd_wdir10.png
  39. BIN
      test/plot_tests/d01/z.png
  40. BIN
      test/plot_tests/d02/avo.png
  41. BIN
      test/plot_tests/d02/cape_2d.png
  42. BIN
      test/plot_tests/d02/cape_3d.png
  43. BIN
      test/plot_tests/d02/cfrac.png
  44. BIN
      test/plot_tests/d02/ctt.png
  45. BIN
      test/plot_tests/d02/dbz.png
  46. BIN
      test/plot_tests/d02/eth.png
  47. BIN
      test/plot_tests/d02/geopt.png
  48. BIN
      test/plot_tests/d02/helicity.png
  49. BIN
      test/plot_tests/d02/lat.png
  50. BIN
      test/plot_tests/d02/lon.png
  51. BIN
      test/plot_tests/d02/mdbz.png
  52. BIN
      test/plot_tests/d02/omg.png
  53. BIN
      test/plot_tests/d02/p.png
  54. BIN
      test/plot_tests/d02/pressure.png
  55. BIN
      test/plot_tests/d02/pvo.png
  56. BIN
      test/plot_tests/d02/pw.png
  57. BIN
      test/plot_tests/d02/rh.png
  58. BIN
      test/plot_tests/d02/rh2.png
  59. BIN
      test/plot_tests/d02/slp.png
  60. BIN
      test/plot_tests/d02/tc.png
  61. BIN
      test/plot_tests/d02/td.png
  62. BIN
      test/plot_tests/d02/td2.png
  63. BIN
      test/plot_tests/d02/ter.png
  64. BIN
      test/plot_tests/d02/theta.png
  65. BIN
      test/plot_tests/d02/tk.png
  66. BIN
      test/plot_tests/d02/tv.png
  67. BIN
      test/plot_tests/d02/twb.png
  68. BIN
      test/plot_tests/d02/ua.png
  69. BIN
      test/plot_tests/d02/updraft_helicity.png
  70. BIN
      test/plot_tests/d02/uvmet.png
  71. BIN
      test/plot_tests/d02/uvmet10.png
  72. BIN
      test/plot_tests/d02/uvmet10_wspd_wdir.png
  73. BIN
      test/plot_tests/d02/uvmet_wspd_wdir.png
  74. BIN
      test/plot_tests/d02/va.png
  75. BIN
      test/plot_tests/d02/wa.png
  76. BIN
      test/plot_tests/d02/wspd_wdir.png
  77. BIN
      test/plot_tests/d02/wspd_wdir10.png
  78. BIN
      test/plot_tests/d02/z.png
  79. 21
      test/plot_tests/plot_all.ipynb

BIN
test/plot_tests/d01/avo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
test/plot_tests/d01/cape_2d.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB

BIN
test/plot_tests/d01/cape_3d.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 KiB

BIN
test/plot_tests/d01/cfrac.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

BIN
test/plot_tests/d01/ctt.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

BIN
test/plot_tests/d01/dbz.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
test/plot_tests/d01/eth.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
test/plot_tests/d01/geopt.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
test/plot_tests/d01/helicity.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
test/plot_tests/d01/lat.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
test/plot_tests/d01/lon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

BIN
test/plot_tests/d01/mdbz.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

BIN
test/plot_tests/d01/omg.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

BIN
test/plot_tests/d01/p.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

BIN
test/plot_tests/d01/pressure.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

BIN
test/plot_tests/d01/pvo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

BIN
test/plot_tests/d01/pw.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

BIN
test/plot_tests/d01/rh.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

BIN
test/plot_tests/d01/rh2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

BIN
test/plot_tests/d01/slp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
test/plot_tests/d01/tc.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
test/plot_tests/d01/td.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

BIN
test/plot_tests/d01/td2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
test/plot_tests/d01/ter.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

BIN
test/plot_tests/d01/theta.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

BIN
test/plot_tests/d01/tk.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

BIN
test/plot_tests/d01/tv.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
test/plot_tests/d01/twb.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
test/plot_tests/d01/ua.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

BIN
test/plot_tests/d01/updraft_helicity.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
test/plot_tests/d01/uvmet.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

BIN
test/plot_tests/d01/uvmet10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

BIN
test/plot_tests/d01/uvmet10_wspd_wdir.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

BIN
test/plot_tests/d01/uvmet_wspd_wdir.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

BIN
test/plot_tests/d01/va.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

BIN
test/plot_tests/d01/wa.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

BIN
test/plot_tests/d01/wspd_wdir.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

BIN
test/plot_tests/d01/wspd_wdir10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
test/plot_tests/d01/z.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

BIN
test/plot_tests/d02/avo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

BIN
test/plot_tests/d02/cape_2d.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

BIN
test/plot_tests/d02/cape_3d.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

BIN
test/plot_tests/d02/cfrac.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

BIN
test/plot_tests/d02/ctt.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

BIN
test/plot_tests/d02/dbz.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
test/plot_tests/d02/eth.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
test/plot_tests/d02/geopt.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
test/plot_tests/d02/helicity.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

BIN
test/plot_tests/d02/lat.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
test/plot_tests/d02/lon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
test/plot_tests/d02/mdbz.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB

BIN
test/plot_tests/d02/omg.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 KiB

BIN
test/plot_tests/d02/p.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

BIN
test/plot_tests/d02/pressure.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

BIN
test/plot_tests/d02/pvo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
test/plot_tests/d02/pw.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

BIN
test/plot_tests/d02/rh.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
test/plot_tests/d02/rh2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
test/plot_tests/d02/slp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

BIN
test/plot_tests/d02/tc.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
test/plot_tests/d02/td.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
test/plot_tests/d02/td2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
test/plot_tests/d02/ter.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
test/plot_tests/d02/theta.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
test/plot_tests/d02/tk.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
test/plot_tests/d02/tv.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
test/plot_tests/d02/twb.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
test/plot_tests/d02/ua.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
test/plot_tests/d02/updraft_helicity.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

BIN
test/plot_tests/d02/uvmet.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
test/plot_tests/d02/uvmet10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

BIN
test/plot_tests/d02/uvmet10_wspd_wdir.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
test/plot_tests/d02/uvmet_wspd_wdir.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
test/plot_tests/d02/va.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
test/plot_tests/d02/wa.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

BIN
test/plot_tests/d02/wspd_wdir.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
test/plot_tests/d02/wspd_wdir10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
test/plot_tests/d02/z.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

21
test/plot_tests/plot_all.ipynb

@ -15,9 +15,9 @@ @@ -15,9 +15,9 @@
"# Modify these to point to your own files\n",
"WRF_DIRECTORY = \"/Users/ladwig/Documents/wrf_files/wrf_vortex_multi/moving_nest\"\n",
"\n",
"WRF_FILES = [\"wrfout_d01_2005-08-28_00:00:00\",\n",
" \"wrfout_d01_2005-08-28_12:00:00\",\n",
" \"wrfout_d01_2005-08-29_00:00:00\"]\n",
"WRF_FILES = [\"wrfout_d02_2005-08-28_00:00:00\",\n",
" \"wrfout_d02_2005-08-28_12:00:00\",\n",
" \"wrfout_d02_2005-08-29_00:00:00\"]\n",
"\n",
"\n",
"# Do not modify the code below this line\n",
@ -67,6 +67,16 @@ @@ -67,6 +67,16 @@
" global _WRF_FILES\n",
" return _WRF_FILES\n",
"\n",
"def save_fig(diagname):\n",
" f = single_wrf_file()\n",
" if f.find(\"_d01_\") > 0:\n",
" fout = \"{}.png\".format(os.path.join(os.path.abspath(\".\"), \"d01\", diagname))\n",
" else:\n",
" fout = \"{}.png\".format(os.path.join(os.path.abspath(\".\"), \"d02\", diagname))\n",
" \n",
" matplotlib.pyplot.savefig(fout)\n",
" \n",
"\n",
"print(\"All tests passed!\")"
]
},
@ -244,6 +254,7 @@ @@ -244,6 +254,7 @@
" cart_proj = get_cartopy(diag)\n",
" lats, lons = latlon_coords(diag)\n",
" \n",
"\n",
" # Create a figure and get the GetAxes object\n",
" fig = pyplot.figure(figsize=(10, 7.5))\n",
" ax = pyplot.axes(projection=cart_proj)\n",
@ -280,6 +291,10 @@ @@ -280,6 +291,10 @@
" cb = pyplot.colorbar(ax=ax, shrink=.99)\n",
" \n",
" pyplot.title(diagname)\n",
" \n",
" # Uncomment this to build the sample images\n",
" #save_fig(diagname)\n",
" \n",
" pyplot.show()\n",
"\n",
"\n"

Loading…
Cancel
Save