Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PE_CBL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stefano Serafin
PE_CBL
Commits
2d2041c4
Commit
2d2041c4
authored
Jul 9, 2024
by
Stefano Serafin
Browse files
Options
Downloads
Patches
Plain Diff
minor tgraphical weaks to ffigure 1
parent
72523879
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
PE_CBL.py
+10
-9
10 additions, 9 deletions
PE_CBL.py
graphics.py
+1
-1
1 addition, 1 deletion
graphics.py
with
11 additions
and
10 deletions
PE_CBL.py
+
10
−
9
View file @
2d2041c4
...
...
@@ -54,15 +54,16 @@ if __name__ == '__main__':
'
do_parameter_estimation
'
:
False
,
'
parameter_inflation_rtps_alpha
'
:
np
.
array
([
1.
,
1.
,
1.0
]),
}
integration_dt
=
0.25
*
cbl_settings
[
"
dz
"
]
**
2
/
cbl_settings
[
"
Kmax
"
]
CASE
=
'
fig01
'
CASE
=
'
fig02
'
#CASE = 0 # eddy diffusivity plots
#CASE = 1 # deterministic run
#CASE = 2 # ensemble run, no data assimilation
#CASE = 3 # single assimilation
#CASE = 4 # assimilation cycle
#CASE = 5 # parameter identifiability
#CASE = 6 # parameter estimation
#CASE = 0 # eddy diffusivity plots
if
CASE
==
'
fig01
'
:
...
...
@@ -72,19 +73,19 @@ if __name__ == '__main__':
cbl_det
.
run
(
output_full_history
=
True
)
# Panel b) ensemble run
cbl_settings
[
'
perturbations_theta_amplitude
'
]
=
1.0
cbl_settings
[
'
perturbations_type
'
]
=
"
smooth
"
cbl_settings
[
'
perturb_ensemble_state
'
]
=
Fals
e
cbl_settings
[
'
perturbations_theta_amplitude
'
]
=
0.1
cbl_settings
[
'
perturbations_type
'
]
=
"
uniform
"
cbl_settings
[
'
perturb_ensemble_state
'
]
=
Tru
e
cbl_settings
[
'
perturb_ensemble_parameters
'
]
=
True
cbl_settings
[
'
perturbations_symmetric
'
]
=
True
cbl_settings
[
'
parameter_number
'
]
=
1
cbl_settings
[
'
parameter_transform
'
]
=
[
parameter_transform_log
]
cbl_settings
[
'
parameter_ensemble_min
'
]
=
np
.
array
([
1
])
cbl_settings
[
'
parameter_ensemble_max
'
]
=
np
.
array
([
4
])
cbl_settings
[
'
parameter_ensemble_min
'
]
=
np
.
array
([
0.5
])
cbl_settings
[
'
parameter_ensemble_max
'
]
=
np
.
array
([
4
.5
])
cbl_settings
[
'
parameter_true
'
]
=
np
.
array
([
1.5
])
cbl_settings
[
'
do_parameter_estimation
'
]
=
False
cbl_ens
=
CBL
(
cbl_settings
)
cbl_ens
.
initialize
(
20
)
cbl_ens
.
initialize
(
20
0
)
cbl_ens
.
run
(
output_full_history
=
True
)
# Panel c) sensitivity to p
...
...
@@ -135,7 +136,7 @@ if __name__ == '__main__':
fig
.
savefig
(
'
fig01.png
'
,
format
=
'
png
'
,
dpi
=
300
)
p
.
close
(
fig
)
if
CASE
==
0
:
# plot K profile examples
el
if
CASE
==
0
:
# plot K profile examples
p_factors
=
[
0.2
,
0.5
,
1
,
2
,
4
,
6
]
theta_profiles
=
[]
...
...
This diff is collapsed.
Click to expand it.
graphics.py
+
1
−
1
View file @
2d2041c4
...
...
@@ -232,7 +232,7 @@ def plot_CBL_identifiability(cbl,figtitle,ax=None):
c
=
ax
.
pcolormesh
(
times
/
3600.
,
zt
,
p_x_correlation
,
vmin
=-
1
,
vmax
=
1
,
cmap
=
'
RdBu_r
'
)
ax
.
contour
(
times
/
3600.
,
zt
,
theta
.
mean
(
axis
=
0
),
np
.
linspace
(
cbl
.
theta_0
,
cbl
.
theta_0
+
cbl
.
gamma
*
zmax
,
ncont
),
colors
=
'
lightgrey
'
,
colors
=
'
black
'
,
linestyles
=
'
--
'
,
linewidths
=
0.75
)
ax
.
set_ylim
([
0
,
zmax
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment