Skip to content

Commit 27f8f30

Browse files
committed
Update: movie
1 parent ba57471 commit 27f8f30

File tree

2 files changed

+27
-6
lines changed

2 files changed

+27
-6
lines changed

bin/wqf-mov

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ do
2424
continue
2525
fi
2626
an="${fn/in___/an___}"
27+
if [ ! -f "${an}" ]
28+
then
29+
continue
30+
fi
2731
f1="${fn/in___/fc_1_}"
2832
f2="${fn/in___/fc_2_}"
2933
f3="${fn/in___/fc_3_}"

wqf/val/mov.py

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,13 @@ def generate_figures(args):
119119
ref.close()
120120
obs.close()
121121

122-
obs = reader.read(args.cube_id, depth_level=3.0)
123-
ref, pre = BGC(args).predict(obs)
124-
plot_analysis(pre, period=period)
125-
pre.close()
126-
ref.close()
127-
obs.close()
122+
if not args.no_analysis:
123+
obs = reader.read(args.cube_id, depth_level=3.0)
124+
ref, pre = BGC(args).predict(obs)
125+
plot_analysis(pre, period=period)
126+
pre.close()
127+
ref.close()
128+
obs.close()
128129

129130
for h in [1, 2, 3, 4, 5, 6, 7]:
130131
obs = reader.read(args.cube_id, depth_level=3.0)
@@ -154,6 +155,22 @@ def generate_figures(args):
154155
required=False,
155156
dest="aws",
156157
)
158+
parser.add_argument(
159+
"--analysis",
160+
help="plot BGCM analysis",
161+
action="store_true",
162+
default=True,
163+
required=False,
164+
dest="analysis",
165+
)
166+
parser.add_argument(
167+
"--no-analysis",
168+
help="do not plot BGCM analysis",
169+
action="store_false",
170+
default=False,
171+
required=False,
172+
dest="analysis",
173+
)
157174
parser.add_argument(
158175
"--gaussian-filter",
159176
help="specify the standard deviation (pixels) of a lateral "

0 commit comments

Comments
 (0)