wrfrun 0.3.0__py3-none-any.whl → 0.3.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
wrfrun/plot/wps.py CHANGED
@@ -176,7 +176,13 @@ def draw_geogrid(data_path: str, field: str, fig: Figure, nrow: int, ncol: int,
176
176
  :rtype: tuple
177
177
  """
178
178
  # lazy import
179
- from wrf import get_cartopy, getvar, latlon_coords, to_np
179
+ try:
180
+ from wrf import get_cartopy, getvar, latlon_coords, to_np
181
+
182
+ except ImportError:
183
+ logger.error("Currently `wrf-python` isn't list as `wrfrun` dependency.")
184
+ logger.error("You need to install `wrf-python` package to use this feature.")
185
+ exit(1)
180
186
 
181
187
  # take out data
182
188
  data: DataArray = getvar(Dataset(data_path), field) # type: ignore
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wrfrun
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: wrfrun is a comprehensive toolkit for managing and using WRF
5
5
  Keywords: WRF
6
6
  Author-Email: Syize <syizeliu@gmail.com>
@@ -23,7 +23,6 @@ Requires-Dist: Cartopy
23
23
  Requires-Dist: tomli
24
24
  Requires-Dist: tomli-w
25
25
  Requires-Dist: haversine
26
- Requires-Dist: wrf-python>=1.3.1
27
26
  Requires-Dist: cfgrib>=0.9.15.1
28
27
  Description-Content-Type: text/markdown
29
28
 
@@ -1,6 +1,6 @@
1
- wrfrun-0.3.0.dist-info/METADATA,sha256=SlRvhwXdvEzl3srzk-ewDx8X_hyfvseWl2zgB3i_P-8,6801
2
- wrfrun-0.3.0.dist-info/WHEEL,sha256=5J4neoE7k6LMgx4Fz1FHgBiO3YevhJGtNQ3muDrdLQM,75
3
- wrfrun-0.3.0.dist-info/entry_points.txt,sha256=G3358n6wW1qZF3hSH9umxrWHJewN-6N1BUloacN2tks,50
1
+ wrfrun-0.3.1.dist-info/METADATA,sha256=p8z5A_Ln2uzEBB_dO-7hLc5MUcRb_AhaAUm_i0v_gU0,6768
2
+ wrfrun-0.3.1.dist-info/WHEEL,sha256=5J4neoE7k6LMgx4Fz1FHgBiO3YevhJGtNQ3muDrdLQM,75
3
+ wrfrun-0.3.1.dist-info/entry_points.txt,sha256=G3358n6wW1qZF3hSH9umxrWHJewN-6N1BUloacN2tks,50
4
4
  wrfrun/__init__.py,sha256=0y__w7lEwOeVtfR3DRKEtPPz-2NTju2MbG76lAH_ZxU,218
5
5
  wrfrun/cli.py,sha256=FGiYLGmXJs6DkWZnNOfW0gcN2RK-dTF2onVcM1xTD0c,5946
6
6
  wrfrun/data.py,sha256=AS6Rb2-878mIqfyybGp1LlWypjtqUY1s3q5ahtR1nIo,17330
@@ -48,7 +48,7 @@ wrfrun/model/wrf/scheme.py,sha256=lFpFvJRpG9KV3EcMgxjUG77WOCkpMMwffhTbf5V6bBE,12
48
48
  wrfrun/model/wrf/utils.py,sha256=2n-aVRIy3_CWsggnEU3yYPbg4eohCwIYDPeUfXTFVIo,4041
49
49
  wrfrun/model/wrf/vtable.py,sha256=nqhDydM7FYxI2tNuU2PSaDP-asnPdBxm1cpdO4K_KuE,3221
50
50
  wrfrun/plot/__init__.py,sha256=fLZRqGQK9dVP88TKD_pdutHlUUuM43c_q8OGUT3cjbU,415
51
- wrfrun/plot/wps.py,sha256=YoiBL5XOS6nHKRf9-_h_kz3-lr4rlA3-OElHHhW3dCw,5755
51
+ wrfrun/plot/wps.py,sha256=FyJ9Yd4E9WSMIYmVFTiC7c1z9StaVMej7DmTy89X9Zo,5977
52
52
  wrfrun/res/__init__.py,sha256=KxfzI3HcxAkjmMh6gyhJDNAs5KKtLfhDMQhYKFIPkk8,3670
53
53
  wrfrun/res/run.template.sh,sha256=k-r4lOOarscmSdiBXGHPnv3oeiRe-qW-VhOBia27ZGU,101
54
54
  wrfrun/res/config/config.template.toml,sha256=S5a01oxNSqAN2_nE29wQPOdplG_NmXGfa-WdTCigMgs,1863
@@ -75,4 +75,4 @@ wrfrun/workspace/__init__.py,sha256=qEgg8esqTWZpsYFy0ZlZP1cFZldjvpHTf0iVaiZ_vAs,
75
75
  wrfrun/workspace/core.py,sha256=q8M_al7zJ5awd8yMc43Ocmi4uy77fLS2YFUXkpXJpVg,3090
76
76
  wrfrun/workspace/palm.py,sha256=ZfDRKomcPredDmQwTpo--inm2ecvja32ZM9zis6cwsU,4133
77
77
  wrfrun/workspace/wrf.py,sha256=BtIRwAQ-9PF8hBYJiNUaqfaqQoX2Wyz96EZWEhlLihg,5124
78
- wrfrun-0.3.0.dist-info/RECORD,,
78
+ wrfrun-0.3.1.dist-info/RECORD,,
File without changes