what dose a(a<3)=0 mean, where a is a one dimensional array?

From: Chuliang Xiao <annddyshow_at_nyahnyahspammersnyahnyah>
Date: Tue Mar 20 2012 - 21:41:44 MDT

Dear NCL users,
some confusion about the following codes
>a=(/1,2,3,2,1,2,1,2,4,3,1,2/)
>a(a<3)=0
>print(a)
(0) 1
(1) 0
(2) 0
(3) 0
(4) 1
(5) 2
(6) 1
(7) 2
(8) 4
(9) 3
(10) 1
(11) 2
Best regards




Dr. Chuliang XIAO(Ф³þÁ¼)
School of Atmospheric Sciences,

Nanjing University,
No. 22 Hankou Road, Nanjing 210093, China

Tel: +86-138-0514 5653
Email: xiaocl@smail.nju.edu.cn

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Mar 20 21:41:48 2012

This archive was generated by hypermail 2.1.8 : Tue Mar 27 2012 - 08:50:24 MDT