gfdlvitals 3.0.11__py3-none-any.whl → 3.0.12__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.
- gfdlvitals/models/CM4.py +45 -17
- gfdlvitals/version.py +1 -1
- {gfdlvitals-3.0.11.dist-info → gfdlvitals-3.0.12.dist-info}/METADATA +3 -2
- {gfdlvitals-3.0.11.dist-info → gfdlvitals-3.0.12.dist-info}/RECORD +10 -10
- {gfdlvitals-3.0.11.dist-info → gfdlvitals-3.0.12.dist-info}/WHEEL +1 -1
- {gfdlvitals-3.0.11.data → gfdlvitals-3.0.12.data}/scripts/db2nc +0 -0
- {gfdlvitals-3.0.11.data → gfdlvitals-3.0.12.data}/scripts/gfdlvitals +0 -0
- {gfdlvitals-3.0.11.data → gfdlvitals-3.0.12.data}/scripts/plotdb +0 -0
- {gfdlvitals-3.0.11.dist-info → gfdlvitals-3.0.12.dist-info/licenses}/LICENSE +0 -0
- {gfdlvitals-3.0.11.dist-info → gfdlvitals-3.0.12.dist-info}/top_level.txt +0 -0
gfdlvitals/models/CM4.py
CHANGED
|
@@ -43,37 +43,57 @@ def routines(args, infile):
|
|
|
43
43
|
"aerosol_month_cmip": "AeroCMIP",
|
|
44
44
|
}
|
|
45
45
|
if any(comp in comps for comp in ["atmos", "all"]):
|
|
46
|
-
|
|
46
|
+
try:
|
|
47
|
+
averagers.cubesphere.xr_average(fyear, tar, modules)
|
|
48
|
+
except Exception as exc:
|
|
49
|
+
print("\n\n# -----\n# Atmosphere vitals failed\n# -----\n\n")
|
|
50
|
+
print(exc)
|
|
47
51
|
|
|
48
52
|
# -- Land Fields
|
|
49
53
|
modules = {"land_month": "Land"}
|
|
50
54
|
if any(comp in comps for comp in ["land", "all"]):
|
|
51
|
-
|
|
55
|
+
try:
|
|
56
|
+
averagers.land_lm4.xr_average(fyear, tar, modules)
|
|
57
|
+
except Exception as exc:
|
|
58
|
+
print("\n\n# -----\n# Land vitals failed\n# -----\n\n")
|
|
59
|
+
print(exc)
|
|
52
60
|
|
|
53
61
|
# -- Ice
|
|
54
62
|
modules = {"ice_month": "Ice"}
|
|
55
63
|
if any(comp in comps for comp in ["ice", "all"]):
|
|
56
|
-
|
|
64
|
+
try:
|
|
65
|
+
averagers.ice.xr_average(fyear, tar, modules)
|
|
66
|
+
except Exception as exc:
|
|
67
|
+
print("\n\n# -----\n# Ice vitals failed\n# -----\n\n")
|
|
68
|
+
print(exc)
|
|
57
69
|
|
|
58
70
|
# -- Ice Shelf
|
|
59
71
|
fname = f"{fyear}.ice_shelf_scalar.nc"
|
|
60
72
|
if any(comp in comps for comp in ["iceshelf", "all"]):
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
73
|
+
try:
|
|
74
|
+
if tar_member_exists(tar, fname):
|
|
75
|
+
print(fname)
|
|
76
|
+
fdata = nctools.extract_from_tar(tar, fname, ncfile=True)
|
|
77
|
+
extract_ocean_scalar.mom6(
|
|
78
|
+
fdata, fyear, "./", outname="globalAveIceShelf.db"
|
|
79
|
+
)
|
|
80
|
+
fdata.close()
|
|
81
|
+
except Exception as exc:
|
|
82
|
+
print("\n\n# -----\n# Ice shelf vitals failed\n# -----\n\n")
|
|
83
|
+
print(exc)
|
|
68
84
|
|
|
69
85
|
# -- Ocean
|
|
70
86
|
fname = f"{fyear}.ocean_scalar_annual.nc"
|
|
71
87
|
if any(comp in comps for comp in ["ocean", "all"]):
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
88
|
+
try:
|
|
89
|
+
if tar_member_exists(tar, fname):
|
|
90
|
+
print(f"{fyear}.ocean_scalar_annual.nc")
|
|
91
|
+
fdata = nctools.extract_from_tar(tar, fname, ncfile=True)
|
|
92
|
+
extract_ocean_scalar.mom6(fdata, fyear, "./", outname="globalAveOcean.db")
|
|
93
|
+
fdata.close()
|
|
94
|
+
except Exception as exc:
|
|
95
|
+
print("\n\n# -----\n# Ocean vitals failed\n# -----\n\n")
|
|
96
|
+
print(exc)
|
|
77
97
|
|
|
78
98
|
# -- OBGC
|
|
79
99
|
modules = {
|
|
@@ -89,11 +109,19 @@ def routines(args, infile):
|
|
|
89
109
|
"ocean_bling_cmip6_omip_tracers_year_z": "OBGC",
|
|
90
110
|
}
|
|
91
111
|
if any(comp in comps for comp in ["obgc", "all"]):
|
|
92
|
-
|
|
112
|
+
try:
|
|
113
|
+
averagers.tripolar.xr_average(fyear, tar, modules)
|
|
114
|
+
except Exception as exc:
|
|
115
|
+
print("\n\n# -----\n# OBGC vitals failed\n# -----\n\n")
|
|
116
|
+
print(exc)
|
|
93
117
|
|
|
94
118
|
# -- AMOC
|
|
95
119
|
if any(comp in comps for comp in ["amoc", "all"]):
|
|
96
|
-
|
|
120
|
+
try:
|
|
121
|
+
diags.amoc.mom6_amoc(fyear, tar)
|
|
122
|
+
except Exception as exc:
|
|
123
|
+
print("\n\n# -----\n# AMOC vitals failed\n# -----\n\n")
|
|
124
|
+
print(exc)
|
|
97
125
|
|
|
98
126
|
# -- Close out the tarfile handle
|
|
99
127
|
tar.close()
|
gfdlvitals/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: gfdlvitals
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.12
|
|
4
4
|
Summary: Tools for calculating scalar diagnostics from GFDL models
|
|
5
5
|
Home-page: https://github.com/jkrasting/gfdlvitals
|
|
6
6
|
Author: John Krasting
|
|
@@ -26,6 +26,7 @@ Requires-Dist: matplotlib
|
|
|
26
26
|
Requires-Dist: xarray
|
|
27
27
|
Requires-Dist: cftime
|
|
28
28
|
Requires-Dist: nc-time-axis
|
|
29
|
+
Dynamic: license-file
|
|
29
30
|
|
|
30
31
|
|
|
31
32
|
**gfdlvitals** is a Python package in the public domain
|
|
@@ -4,7 +4,7 @@ gfdlvitals/cli.py,sha256=AKt1hWlhuuSkK8hgpts7OTAxY2B_ZrEH5BuL_CWnbC4,5156
|
|
|
4
4
|
gfdlvitals/extensions.py,sha256=gi7Y3n56N_dfGBu4a4ocJxPGF731BEBR0btu5aL27uA,18477
|
|
5
5
|
gfdlvitals/plot.py,sha256=X5zB5ChxhuBs6OANMdU-9WH_ZUbGEnaNCWXrhllYpT0,12539
|
|
6
6
|
gfdlvitals/sample.py,sha256=wvjmx--IbvKKT0AIucw5GE1DCYcVQPtAr7VGY4rMUaA,225
|
|
7
|
-
gfdlvitals/version.py,sha256=
|
|
7
|
+
gfdlvitals/version.py,sha256=Y_GuiaVvfxLi2ALsEw8x05NMI95GT41PdQoRRjwKrnA,60
|
|
8
8
|
gfdlvitals/averagers/__init__.py,sha256=q9VRiraniy0-HwrwOZNw7wmGZEgQxYuSeOvpPMz0dYI,248
|
|
9
9
|
gfdlvitals/averagers/cubesphere.py,sha256=q1SF-Qlmxdgia_u_oYXNgw-NtpkgMuZk-ZMKuNSnLbI,2254
|
|
10
10
|
gfdlvitals/averagers/ice.py,sha256=uBZczgBCtxPGv3BnOhAzMDcaCfUKvIZ8P5BQyX5LSVI,5707
|
|
@@ -16,7 +16,7 @@ gfdlvitals/diags/__init__.py,sha256=1w_CSncdjJRC6ingsqfAI6EPy0KgK2J2NCTD_ifYpj8,
|
|
|
16
16
|
gfdlvitals/diags/amoc.py,sha256=bDyKfLe0MkNp2nyfyG-yABma1vw5EbWqExN2WfFDXwE,3219
|
|
17
17
|
gfdlvitals/diags/fms.py,sha256=UDUAxihg9kZGRwxYaSOslLPrhYgNBrtBwJJFSUsLFFg,2568
|
|
18
18
|
gfdlvitals/diags/m6toolbox.py,sha256=U6Aau5b0QWVvFEblbt4r_9RK9oj23gaXiPwLOtf4gSM,15854
|
|
19
|
-
gfdlvitals/models/CM4.py,sha256=
|
|
19
|
+
gfdlvitals/models/CM4.py,sha256=tLNfN6r8z3KWP_P3zImg4O2UQ_Q-kASOM-_Nls0Acxk,4360
|
|
20
20
|
gfdlvitals/models/ESM2.py,sha256=TpMGHMmHY_6cuFQziDVdLtdejgSxGU0Uyybp0-1YIy0,2054
|
|
21
21
|
gfdlvitals/models/__init__.py,sha256=0A7Sf8iA5xpy_hSLTtmS9Nw8SULj62uaOerUG2y90qk,91
|
|
22
22
|
gfdlvitals/resources/LM3_variable_dictionary.pkl,sha256=y8vYQWGAvAaEhDNSAJexGSI5tBLpp1MyF8ro3cI3wK0,15915
|
|
@@ -50,14 +50,14 @@ gfdlvitals/util/gmeantools.py,sha256=dy-ZeQPv7V5TBWm6EKZtZvrEjtAQJOax3B_gm8vdxcE
|
|
|
50
50
|
gfdlvitals/util/merge.py,sha256=pzihnvME1ym2MCyc2BeeQq7Jk10GECSoFBcvTubTY-g,1120
|
|
51
51
|
gfdlvitals/util/netcdf.py,sha256=CYmP8HQ4iwTvC3HltjF_6_C2FrEEGocWoSiCfHWETQA,2217
|
|
52
52
|
gfdlvitals/util/xrtools.py,sha256=4gIDkBIG_tW-lBHUfETmsOoDy3oKO0eUoGFaWOmvtEY,2924
|
|
53
|
-
gfdlvitals-3.0.
|
|
54
|
-
gfdlvitals-3.0.
|
|
55
|
-
gfdlvitals-3.0.
|
|
53
|
+
gfdlvitals-3.0.12.data/scripts/db2nc,sha256=htD-aVKLHGeszfvx_3gH1iYs2bXyCIRRZ_BZYvAjxyQ,5793
|
|
54
|
+
gfdlvitals-3.0.12.data/scripts/gfdlvitals,sha256=z7jnQIebmlz6eo0qv0X2UWgVU9TAERJ9a38YIbucVjA,172
|
|
55
|
+
gfdlvitals-3.0.12.data/scripts/plotdb,sha256=m_QS96umb3aFIfr1fdfDa81pT8RP-AJ9LhP9Bbr4LQs,1632
|
|
56
|
+
gfdlvitals-3.0.12.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
56
57
|
scripts/db2nc,sha256=_KqHUowYB8Ff1td6Cb0isWtwlNbnJrMUNri9Ge8kd1E,5807
|
|
57
58
|
scripts/gfdlvitals,sha256=k5RYzFXWN_2Ckr2mdRbJ-IyMdCQAxuE3RBkGpIXvp3U,186
|
|
58
59
|
scripts/plotdb,sha256=Rf79UOCwGy9f5HxtgSeiYUiiotS2Bqh-Unr0G4yykyg,1645
|
|
59
|
-
gfdlvitals-3.0.
|
|
60
|
-
gfdlvitals-3.0.
|
|
61
|
-
gfdlvitals-3.0.
|
|
62
|
-
gfdlvitals-3.0.
|
|
63
|
-
gfdlvitals-3.0.11.dist-info/RECORD,,
|
|
60
|
+
gfdlvitals-3.0.12.dist-info/METADATA,sha256=lvCfUa5UmH4p8AMj2HZ3yUUN5esdrP_YqwOYCFfh2j8,1315
|
|
61
|
+
gfdlvitals-3.0.12.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
62
|
+
gfdlvitals-3.0.12.dist-info/top_level.txt,sha256=_nlHTn5dcU38mu0h1NZouDSBQouNvihfTSmua76bwLs,24
|
|
63
|
+
gfdlvitals-3.0.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|