[ncl-talk] about where as mask in NCL
yogesh kumkar
yogeshkumkar at gmail.com
Tue Feb 6 09:47:41 MST 2018
Hello,
1) I have a mask 2d var 'Mfc', includes 0 and 1.
2) I have a variable 'mod_PCT_PFT' which I want to replace values from.
3) to the netcdf file opened for writing the variable 'PCT_PFT' which has
bigger domain.
I want to replace the values of 'mod_PCT_PFT' (where Mfc == 1) in to the
'PCT_PFT' only.
Everything is 2d.
I am using
masked_PCT_PFT = where(Mfc .eq. 1, PCT_PFT , mod_PCT_PFT)
FM->PCT_PFT = masked_PCT_PFT
but it does not work.
Any suggestions?
Thank you,
Yogesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180206/9f99901b/attachment.html>
More information about the ncl-talk
mailing list