Hi, I have a nc file named temp.nc of dimension being 360x180x40 and 40 is the number of the depth coordinate. Now I want to calculate the maximum value over all horizontal levels so that I get the output of 360x180 in which each value is the maximum of the vertical column at each grid point. Is there a way to do this using nco? Also, can I get the location of the maximum value? In another word, how do I know from which depth does the maximum come from at each grid point. Kind regards, Shizhu
Hello there, let's say, now I have five pathes of data. Is it possible for nco to merge them all to get a global one which is stored in a single nc file? This sounds weird but now I do encounter this kind of problem. Best Shizhu
Hi, as the User Guide says, supporting NaN arithmetic is costly and inefficient. Good to know that. Thank you for the speedy answer :)
I have a nc file with the variabletemp(lon,lat,depth). Now I want a cross section of it, from[lon1,lat1] to [lon2,lat2], and this section is not in the latitudinal or longitudinal direction. Is this possible for nco to manage it? I try to use matlab to interpolate it. But matlab has the problem with NaN interpolation. Best, Shizhu
Dear Henry, I just tried your method, and it works :) Or just simply like this: ncap2 -s "depth=-depth" in.nc out.nc Thanks~ Shizhu
Hi, the depth dimension in my nc file is negative, from 0 to -1000. How can I change it to positive, i.e., to make sure the depth from 0 to +1000. Thanks, Shizhu
Dear Charlie, Roger. Thx~
Hi, I have a nc file temp.nc, with a variable called temp(lon,lat,depth), where the length of depth is 20. Now I want to replace the values of the last level with the values of the second last level: temp(:,:,20) = temp(:,:,19) How can I do this with NCO :) Thanks. Shizhu