[ncl-talk] Logical statement with multiple conditions

Rabah Hachelaf hachelaf at sca.uqam.ca
Wed Jul 1 23:37:00 MDT 2015


Hi NCL users,

This statement did not work for me :

idx_months  = ind (var.eq.1 .and. var.eq.2 .and. var.eq.3 )

i want to get indices corresponding to var ==1 &2 & 3

it works only for one condition like : idx_months  = ind (var.eq.1)

Any suggestions,

Thanks in advance

-- 
------------------------------
Cordialement,
Rabah Hachelaf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150702/d093494b/attachment.html 


More information about the ncl-talk mailing list