[Thread Prev][Thread Next][Index]

Re: [ferret_users] How to assign new value to a column


Try something like

let new_temp = if i ne 51  then temp else 0.5*(temp[i=@shf:-1]+temp[i=@shf:1])


On 06/02/18 13:34, Changshui Xia wrote:
Dear ferreters,
  I have a netcdf data such as temp[600,500], I want to assign the average value of column 50 and column 52 to column 51.
eg.  temp[51,:] equal to 0.5*(temp[50,:] +temp[52,:] )
How to achieve this using ferret?
Thank you in advance.

[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement