Well, you can try this:
use coads_climatology.cdf Let var3d = SST ! Length of the new axis (longitude * latitude) Let lonlat = `var3D,R=ISIZE`*`var3D,R=JSIZE` ! Define a 2-D grid and a variable on it. Define Axis /X=1:`lonlat`:1 land Let var2d = 0*x[gx=land] + 0*t[gt=var3d] ! Use the RESHAPE function to create the output 2-D variable. Let outvar = RESHAPE(var3d,var2d) Save /File=file_2d.nc outvar And then if you want (land, time) instead of (time,land), you can use NCO operators: ncpdq -a LAND,TIME file_2d.nc file_2d_bis.nc Bruno On 02/12/2016 11:23 AM, Kishore Ragi wrote:
--
|