Hi Saurabh, If you really need to save it then you you can use multiple loops ! assume L is unlimited so we do not need to specify LLIMITS save by level to reduce memory. save/i=1/j=1/k=1/l=1/m=1/ilimits=1:1:360/jlimits=1:126/klimits=1:36/mlimits=1:11/file=myfile.nc/clob myvar repeat/l=1:312 (repeat/range=1:11/name=mm (repeat/range=1:36/name=kk save/app/file=myfile.nc/m=`mm`/k=`kk` myvar)) To reduce file size you can set the variable to a 4 byte real rather than the default double precision. set var/outtype=outtype myvar Also I'd strongly recommend using deflation and chunking for lossless compression SET LIST/XCHUNK=360/YCHUNK=126/ZCHUNK=1/TCHUNK=1/ECHUNK=1/DEFLATE=1/SHUFFLE/NCFORMAT=4 If you want to change the chunking for the X,Y,Z and E dimensions then you should change the looping above to match e.g. if ZCHUNK=9 ! Save blocks of 9 levels repeat/l=1:312 (repeat/range=1:11/name=mm (repeat/range=1:36:9/name=kk save/app/file=myfile.nc/m=`mm`/k=`kk`:`kk+8` myvar)) Cheers, Russ On 23/07/18 13:15, saurabh rathore wrote:
|