climate-ref-ilamb 0.5.5__py3-none-any.whl → 0.6.0__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.
- climate_ref_ilamb/configure/ilamb.yaml +16 -2
- climate_ref_ilamb/configure/iomb.yaml +25 -3
- climate_ref_ilamb/dataset_registry/ilamb.txt +3 -1
- climate_ref_ilamb/dataset_registry/iomb.txt +1 -0
- climate_ref_ilamb/standard.py +17 -11
- {climate_ref_ilamb-0.5.5.dist-info → climate_ref_ilamb-0.6.0.dist-info}/METADATA +4 -4
- climate_ref_ilamb-0.6.0.dist-info/RECORD +14 -0
- climate_ref_ilamb-0.5.5.dist-info/RECORD +0 -14
- {climate_ref_ilamb-0.5.5.dist-info → climate_ref_ilamb-0.6.0.dist-info}/WHEEL +0 -0
- {climate_ref_ilamb-0.5.5.dist-info → climate_ref_ilamb-0.6.0.dist-info}/licenses/LICENCE +0 -0
- {climate_ref_ilamb-0.5.5.dist-info → climate_ref_ilamb-0.6.0.dist-info}/licenses/NOTICE +0 -0
|
@@ -2,6 +2,7 @@ registry: ilamb
|
|
|
2
2
|
|
|
3
3
|
gpp-WECANN:
|
|
4
4
|
sources:
|
|
5
|
+
# TODO: Update to use the obs4REF equiv
|
|
5
6
|
gpp: ilamb/gpp/WECANN/gpp.nc
|
|
6
7
|
relationships:
|
|
7
8
|
pr: ilamb/pr/GPCPv2.3/pr.nc
|
|
@@ -15,6 +16,7 @@ gpp-FLUXNET2015:
|
|
|
15
16
|
|
|
16
17
|
mrro-LORA:
|
|
17
18
|
sources:
|
|
19
|
+
# TODO: Update to use the obs4REF equiv
|
|
18
20
|
mrro: ilamb/mrro/LORA/LORA.nc
|
|
19
21
|
variable_cmap: Blues
|
|
20
22
|
|
|
@@ -23,14 +25,15 @@ mrsos-WangMao:
|
|
|
23
25
|
mrsol: ilamb/mrsol/WangMao/mrsol_olc.nc
|
|
24
26
|
alternate_vars:
|
|
25
27
|
- mrsos
|
|
26
|
-
depth: 0.0
|
|
27
28
|
transform:
|
|
29
|
+
- select_depth:
|
|
30
|
+
value: 0
|
|
28
31
|
- soil_moisture_to_vol_fraction
|
|
29
32
|
variable_cmap: Blues
|
|
30
33
|
|
|
31
34
|
cSoil-HWSD2:
|
|
32
35
|
sources:
|
|
33
|
-
cSoil: ilamb/cSoil/HWSD2/
|
|
36
|
+
cSoil: ilamb/cSoil/HWSD2/cSoil_fx_HWSD2_19600101-20220101.nc
|
|
34
37
|
variable_cmap: viridis
|
|
35
38
|
|
|
36
39
|
lai-AVH15C1:
|
|
@@ -42,4 +45,15 @@ nbp-Hoffman:
|
|
|
42
45
|
analyses:
|
|
43
46
|
- nbp
|
|
44
47
|
sources:
|
|
48
|
+
# TODO: Update to use the obs4REF equiv
|
|
45
49
|
nbp: ilamb/nbp/HOFFMAN/nbp_1850-2010.nc
|
|
50
|
+
|
|
51
|
+
snc-ESACCI:
|
|
52
|
+
sources:
|
|
53
|
+
snc: ilamb/snc/Snow-cci/snc_mon_Snow-cci_BE_gn_198201-201906.nc
|
|
54
|
+
|
|
55
|
+
burntFractionAll-GFED:
|
|
56
|
+
sources:
|
|
57
|
+
burntArea: ilamb/burntFractionAll/GFED/burntArea.nc
|
|
58
|
+
alternate_vars:
|
|
59
|
+
- burntFractionAll
|
|
@@ -2,26 +2,48 @@ registry: iomb
|
|
|
2
2
|
|
|
3
3
|
thetao-WOA2023-surface:
|
|
4
4
|
sources:
|
|
5
|
+
# TODO: Update to use the obs4REF equiv
|
|
5
6
|
thetao: ilamb/WOA/thetao_mon_WOA_A5B4_gn_200501-201412.nc
|
|
6
7
|
variable_cmap: Reds
|
|
7
|
-
|
|
8
|
+
transform:
|
|
9
|
+
- select_depth:
|
|
10
|
+
value: 0
|
|
8
11
|
alternate_vars:
|
|
9
12
|
- tos
|
|
10
13
|
|
|
11
14
|
so-WOA2023-surface:
|
|
12
15
|
sources:
|
|
16
|
+
# TODO: Update to use the obs4REF equiv
|
|
13
17
|
so: ilamb/WOA/so_mon_WOA_A5B4_gn_200501-201412.nc
|
|
18
|
+
transform:
|
|
19
|
+
- select_depth:
|
|
20
|
+
value: 0
|
|
14
21
|
variable_cmap: YlGn
|
|
15
|
-
depth: 0.0
|
|
16
22
|
alternate_vars:
|
|
17
23
|
- sos
|
|
18
24
|
|
|
19
25
|
amoc-RAPID:
|
|
20
26
|
analyses:
|
|
21
27
|
- timeseries
|
|
22
|
-
|
|
28
|
+
related_vars:
|
|
23
29
|
- msftmz
|
|
24
30
|
transform:
|
|
25
31
|
- msftmz_to_rapid
|
|
26
32
|
sources:
|
|
33
|
+
# TODO: Update to use the obs4REF equiv
|
|
27
34
|
amoc: ilamb/RAPID/amoc_mon_RAPID_BE_NA_200404-202302.nc
|
|
35
|
+
|
|
36
|
+
ohc-NOAA:
|
|
37
|
+
sources:
|
|
38
|
+
ohc: ilamb/NOAA/ohc_yr_OHC_BE_gm_200506-202406.nc
|
|
39
|
+
related_vars:
|
|
40
|
+
- thetao
|
|
41
|
+
- volcello
|
|
42
|
+
transform:
|
|
43
|
+
- select_depth:
|
|
44
|
+
min: 0
|
|
45
|
+
max: 2000
|
|
46
|
+
- ocean_heat_content:
|
|
47
|
+
reference_year: 2005
|
|
48
|
+
analyses:
|
|
49
|
+
- accumulate
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
ilamb/cSoil/HWSD2/
|
|
1
|
+
ilamb/cSoil/HWSD2/cSoil_fx_HWSD2_19600101-20220101.nc sha1:7138b0b53aa600878adf95e6aef65f4322a8e287
|
|
2
2
|
ilamb/gpp/FLUXNET2015/gpp.nc sha1:16fd177e007caef2565687e2cd32884e20ef16e5
|
|
3
3
|
ilamb/gpp/WECANN/gpp.nc sha1:6e864a6ae201195cdf995a3a81720188af441e13
|
|
4
4
|
ilamb/lai/AVH15C1/lai.nc sha1:ccace4f84912d63acbb9ee09ee7b743412207a0d
|
|
@@ -9,3 +9,5 @@ ilamb/regions/Koppen_coarse.nc sha1:e464030db49f0295a6a22a81ca602b0f3c499b72
|
|
|
9
9
|
ilamb/pr/GPCPv2.3/pr.nc sha1:e1b942863ec76a75aa972b6d75e2e08646741259
|
|
10
10
|
ilamb/tas/CRU4.02/tas.nc sha1:2674da18a1a93483b50b1626e7a7ab741bf53d09
|
|
11
11
|
ilamb/nbp/HOFFMAN/nbp_1850-2010.nc sha1:8350af00614d6afc6b70ad314aa499a9ece80ec2
|
|
12
|
+
ilamb/snc/Snow-cci/snc_mon_Snow-cci_BE_gn_198201-201906.nc sha1:c0bfecd2f8b886e9301428d28bb6ff0507601be2
|
|
13
|
+
ilamb/burntFractionAll/GFED/burntArea.nc sha1:cf9d73c6a8bfc594737c9ba6ca4df613df4a28ab
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
ilamb/WOA/so_mon_WOA_A5B4_gn_200501-201412.nc sha1:831c42c3b2ba443c255150289a2c725d7f3e5838
|
|
2
2
|
ilamb/WOA/thetao_mon_WOA_A5B4_gn_200501-201412.nc sha1:86d9056208291d76233e65b26c658c1fa54c3ea6
|
|
3
3
|
ilamb/RAPID/amoc_mon_RAPID_BE_NA_200404-202302.nc sha1:3efe773e5c2a3c832977791ff7fd9cb9f473fe65
|
|
4
|
+
ilamb/NOAA/ohc_yr_OHC_BE_gm_200506-202406.nc sha1:a918799d8e24e4f0015b9047a74d470ae9f0445c
|
climate_ref_ilamb/standard.py
CHANGED
|
@@ -8,6 +8,7 @@ import pandas as pd
|
|
|
8
8
|
import pooch
|
|
9
9
|
from ilamb3 import run
|
|
10
10
|
|
|
11
|
+
from climate_ref_core.constraints import AddSupplementaryDataset
|
|
11
12
|
from climate_ref_core.dataset_registry import dataset_registry_manager
|
|
12
13
|
from climate_ref_core.datasets import FacetFilter, SourceDatasetType
|
|
13
14
|
from climate_ref_core.diagnostics import (
|
|
@@ -120,6 +121,9 @@ def _build_cmec_bundle(df: pd.DataFrame) -> dict[str, Any]:
|
|
|
120
121
|
}
|
|
121
122
|
)
|
|
122
123
|
|
|
124
|
+
# Convert the value column to numeric, coercing errors to NaN
|
|
125
|
+
model_df["value"] = pd.to_numeric(model_df["value"], errors="coerce")
|
|
126
|
+
|
|
123
127
|
dimensions = ["experiment_id", "source_id", "member_id", "grid_label", "region", "metric", "statistic"]
|
|
124
128
|
attributes = ["type", "units"]
|
|
125
129
|
|
|
@@ -165,15 +169,6 @@ def _set_ilamb3_options(registry: pooch.Pooch, registry_file: str) -> None:
|
|
|
165
169
|
ilamb3.conf.set(regions=["global", "tropical"])
|
|
166
170
|
|
|
167
171
|
|
|
168
|
-
def _measure_facets(registry_file: str) -> list[str]:
|
|
169
|
-
"""
|
|
170
|
-
Set options for ILAMB based on which registry file is being used.
|
|
171
|
-
"""
|
|
172
|
-
if registry_file == "ilamb":
|
|
173
|
-
return ["areacella", "sftlf"]
|
|
174
|
-
return []
|
|
175
|
-
|
|
176
|
-
|
|
177
172
|
def _load_csv_and_merge(output_directory: Path) -> pd.DataFrame:
|
|
178
173
|
"""
|
|
179
174
|
Load individual csv scalar data and merge into a dataframe.
|
|
@@ -219,12 +214,23 @@ class ILAMBStandard(Diagnostic):
|
|
|
219
214
|
self.variable_id,
|
|
220
215
|
*ilamb_kwargs.get("relationships", {}).keys(),
|
|
221
216
|
*ilamb_kwargs.get("alternate_vars", []),
|
|
222
|
-
*
|
|
217
|
+
*ilamb_kwargs.get("related_vars", []),
|
|
223
218
|
)
|
|
224
219
|
}
|
|
225
220
|
),
|
|
226
|
-
FacetFilter(facets={"frequency": ("mon",
|
|
221
|
+
FacetFilter(facets={"frequency": ("mon",)}),
|
|
227
222
|
FacetFilter(facets={"experiment_id": ("historical", "land-hist")}),
|
|
223
|
+
# Exclude unneeded snc tables
|
|
224
|
+
FacetFilter(facets={"table_id": ("ImonAnt", "ImonGre")}, keep=False),
|
|
225
|
+
),
|
|
226
|
+
constraints=(
|
|
227
|
+
AddSupplementaryDataset.from_defaults("areacella", SourceDatasetType.CMIP6),
|
|
228
|
+
AddSupplementaryDataset.from_defaults("sftlf", SourceDatasetType.CMIP6),
|
|
229
|
+
)
|
|
230
|
+
if registry_file == "ilamb"
|
|
231
|
+
else (
|
|
232
|
+
AddSupplementaryDataset.from_defaults("areacello", SourceDatasetType.CMIP6),
|
|
233
|
+
AddSupplementaryDataset.from_defaults("sftof", SourceDatasetType.CMIP6),
|
|
228
234
|
),
|
|
229
235
|
group_by=("experiment_id",),
|
|
230
236
|
),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: climate-ref-ilamb
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: ILAMB diagnostic provider for the Rapid Evaluation Framework
|
|
5
|
-
Author-email: Nathan Collier <nathaniel.collier@gmail.com>
|
|
6
|
-
License: Apache-2.0
|
|
5
|
+
Author-email: Nathan Collier <nathaniel.collier@gmail.com>, Jared Lewis <jared.lewis@climate-resource.com>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
7
|
License-File: LICENCE
|
|
8
8
|
License-File: NOTICE
|
|
9
9
|
Classifier: Development Status :: 3 - Alpha
|
|
@@ -19,7 +19,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
19
19
|
Classifier: Topic :: Scientific/Engineering
|
|
20
20
|
Requires-Python: >=3.11
|
|
21
21
|
Requires-Dist: climate-ref-core
|
|
22
|
-
Requires-Dist: ilamb3>=2025.
|
|
22
|
+
Requires-Dist: ilamb3>=2025.5.20
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
|
|
25
25
|
# climate-ref-ilamb
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
climate_ref_ilamb/__init__.py,sha256=hMEkSjBY3yo-EbdMNOIvMSdGK14G2s5PERmWrBEtzFk,1414
|
|
2
|
+
climate_ref_ilamb/datasets.py,sha256=MVCt1pxV5dIfYLm6huC0BZWP5stCamYNwXzc7kKW5AI,799
|
|
3
|
+
climate_ref_ilamb/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
climate_ref_ilamb/standard.py,sha256=Z-q_SCrXHh7QAbRwpQq0UqOjsKY0y7XKlDn0fVyNcOI,10468
|
|
5
|
+
climate_ref_ilamb/configure/ilamb.yaml,sha256=4lzZhtn4nq4hV0qjXq9mWlN2cqIkhh_ICtYlL4gtW3k,1194
|
|
6
|
+
climate_ref_ilamb/configure/iomb.yaml,sha256=PxJAivXKNiYp-HbaYOJgUO8LnL9fmSztQKxLM_jFyvQ,944
|
|
7
|
+
climate_ref_ilamb/dataset_registry/ilamb.txt,sha256=_zqrq-Sa-0NTjPDFX6nQIeUalEc7tPrKr_CssOBlseg,1030
|
|
8
|
+
climate_ref_ilamb/dataset_registry/iomb.txt,sha256=b95CUBYEGfeoPyRGx_E267c-2GF-E_lc4XeFkNSOJMo,375
|
|
9
|
+
climate_ref_ilamb/dataset_registry/test.txt,sha256=gBjUJ6W-crghYqKN0QOFmjyqpMxKK50dU3SYTuIA6jM,206
|
|
10
|
+
climate_ref_ilamb-0.6.0.dist-info/METADATA,sha256=HeJDybVHP99XM7BMiPCqeaxHn4zygzIQydMf7Wu-ctc,2317
|
|
11
|
+
climate_ref_ilamb-0.6.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
12
|
+
climate_ref_ilamb-0.6.0.dist-info/licenses/LICENCE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
13
|
+
climate_ref_ilamb-0.6.0.dist-info/licenses/NOTICE,sha256=4qTlax9aX2-mswYJuVrLqJ9jK1IkN5kSBqfVvYLF3Ws,128
|
|
14
|
+
climate_ref_ilamb-0.6.0.dist-info/RECORD,,
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
climate_ref_ilamb/__init__.py,sha256=hMEkSjBY3yo-EbdMNOIvMSdGK14G2s5PERmWrBEtzFk,1414
|
|
2
|
-
climate_ref_ilamb/datasets.py,sha256=MVCt1pxV5dIfYLm6huC0BZWP5stCamYNwXzc7kKW5AI,799
|
|
3
|
-
climate_ref_ilamb/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
climate_ref_ilamb/standard.py,sha256=xloR7gtinWVILjBFsoFP9N2DbovmdXR8GawFXS9L90w,9834
|
|
5
|
-
climate_ref_ilamb/configure/ilamb.yaml,sha256=iq1u-VNBr622pxB4zUBRPAT_dNDBeW-hoWbivK6QHfo,799
|
|
6
|
-
climate_ref_ilamb/configure/iomb.yaml,sha256=HeA5DDp6Pi2NAkQh5d3Vxsc2LVY5ucKLua1W4A0vOTQ,494
|
|
7
|
-
climate_ref_ilamb/dataset_registry/ilamb.txt,sha256=gO-nyNjJQYyFdCQcRaDjA7DtC8YaLTrxfXixfGRq4Dw,817
|
|
8
|
-
climate_ref_ilamb/dataset_registry/iomb.txt,sha256=-ud-u2sTmamGNVFRS1GuJUfi-7UcMUMo_22h5Ke8kUg,284
|
|
9
|
-
climate_ref_ilamb/dataset_registry/test.txt,sha256=gBjUJ6W-crghYqKN0QOFmjyqpMxKK50dU3SYTuIA6jM,206
|
|
10
|
-
climate_ref_ilamb-0.5.5.dist-info/METADATA,sha256=pOhMANm5mtkx_QaeEMsMsva1uyo3aTUi-iJ6Xa4IBks,2258
|
|
11
|
-
climate_ref_ilamb-0.5.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
12
|
-
climate_ref_ilamb-0.5.5.dist-info/licenses/LICENCE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
13
|
-
climate_ref_ilamb-0.5.5.dist-info/licenses/NOTICE,sha256=4qTlax9aX2-mswYJuVrLqJ9jK1IkN5kSBqfVvYLF3Ws,128
|
|
14
|
-
climate_ref_ilamb-0.5.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|