hafs-community / HAFS

Hurricane Analysis and Forecast System
Other
29 stars 54 forks source link

Improve HAFS scripts to use cpreq and cpfs production utilities #240

Open BinLiu-NOAA opened 9 months ago

BinLiu-NOAA commented 9 months ago

Description

Provide a clear and concise description of the requested feature/capability. From NCO SPA: Improve the HAFS scripts to use cpreq and cpfs production utilities at the next upgrade.

Most of the HAFS v1.0 scripts are using $NCP defined in the ush/hafs_runcmd.sh.inc to copy the data files. Suggest to define the define of NCP as the following that allows $NCP to be redefined and used in different scripts - NCP=${NCP:-"/bin/cp -p "}

For example, allow jobs to use "cpreq" utility to copy needed input data or use "cpfs" to copy output data files to $COMOU. For example, define NCP="cpfs" in jhafs_gempak.ecf file.

Please refer to WCOSS implementaion doc, page 8 for usage of cpreq and cpfs -

Proposed solution

How should the new feature/capability be added? If you have thoughts on the implementation strategy, please share them here.

Status (optional)

Do you (or a colleague) plan to work on adding this feature?

Related to (optional)

Directly reference any related issues or PRs in this or other repositories, and describe how they are related. Examples:

BinLiu-NOAA commented 5 months ago

Based on the NCO SPA's suggestion, the NCP and FCP variables are defined in ush/hafs_runcmd.sh.inc. Under NCO environment, NCP is set as cpreq, FCP is set as cpfs. If desired, they can be easily override at ecf or jjob levels. Meanwhile, the jobs/scripts/ush scripts were improved to use the NCP and FCP commands properly. Please see commit: e4cf12a.