Hello All,
When I perform my REPEAT over a GO MYSCRIPT, it seems to truncate my vertical axis, and I get the following error:
!-> REPEAT: K=2
**ERROR: illegal limits: "K" does not exist at K=2
Axis extremes are K=1
USE ERA5_UV8PLbottom_DJF.nc
let zval = z[gz='U']
REPEAT/K=1:8:1 \
(let NamePL = zval; \
Go RawERA5WindSpeed `k`, `NamePL`, DJF; \
USE ERA5_UV8PLbottom_DJF.nc)
Within the Go script, (quite lengthy so I won't include it here just yet), I create new axis, grids, datasets, open them, cancel them multiple times. To try to preserve the state, I put the following sandwiching the beginning and end of my script.
SET GRID/SAVE
SET DATA/SAVE
DEFINE REGION/DEFAULT save
CANCEL DATA/ALL
CANCEL GRID
CANCEL AXIS/ALL
CANCEL VAR/ALL
SET DATA/RESTORE
SET GRID/RESTORE
DEFINE REGION/DEFAULT save
Simpler REPEAT over the same dataset work just fine:
REPEAT/K=1:8:1 list/I=1:1/J=1:1/L=1:1 'U'
So what am I missing? As a last attempt, I tried to add the last part above USE ERA5_UV8PLbottom_DJF.nc, to the end of my repeat, to no effect.
Many Thanks and Regards,
Alexander