Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LAKE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andrey Klenin
LAKE
Commits
52bc66f8
Commit
52bc66f8
authored
4 years ago
by
Victor Stepanenko
Browse files
Options
Downloads
Patches
Plain Diff
Plotting of TKE budget terms series added
parent
248d1a6e
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
tools/plot_multtimser.py
+13
-13
13 additions, 13 deletions
tools/plot_multtimser.py
tools/plot_timser.py
+22
-1
22 additions, 1 deletion
tools/plot_timser.py
with
35 additions
and
14 deletions
tools/plot_multtimser.py
+
13
−
13
View file @
52bc66f8
...
...
@@ -19,8 +19,8 @@ font = {'family': 'serif',
rc
(
'
font
'
,
**
font
)
rc
(
'
text
'
,
usetex
=
True
)
rc
(
'
text.latex
'
,
unicode
=
True
)
rc
(
'
text.latex
'
,
preamble
=
'
\usepackage[utf8]{inputenc}
'
)
rc
(
'
text.latex
'
,
preamble
=
'
\usepackage[russian]{babel}
'
)
rc
(
'
text.latex
'
,
preamble
=
r
'
\usepackage[utf8]{inputenc}
'
)
rc
(
'
text.latex
'
,
preamble
=
r
'
\usepackage[russian]{babel}
'
)
nplots
=
int
(
input
(
"
Enter number of variables on a figure
"
))
...
...
This diff is collapsed.
Click to expand it.
tools/plot_timser.py
+
22
−
1
View file @
52bc66f8
...
...
@@ -143,6 +143,7 @@ def plot_timeser(plotid,nvar,legendcommon) :
uspeed_
=
num
;
num
+=
1
disch_
=
num
;
num
+=
1
epsilon_
=
num
;
num
+=
1
TKE_budget_terms_
=
num
;
num
+=
1
ustar_
=
num
;
num
+=
1
windwork_
=
num
;
num
+=
1
mldmod_
=
num
;
num
+=
1
...
...
@@ -196,6 +197,7 @@ def plot_timeser(plotid,nvar,legendcommon) :
str
(
uspeed_
)
+
"
- horizontal component of speed
\n
"
+
\
str
(
disch_
)
+
"
- x-component of discharge
\n
"
+
\
str
(
epsilon_
)
+
"
- dissipation rate
\n
"
+
\
str
(
TKE_budget_terms_
)
+
"
- TKE budget terms
\n
"
+
\
str
(
ustar_
)
+
"
- Friction velocity
\n
"
+
\
str
(
windwork_
)
+
"
- Work by wind at the water surface
\n
"
+
\
str
(
mldmod_
)
+
"
- Mixed-layer depth, m
\n
"
+
\
...
...
@@ -256,7 +258,7 @@ def plot_timeser(plotid,nvar,legendcommon) :
#path_ = ['../results/IseoAugust2011_cdE-1/time_series/']#, \
# '../results/IseoAugust2011_cdE-1/time_series/']
#path_ = ['../results/Uvs1979-2017/time_series/']#, \
path_
=
[
'
../results/
Mojai2016-2017_damw5
/time_series/
'
]
path_
=
[
'
../results/
river
/time_series/
'
]
#path_ = ['../results/IseoJuneOctober2011_cdE-1/time_series/']
#path_ = ['../results/IseoJuneOctober2011_botfric1backdiff1/time_series/']#, \
# '../results/IseoJuneOctober2011_botfric=1/time_series/'] #, \
...
...
@@ -475,6 +477,25 @@ def plot_timeser(plotid,nvar,legendcommon) :
npaths
=
len
(
path_
)
sciformat
=
1
logscale
=
1
if
int
(
nplot
)
==
TKE_budget_terms_
:
# dissipation rate, m^2/s^3
basename
=
'
TKE_budget_terms_series 1 1
'
fileout
=
'
TKE_budget_terms_wat
'
nheader
=
10
ncol
=
[
6
,
7
,
8
,
9
,
10
]
legend
=
[
'
TKE tendency
'
,
'
TKE turbulent transport
'
,
\
'
TKE shear production
'
,
'
TKE production/sink by buoyancy
'
,
\
'
TKE dissipation rate, 0.4~m
'
]
labelx
=
'
Time, days
'
labely
=
'
TKE budget terms, m$^2$/s$^3$
'
timescale
=
mdays
# 365/12*24 - number of hours in a month
ctime
=
5
#time0 = month_doy(5,ny)/mdays #Initial time
time0
=
0.
#month_doy(7,ny)/mdays + 17./31. #Initial time, Bolshoi Vilui 2015
path
=
path_
nameexp
=
nameexp_
npaths
=
len
(
path_
)
sciformat
=
1
#logscale = 1
if
int
(
nplot
)
==
ustar_
:
# Friction velocity
basename
=
'
T_fluxes 1 1
'
fileout
=
'
Ustar_ser
'
...
...
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