The error occurs because dimNames and dimSizes are of size three [3] while dimUnlim is of size four [4]. substitute dimUnlim=(/True,False,False/) Good luck