Long-form symlinks for final atm restart file should be relative, not absolute #1446
Description
Expected behavior
Long-form symlinks for the final restart time should be relative (pointing to the files in the same directory), not contain the full path.
Current behavior
The long-form symlinks for the final restart time use absolute paths to point to files in the same directory. This will cause issues if the directory is moved or archived in a tarball.
lrwxrwxrwx 1 wkolczyn global 128 Apr 4 06:05 20211227.000000.ca_data.tile1.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/ca_data.tile1.nc
lrwxrwxrwx 1 wkolczyn global 128 Apr 4 06:05 20211227.000000.ca_data.tile2.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/ca_data.tile2.nc
lrwxrwxrwx 1 wkolczyn global 128 Apr 4 06:05 20211227.000000.ca_data.tile3.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/ca_data.tile3.nc
lrwxrwxrwx 1 wkolczyn global 128 Apr 4 06:05 20211227.000000.ca_data.tile4.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/ca_data.tile4.nc
lrwxrwxrwx 1 wkolczyn global 128 Apr 4 06:05 20211227.000000.ca_data.tile5.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/ca_data.tile5.nc
lrwxrwxrwx 1 wkolczyn global 128 Apr 4 06:05 20211227.000000.ca_data.tile6.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/ca_data.tile6.nc
lrwxrwxrwx 1 wkolczyn global 123 Apr 4 06:05 20211227.000000.coupler.res -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/coupler.res
lrwxrwxrwx 1 wkolczyn global 126 Apr 4 06:05 20211227.000000.fv_core.res.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/fv_core.res.nc
lrwxrwxrwx 1 wkolczyn global 132 Apr 4 06:05 20211227.000000.fv_core.res.tile1.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/fv_core.res.tile1.nc
lrwxrwxrwx 1 wkolczyn global 132 Apr 4 06:05 20211227.000000.fv_core.res.tile2.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/fv_core.res.tile2.nc
lrwxrwxrwx 1 wkolczyn global 132 Apr 4 06:05 20211227.000000.fv_core.res.tile3.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/fv_core.res.tile3.nc
lrwxrwxrwx 1 wkolczyn global 132 Apr 4 06:05 20211227.000000.fv_core.res.tile4.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/fv_core.res.tile4.nc
lrwxrwxrwx 1 wkolczyn global 132 Apr 4 06:05 20211227.000000.fv_core.res.tile5.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/fv_core.res.tile5.nc
lrwxrwxrwx 1 wkolczyn global 132 Apr 4 06:05 20211227.000000.fv_core.res.tile6.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/fv_core.res.tile6.nc
lrwxrwxrwx 1 wkolczyn global 135 Apr 4 06:05 20211227.000000.fv_srf_wnd.res.tile1.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/fv_srf_wnd.res.tile1.nc
lrwxrwxrwx 1 wkolczyn global 135 Apr 4 06:05 20211227.000000.fv_srf_wnd.res.tile2.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/fv_srf_wnd.res.tile2.nc
lrwxrwxrwx 1 wkolczyn global 135 Apr 4 06:05 20211227.000000.fv_srf_wnd.res.tile3.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/fv_srf_wnd.res.tile3.nc
lrwxrwxrwx 1 wkolczyn global 135 Apr 4 06:05 20211227.000000.fv_srf_wnd.res.tile4.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/fv_srf_wnd.res.tile4.nc
lrwxrwxrwx 1 wkolczyn global 135 Apr 4 06:05 20211227.000000.fv_srf_wnd.res.tile5.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/fv_srf_wnd.res.tile5.nc
lrwxrwxrwx 1 wkolczyn global 135 Apr 4 06:05 20211227.000000.fv_srf_wnd.res.tile6.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/fv_srf_wnd.res.tile6.nc
lrwxrwxrwx 1 wkolczyn global 134 Apr 4 06:05 20211227.000000.fv_tracer.res.tile1.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/fv_tracer.res.tile1.nc
lrwxrwxrwx 1 wkolczyn global 134 Apr 4 06:05 20211227.000000.fv_tracer.res.tile2.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/fv_tracer.res.tile2.nc
lrwxrwxrwx 1 wkolczyn global 134 Apr 4 06:05 20211227.000000.fv_tracer.res.tile3.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/fv_tracer.res.tile3.nc
lrwxrwxrwx 1 wkolczyn global 134 Apr 4 06:05 20211227.000000.fv_tracer.res.tile4.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/fv_tracer.res.tile4.nc
lrwxrwxrwx 1 wkolczyn global 134 Apr 4 06:05 20211227.000000.fv_tracer.res.tile5.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/fv_tracer.res.tile5.nc
lrwxrwxrwx 1 wkolczyn global 134 Apr 4 06:05 20211227.000000.fv_tracer.res.tile6.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/fv_tracer.res.tile6.nc
lrwxrwxrwx 1 wkolczyn global 129 Apr 4 06:05 20211227.000000.phy_data.tile1.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/phy_data.tile1.nc
lrwxrwxrwx 1 wkolczyn global 129 Apr 4 06:05 20211227.000000.phy_data.tile2.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/phy_data.tile2.nc
lrwxrwxrwx 1 wkolczyn global 129 Apr 4 06:05 20211227.000000.phy_data.tile3.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/phy_data.tile3.nc
lrwxrwxrwx 1 wkolczyn global 129 Apr 4 06:05 20211227.000000.phy_data.tile4.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/phy_data.tile4.nc
lrwxrwxrwx 1 wkolczyn global 129 Apr 4 06:05 20211227.000000.phy_data.tile5.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/phy_data.tile5.nc
lrwxrwxrwx 1 wkolczyn global 129 Apr 4 06:05 20211227.000000.phy_data.tile6.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/phy_data.tile6.nc
lrwxrwxrwx 1 wkolczyn global 129 Apr 4 06:05 20211227.000000.sfc_data.tile1.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/sfc_data.tile1.nc
lrwxrwxrwx 1 wkolczyn global 129 Apr 4 06:05 20211227.000000.sfc_data.tile2.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/sfc_data.tile2.nc
lrwxrwxrwx 1 wkolczyn global 129 Apr 4 06:05 20211227.000000.sfc_data.tile3.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/sfc_data.tile3.nc
lrwxrwxrwx 1 wkolczyn global 129 Apr 4 06:05 20211227.000000.sfc_data.tile4.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/sfc_data.tile4.nc
lrwxrwxrwx 1 wkolczyn global 129 Apr 4 06:05 20211227.000000.sfc_data.tile5.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/sfc_data.tile5.nc
lrwxrwxrwx 1 wkolczyn global 129 Apr 4 06:05 20211227.000000.sfc_data.tile6.nc -> /work2/noaa/global/wkolczyn/noscrub/global-workflow/com_refactor_full/gfs.20211222/00//model_data/atmos/restart/sfc_data.tile6.nc
Machines affected
All
To Reproduce
Run global workflow for any experiment with a restart interval and observe the atm restart directory,
Context
Restart files generally contain the valid time of the restart (YYYYMMDD.HHmmss
), but for the restart files written at the end of the forecast that verification time is omitted. For uniformity, symlinks were added for these final restart files that contain the verification time.
Additional Information
This issue may be mooted by #1277 (see also ufs-community/ufs-weather-model#1577)
Possible Implementation
Make the links relative or just wait for #1277