Browse Source

removed the var package. wrf is no longer a namespace package.

main
Bill Ladwig 9 years ago
parent
commit
c7f5f0917f
  1. 0
      wrf_open/ncl_reference/WRFUserARW.ncl
  2. 0
      wrf_open/ncl_reference/WRF_contributed.ncl
  3. 0
      wrf_open/ncl_reference/calc_uh.f90
  4. 0
      wrf_open/ncl_reference/eqthecalc.f
  5. 0
      wrf_open/ncl_reference/etaconv.py
  6. 0
      wrf_open/ncl_reference/psadilookup.dat
  7. 0
      wrf_open/ncl_reference/rcm2points.f
  8. 0
      wrf_open/ncl_reference/rcm2rgrid.f
  9. 0
      wrf_open/ncl_reference/rcmW.c
  10. 0
      wrf_open/ncl_reference/rip_cape.f
  11. 0
      wrf_open/ncl_reference/wrfW.c
  12. 0
      wrf_open/ncl_reference/wrf_bint3d.f
  13. 0
      wrf_open/ncl_reference/wrf_cloud_topW.c
  14. 0
      wrf_open/ncl_reference/wrf_fctt.f
  15. 0
      wrf_open/ncl_reference/wrf_fddaobs_in.F
  16. 0
      wrf_open/ncl_reference/wrf_pvo.f
  17. 0
      wrf_open/ncl_reference/wrf_relhl.f
  18. 0
      wrf_open/ncl_reference/wrf_rip_phys_routines.f
  19. 0
      wrf_open/ncl_reference/wrf_user.f
  20. 0
      wrf_open/ncl_reference/wrf_user_dbz.f
  21. 0
      wrf_open/ncl_reference/wrf_user_latlon_routines.f
  22. 0
      wrf_open/ncl_reference/wrf_vinterp.f
  23. 0
      wrf_open/ncl_reference/wrf_vinterpW.c
  24. 0
      wrf_open/script/plot2d
  25. 0
      wrf_open/script/somplot
  26. 0
      wrf_open/script/td_test.py
  27. 0
      wrf_open/script/wrftest.py
  28. 16
      wrf_open/setup.py
  29. 0
      wrf_open/src/python/wrf/__init__.py
  30. 0
      wrf_open/src/python/wrf/cape.py
  31. 0
      wrf_open/src/python/wrf/config.py
  32. 0
      wrf_open/src/python/wrf/constants.py
  33. 0
      wrf_open/src/python/wrf/ctt.py
  34. 0
      wrf_open/src/python/wrf/dbz.py
  35. 0
      wrf_open/src/python/wrf/decorators.py
  36. 0
      wrf_open/src/python/wrf/destag.py
  37. 0
      wrf_open/src/python/wrf/dewpoint.py
  38. 0
      wrf_open/src/python/wrf/extension.py
  39. 0
      wrf_open/src/python/wrf/geoht.py
  40. 0
      wrf_open/src/python/wrf/helicity.py
  41. 0
      wrf_open/src/python/wrf/interp.py
  42. 0
      wrf_open/src/python/wrf/interputils.py
  43. 0
      wrf_open/src/python/wrf/latlon.py
  44. 0
      wrf_open/src/python/wrf/latlonutils.py
  45. 0
      wrf_open/src/python/wrf/metadecorators.py
  46. 0
      wrf_open/src/python/wrf/omega.py
  47. 0
      wrf_open/src/python/wrf/precip.py
  48. 0
      wrf_open/src/python/wrf/pressure.py
  49. 0
      wrf_open/src/python/wrf/projection.py
  50. 0
      wrf_open/src/python/wrf/psadlookup.py
  51. 0
      wrf_open/src/python/wrf/pw.py
  52. 0
      wrf_open/src/python/wrf/rh.py
  53. 0
      wrf_open/src/python/wrf/routines.py
  54. 0
      wrf_open/src/python/wrf/slp.py
  55. 0
      wrf_open/src/python/wrf/temp.py
  56. 0
      wrf_open/src/python/wrf/terrain.py
  57. 0
      wrf_open/src/python/wrf/times.py
  58. 0
      wrf_open/src/python/wrf/units.py
  59. 0
      wrf_open/src/python/wrf/util.py
  60. 0
      wrf_open/src/python/wrf/uvdecorator.py
  61. 0
      wrf_open/src/python/wrf/uvmet.py
  62. 0
      wrf_open/src/python/wrf/vorticity.py
  63. 0
      wrf_open/src/python/wrf/wind.py
  64. 0
      wrf_open/src/python/wrf/wrfcape.f90
  65. 0
      wrf_open/src/python/wrf/wrfcape.pyf
  66. 0
      wrf_open/src/python/wrf/wrfext.f90
  67. 0
      wrf_open/src/python/wrf/wrfext.pyf
  68. 0
      wrf_open/src/python/wrf/wrfext2.f90.BAK
  69. 0
      wrf_open/test/listBug.ncl
  70. 0
      wrf_open/test/ncl_get_var.ncl
  71. 0
      wrf_open/test/projtest.py
  72. 0
      wrf_open/test/snippet.py
  73. 87
      wrf_open/test/test_vinterp.ncl
  74. 1
      wrf_open/test/utests.py
  75. 7
      wrf_open/var/src/python/wrf/__init__.py

0
wrf_open/var/ncl_reference/WRFUserARW.ncl → wrf_open/ncl_reference/WRFUserARW.ncl

0
wrf_open/var/ncl_reference/WRF_contributed.ncl → wrf_open/ncl_reference/WRF_contributed.ncl

0
wrf_open/var/ncl_reference/calc_uh.f90 → wrf_open/ncl_reference/calc_uh.f90

0
wrf_open/var/ncl_reference/eqthecalc.f → wrf_open/ncl_reference/eqthecalc.f

0
wrf_open/var/ncl_reference/etaconv.py → wrf_open/ncl_reference/etaconv.py

0
wrf_open/var/ncl_reference/psadilookup.dat → wrf_open/ncl_reference/psadilookup.dat

0
wrf_open/var/ncl_reference/rcm2points.f → wrf_open/ncl_reference/rcm2points.f

0
wrf_open/var/ncl_reference/rcm2rgrid.f → wrf_open/ncl_reference/rcm2rgrid.f

0
wrf_open/var/ncl_reference/rcmW.c → wrf_open/ncl_reference/rcmW.c

0
wrf_open/var/ncl_reference/rip_cape.f → wrf_open/ncl_reference/rip_cape.f

0
wrf_open/var/ncl_reference/wrfW.c → wrf_open/ncl_reference/wrfW.c

0
wrf_open/var/ncl_reference/wrf_bint3d.f → wrf_open/ncl_reference/wrf_bint3d.f

0
wrf_open/var/ncl_reference/wrf_cloud_topW.c → wrf_open/ncl_reference/wrf_cloud_topW.c

0
wrf_open/var/ncl_reference/wrf_fctt.f → wrf_open/ncl_reference/wrf_fctt.f

0
wrf_open/var/ncl_reference/wrf_fddaobs_in.F → wrf_open/ncl_reference/wrf_fddaobs_in.F

0
wrf_open/var/ncl_reference/wrf_pvo.f → wrf_open/ncl_reference/wrf_pvo.f

0
wrf_open/var/ncl_reference/wrf_relhl.f → wrf_open/ncl_reference/wrf_relhl.f

0
wrf_open/var/ncl_reference/wrf_rip_phys_routines.f → wrf_open/ncl_reference/wrf_rip_phys_routines.f

0
wrf_open/var/ncl_reference/wrf_user.f → wrf_open/ncl_reference/wrf_user.f

0
wrf_open/var/ncl_reference/wrf_user_dbz.f → wrf_open/ncl_reference/wrf_user_dbz.f

0
wrf_open/var/ncl_reference/wrf_user_latlon_routines.f → wrf_open/ncl_reference/wrf_user_latlon_routines.f

0
wrf_open/var/ncl_reference/wrf_vinterp.f → wrf_open/ncl_reference/wrf_vinterp.f

0
wrf_open/var/ncl_reference/wrf_vinterpW.c → wrf_open/ncl_reference/wrf_vinterpW.c

0
wrf_open/var/script/plot2d → wrf_open/script/plot2d

0
wrf_open/var/script/somplot → wrf_open/script/somplot

0
wrf_open/var/script/td_test.py → wrf_open/script/td_test.py

0
wrf_open/var/script/wrftest.py → wrf_open/script/wrftest.py

16
wrf_open/var/setup.py → wrf_open/setup.py

@ -2,23 +2,23 @@ import setuptools @@ -2,23 +2,23 @@ import setuptools
import numpy.distutils.core
ext1 = numpy.distutils.core.Extension(
name = "wrf.var._wrfext",
sources = ["src/python/wrf/var/wrfext.f90",
"src/python/wrf/var/wrfext.pyf"]
name = "wrf._wrfext",
sources = ["src/python/wrf/wrfext.f90",
"src/python/wrf/wrfext.pyf"]
)
ext2 = numpy.distutils.core.Extension(
name = "wrf.var._wrfcape",
sources = ["src/python/wrf/var/wrfcape.f90",
"src/python/wrf/var/wrfcape.pyf"]
name = "wrf._wrfcape",
sources = ["src/python/wrf/wrfcape.f90",
"src/python/wrf/wrfcape.pyf"]
)
numpy.distutils.core.setup(
name = "wrf.var",
name = "wrf",
version = "0.0.1",
packages = setuptools.find_packages("src/python"),
ext_modules = [ext1,ext2],
package_dir={"":"src/python"},
namespace_packages=["wrf"],
#namespace_packages=["wrf"],
scripts=[],
)

0
wrf_open/var/src/python/wrf/var/__init__.py → wrf_open/src/python/wrf/__init__.py

0
wrf_open/var/src/python/wrf/var/cape.py → wrf_open/src/python/wrf/cape.py

0
wrf_open/var/src/python/wrf/var/config.py → wrf_open/src/python/wrf/config.py

0
wrf_open/var/src/python/wrf/var/constants.py → wrf_open/src/python/wrf/constants.py

0
wrf_open/var/src/python/wrf/var/ctt.py → wrf_open/src/python/wrf/ctt.py

0
wrf_open/var/src/python/wrf/var/dbz.py → wrf_open/src/python/wrf/dbz.py

0
wrf_open/var/src/python/wrf/var/decorators.py → wrf_open/src/python/wrf/decorators.py

0
wrf_open/var/src/python/wrf/var/destag.py → wrf_open/src/python/wrf/destag.py

0
wrf_open/var/src/python/wrf/var/dewpoint.py → wrf_open/src/python/wrf/dewpoint.py

0
wrf_open/var/src/python/wrf/var/extension.py → wrf_open/src/python/wrf/extension.py

0
wrf_open/var/src/python/wrf/var/geoht.py → wrf_open/src/python/wrf/geoht.py

0
wrf_open/var/src/python/wrf/var/helicity.py → wrf_open/src/python/wrf/helicity.py

0
wrf_open/var/src/python/wrf/var/interp.py → wrf_open/src/python/wrf/interp.py

0
wrf_open/var/src/python/wrf/var/interputils.py → wrf_open/src/python/wrf/interputils.py

0
wrf_open/var/src/python/wrf/var/latlon.py → wrf_open/src/python/wrf/latlon.py

0
wrf_open/var/src/python/wrf/var/latlonutils.py → wrf_open/src/python/wrf/latlonutils.py

0
wrf_open/var/src/python/wrf/var/metadecorators.py → wrf_open/src/python/wrf/metadecorators.py

0
wrf_open/var/src/python/wrf/var/omega.py → wrf_open/src/python/wrf/omega.py

0
wrf_open/var/src/python/wrf/var/precip.py → wrf_open/src/python/wrf/precip.py

0
wrf_open/var/src/python/wrf/var/pressure.py → wrf_open/src/python/wrf/pressure.py

0
wrf_open/var/src/python/wrf/var/projection.py → wrf_open/src/python/wrf/projection.py

0
wrf_open/var/src/python/wrf/var/psadlookup.py → wrf_open/src/python/wrf/psadlookup.py

0
wrf_open/var/src/python/wrf/var/pw.py → wrf_open/src/python/wrf/pw.py

0
wrf_open/var/src/python/wrf/var/rh.py → wrf_open/src/python/wrf/rh.py

0
wrf_open/var/src/python/wrf/var/routines.py → wrf_open/src/python/wrf/routines.py

0
wrf_open/var/src/python/wrf/var/slp.py → wrf_open/src/python/wrf/slp.py

0
wrf_open/var/src/python/wrf/var/temp.py → wrf_open/src/python/wrf/temp.py

0
wrf_open/var/src/python/wrf/var/terrain.py → wrf_open/src/python/wrf/terrain.py

0
wrf_open/var/src/python/wrf/var/times.py → wrf_open/src/python/wrf/times.py

0
wrf_open/var/src/python/wrf/var/units.py → wrf_open/src/python/wrf/units.py

0
wrf_open/var/src/python/wrf/var/util.py → wrf_open/src/python/wrf/util.py

0
wrf_open/var/src/python/wrf/var/uvdecorator.py → wrf_open/src/python/wrf/uvdecorator.py

0
wrf_open/var/src/python/wrf/var/uvmet.py → wrf_open/src/python/wrf/uvmet.py

0
wrf_open/var/src/python/wrf/var/vorticity.py → wrf_open/src/python/wrf/vorticity.py

0
wrf_open/var/src/python/wrf/var/wind.py → wrf_open/src/python/wrf/wind.py

0
wrf_open/var/src/python/wrf/var/wrfcape.f90 → wrf_open/src/python/wrf/wrfcape.f90

0
wrf_open/var/src/python/wrf/var/wrfcape.pyf → wrf_open/src/python/wrf/wrfcape.pyf

0
wrf_open/var/src/python/wrf/var/wrfext.f90 → wrf_open/src/python/wrf/wrfext.f90

0
wrf_open/var/src/python/wrf/var/wrfext.pyf → wrf_open/src/python/wrf/wrfext.pyf

0
wrf_open/var/src/python/wrf/var/wrfext2.f90.BAK → wrf_open/src/python/wrf/wrfext2.f90.BAK

0
wrf_open/var/test/listBug.ncl → wrf_open/test/listBug.ncl

0
wrf_open/var/test/ncl_get_var.ncl → wrf_open/test/ncl_get_var.ncl

0
wrf_open/var/test/projtest.py → wrf_open/test/projtest.py

0
wrf_open/var/test/snippet.py → wrf_open/test/snippet.py

87
wrf_open/test/test_vinterp.ncl

@ -0,0 +1,87 @@ @@ -0,0 +1,87 @@
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"
in_files = (/"/Users/ladwig/Documents/wrf_files/wrf_vortex_multi/wrfout_d02_2005-08-28_00:00:00", \
"/Users/ladwig/Documents/wrf_files/wrf_vortex_multi/wrfout_d02_2005-08-28_12:00:00", \
"/Users/ladwig/Documents/wrf_files/wrf_vortex_multi/wrfout_d02_2005-08-29_00:00:00"/)
input_file = addfiles(in_files, "r")
timeidx = 6
; 3D interpolation to new vertical coordinates
; interp t to theta
fld1 = wrf_user_getvar(input_file, "tk", timeidx)
vert_coord = "theta"
;interp_levels = (/200,300,500,1000/)
interp_levels = ispan(200,1000,50)
opts = True
opts@extrapolate = True
opts@field_type = "T"
opts@logP = True
opts@time = timeidx
fld1_intrp = wrf_user_vert_interp(input_file,fld1,vert_coord,interp_levels,opts)
printVarSummary(fld1_intrp)
; interp t to theta-e
fld2 = fld1
vert_coord := "theta-e"
fld2_intrp = wrf_user_vert_interp(input_file,fld2,vert_coord,interp_levels,opts)
printVarSummary(fld2_intrp)
; interp t to pressure
fld3 = fld1
vert_coord := "pressure"
interp_levels := (/850,500/)
fld3_intrp = wrf_user_vert_interp(input_file,fld3,vert_coord,interp_levels,opts)
printVarSummary(fld3_intrp)
; interp t to ght_msl
fld4 = fld1
vert_coord := "ght_msl"
interp_levels := (/1,2/)
fld4_intrp = wrf_user_vert_interp(input_file,fld4,vert_coord,interp_levels,opts)
printVarSummary(fld4_intrp)
; interp t to ght_agl
fld5 = fld1
vert_coord := "ght_agl"
interp_levels := (/1,2/)
fld5_intrp = wrf_user_vert_interp(input_file,fld1,vert_coord,interp_levels,opts)
printVarSummary(fld5_intrp)
; interp ht to pres
fld6 = wrf_user_getvar(input_file, "height", timeidx)
vert_coord := "pressure"
opts@field_type = "ght"
interp_levels := (/500,50/)
fld6_intrp = wrf_user_vert_interp(input_file,fld6,vert_coord,interp_levels,opts)
printVarSummary(fld6_intrp)
; interp pres to theta
fld7 = wrf_user_getvar(input_file, "pressure", timeidx)
vert_coord := "theta"
opts@field_type = "pressure"
interp_levels := (/200,300,500,1000/)
fld7_intrp = wrf_user_vert_interp(input_file,fld7,vert_coord,interp_levels,opts)
printVarSummary(fld7_intrp)
; interp theta-e to pressure
fld8 = wrf_user_getvar(input_file, "eth", timeidx)
vert_coord := "pressure"
opts@field_type = "T"
interp_levels := (/850,500,5/)
fld8_intrp = wrf_user_vert_interp(input_file,fld8,vert_coord,interp_levels,opts)
printVarSummary(fld8_intrp)

1
wrf_open/var/test/utests.py → wrf_open/test/utests.py

@ -104,7 +104,6 @@ def make_test(varname, wrf_in, referent, multi=False, repeat=3, pynio=False): @@ -104,7 +104,6 @@ def make_test(varname, wrf_in, referent, multi=False, repeat=3, pynio=False):
my_vals = getvar(in_wrfnc, "temp", timeidx=timeidx, units="c")
tol = 0
atol = .1 # Note: NCL uses 273.16 as conversion for some reason
print my_vals.shape, ref_vals.shape
nt.assert_allclose(npvalues(my_vals), ref_vals, tol, atol)
elif (varname == "pw"):
my_vals = getvar(in_wrfnc, "pw", timeidx=timeidx)

7
wrf_open/var/src/python/wrf/__init__.py

@ -1,7 +0,0 @@ @@ -1,7 +0,0 @@
try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)
Loading…
Cancel
Save