I have a 1D variable describing height in my NetCDF file. I'd like to create an 3D variable that is uniform on the X and Y axes from this column of data. Is there an easy way to do this in NCO?
Asked
Active
Viewed 383 times
1 Answers
5
If the 1-D axes are named x and y and z, then construct a 3D field containing z that is uniform over x and y with ncap2:
ncap2 -s 'z_3D[z,y,x]=z' in.nc out.nc
Pretty cool, huh?

Charlie Zender
- 5,929
- 14
- 19
-
Cool, robust, well supported, and critical to many areas of modern science in my opinion. Thank you! – Scott Sep 22 '17 at 01:49