Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VERIFY
CIF
Commits
3c493cd8
Commit
3c493cd8
authored
Dec 20, 2021
by
Antoine Berchet
Browse files
Update test for CHIMERE bands to include full domain
parent
de9f22b3
Changes
4
Hide whitespace changes
Inline
Side-by-side
docs/source/usertutos/first-simu/chimere/run.rst
View file @
3c493cd8
Run the system
:
Run the system
==================
Launch the CIF with the yaml.
...
...
pycif/plugins/controlvects/standard/init_xb.py
View file @
3c493cd8
...
...
@@ -24,7 +24,7 @@ def init_xb(cntrlv, trid, **kwargs):
comp
,
trcr
=
trid
datavect
=
cntrlv
.
datavect
# If no definition is specified for the control vector in the Yaml,
# return empty control vector
tracer
=
getattr
(
getattr
(
getattr
(
getattr
(
...
...
pycif/plugins/transforms/system/fromcontrol/forward.py
View file @
3c493cd8
...
...
@@ -99,6 +99,12 @@ def forward(
# Deals with different resolutions
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
if
getattr
(
tracer
,
"type"
,
"scalar"
)
==
"scalar"
:
# Read the tracer array and apply the present control vector
...
...
tests/chimere/fixtures/setups/melchior.py
View file @
3c493cd8
...
...
@@ -62,8 +62,8 @@ def setup_melchior(ref_chimere):
},
"file_freq"
:
"3H"
,
"hresol"
:
"bands"
,
"bands_lat"
:
[
4
6
,
47
,
50
,
5
3
],
"bands_lon"
:
[
-
1
,
0
,
3
,
6
,
7.5
],
"bands_lat"
:
[
4
5
,
47
,
50
,
5
4
],
"bands_lon"
:
[
-
2
,
0
,
3
,
6
,
8
],
"vresol"
:
"kbands"
,
"kbands"
:
[
0
,
10
,
15
,
17
],
"nlev"
:
17
,
...
...
@@ -216,7 +216,7 @@ def setup_melchior(ref_chimere):
},
"CO"
:
{
"hresol"
:
"bands"
,
"bands_lat"
:
[
45
,
47
,
52
,
5
3
],
"bands_lat"
:
[
45
,
47
,
52
,
5
4
],
"bands_lon"
:
[
-
1.5
,
0
,
6.5
,
8
],
"is_lbc"
:
True
,
"nlev"
:
17
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment