Why don't you load the files in as an ensemble directly rather than individually? There's no real need to merge the files but the following should work.
! load all ensemble members at once
let myfiles = spawn("ls -1 tmp?.nc")
ensemble tmp_all = myfiles
! This works for me. All members are defined.
VARIABLE : I[I=1:2]
FILENAME : tmp_ensemble.nc
SUBSET : 2 by 2 points (X-E (realization))
1 / 1: 1.000 2.000
2 / 2: 1.000 2.000
On 29/04/18 00:01, Ryo Furue wrote: