Skip to content

Commit 53a7210

Browse files
Fix pynorms error
1 parent e28d2dc commit 53a7210

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ush/python/pygfs/task/stage_ic.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ def execute_stage(self, stage_dict: Dict[str, Any]) -> None:
6262

6363
if stage_dict.DO_REPAIR_REPLAY is True:
6464
# Download f03 replay analysis
65-
subprocess.run("aws s3 cp --no-sign-request s3://noaa-ufs-gefsv13replay-pds/" + YYYY + "/" + MM + "/" + YYYYMMDDHH + "/GFSPRS.GrbF03 ./", shell=True)
66-
subprocess.run("aws s3 cp --no-sign-request s3://noaa-ufs-gefsv13replay-pds/" + YYYY + "/" + MM + "/" + YYYYMMDDHH + "/GFSFLX.GrbF03 ./", shell=True)
65+
aws_cmd = "aws s3 cp --no-sign-request"
66+
aws_url = "s3://noaa-ufs-gefsv13replay-pds/"
67+
subprocess.run(aws_cmd + " " + aws_url + YYYY + "/" + MM + "/" + YYYYMMDDHH + "/GFSPRS.GrbF03 ./", shell=True)
68+
subprocess.run(aws_cmd + " " + aws_url + YYYY + "/" + MM + "/" + YYYYMMDDHH + "/GFSFLX.GrbF03 ./", shell=True)
6769

6870
if not os.path.isdir(stage_dict.ROTDIR):
6971
raise FileNotFoundError(f"FATAL ERROR: The ROTDIR ({stage_dict.ROTDIR}) does not exist!")

0 commit comments

Comments
 (0)