There were files which has same repeated wrong time axis.
Each file has different year title, but it has same time axis inside.
(Can check with “show grid/t variable“)
So, this script is very super useful for gathering split files with wrong time axis.
!Target files: SST.1991.nc, SST.1992.nc … SST.1999.nc
!Target year: 1991 to 1999
!Variable name and timestep: SST, daily
use “SST.1991.nc” !First year
DEFINE AXIS/T=”1-JAN-1991“:”31-DEC-1999“:1/UNIT=day tannual
LET new_SST = SST[d=1,gt=tannual]
let kk = 1
LET new_SST = SST[d=1,gt=tannual];\
let kk = `kk + 1`;\
can d 1;\
1. Make time axis
2. Set timesteps
So, Simple 🙂