Skip to content

Commit b5a907c

Browse files
Adding CLI arguments for ERA5 optional
1 parent 1248049 commit b5a907c

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

gencast_fp/view/gencast_fp_cli.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ def main():
5151
default=30,
5252
help="Number of steps for rollout (default 30, 15 days)",
5353
)
54+
preprocess_args.add_argument(
55+
"--era5_sst",
56+
type=bool,
57+
default=False,
58+
help="If True, use ERA5 SST instead of OSTIA-Reynolds",
59+
)
5460

5561
# ---------- predict ----------
5662
predict_args = sub.add_parser("predict", help="Run prediction only")
@@ -114,6 +120,12 @@ def main():
114120
run_args.add_argument(
115121
"--expid", type=str, default="f5295",
116122
help="Experiment ID used during preprocessing")
123+
run_args.add_argument(
124+
"--era5_sst",
125+
type=bool,
126+
default=False,
127+
help="If True, use ERA5 SST instead of OSTIA-Reynolds",
128+
)
117129

118130
run_args.add_argument(
119131
"--ckpt", type=str, default=None,
@@ -155,7 +167,8 @@ def main():
155167
args.output_dir,
156168
args.expid,
157169
args.res_value,
158-
args.nsteps
170+
args.nsteps,
171+
args.era5_sst
159172
)
160173

161174
elif args.cmd == "predict":
@@ -217,6 +230,7 @@ def main():
217230
args.expid,
218231
args.res_value,
219232
args.nsteps,
233+
args.era5_sst
220234
)
221235
else:
222236
logging.info("[1/3] Skipping preprocess")

0 commit comments

Comments
 (0)