Commit 3c493cd8 authored by Antoine Berchet's avatar Antoine Berchet
Browse files

Update test for CHIMERE bands to include full domain

parent de9f22b3
Run the system: Run the system
================== ==================
Launch the CIF with the yaml. Launch the CIF with the yaml.
......
...@@ -24,7 +24,7 @@ def init_xb(cntrlv, trid, **kwargs): ...@@ -24,7 +24,7 @@ def init_xb(cntrlv, trid, **kwargs):
comp, trcr = trid comp, trcr = trid
datavect = cntrlv.datavect datavect = cntrlv.datavect
# If no definition is specified for the control vector in the Yaml, # If no definition is specified for the control vector in the Yaml,
# return empty control vector # return empty control vector
tracer = getattr(getattr(getattr(getattr( tracer = getattr(getattr(getattr(getattr(
......
...@@ -99,6 +99,12 @@ def forward( ...@@ -99,6 +99,12 @@ def forward(
# Deals with different resolutions # Deals with different resolutions
xmod_out[x] = scale2map(tmp, tracer, cdates, tracer.domain) xmod_out[x] = scale2map(tmp, tracer, cdates, tracer.domain)
if trcr == "CH4":
print(__file__)
import code
code.interact(local=dict(locals(), **globals()))
# Now deals with scalars and physical variables # Now deals with scalars and physical variables
if getattr(tracer, "type", "scalar") == "scalar": if getattr(tracer, "type", "scalar") == "scalar":
# Read the tracer array and apply the present control vector # Read the tracer array and apply the present control vector
......
...@@ -62,8 +62,8 @@ def setup_melchior(ref_chimere): ...@@ -62,8 +62,8 @@ def setup_melchior(ref_chimere):
}, },
"file_freq": "3H", "file_freq": "3H",
"hresol": "bands", "hresol": "bands",
"bands_lat": [46, 47, 50, 53], "bands_lat": [45, 47, 50, 54],
"bands_lon": [-1, 0, 3, 6, 7.5], "bands_lon": [-2, 0, 3, 6, 8],
"vresol": "kbands", "vresol": "kbands",
"kbands": [0, 10, 15, 17], "kbands": [0, 10, 15, 17],
"nlev": 17, "nlev": 17,
...@@ -216,7 +216,7 @@ def setup_melchior(ref_chimere): ...@@ -216,7 +216,7 @@ def setup_melchior(ref_chimere):
}, },
"CO": { "CO": {
"hresol": "bands", "hresol": "bands",
"bands_lat": [45, 47, 52, 53], "bands_lat": [45, 47, 52, 54],
"bands_lon": [-1.5, 0, 6.5, 8], "bands_lon": [-1.5, 0, 6.5, 8],
"is_lbc": True, "is_lbc": True,
"nlev": 17, "nlev": 17,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment