To convert old netcdf forcing files

From Surfex v7, the format for the netcdf forcing files changed.

To turn the 2 old forcing files FORCING.nc and PARAMS.nc to FORCING_NEW.nc:

  • download
    make_new_forc.sh and
    TIME.py
    and put these two files in the same directory as FORCING.nc and PARAMS.nc
  • do
    ./make_new_forc.sh year month day hour min sec forcing_time_step units [seconds/minutes/hours/days]
    where year month day hour min sec refer to the initial date of the simulation, and units is for the time step of the forcing.
  • To use the new NETCDF forcing file FORCING_NEW.nc, copy it in your rundir directory and rename it FORCING.nc.

(method developed by Ramdane Alkama)