I have tried to merge multiple nc file using ncl in ubuntu windows 10 platform. i have used the following simple code.
fils = systemfunc("ls *.nc") ; checks all files with nc file extensions f1 = addfiles(fils,"r") ; reads the files and assigns them to f1 prec = f1[:]->pr(:,{55:70},{134:149}) ; merges all files with variable name "pr" and saves it into prec
printVarSummary(prec)
Is anyone who can give me a hint on how to save the output into nc file?