[ncl-talk] := or =

Ehsan Taghizadeh ehsantaghizadeh at yahoo.com
Sat Oct 15 09:10:59 MDT 2022


Hi,I faced something interesting which I didn’t know in NCL. It might be obvious for many of you, however, I would like to share it.I tried to plot wind barb at 10m level above the ground from GFS0.25 data. First, I used following lines: u10 = fi->UGRD_P0_L103_GLL0({10},:,:) v10 = fi->VGRD_P0_L103_GLL0({10},:,:) u10 := u10*1.94386 ; Turn wind into knots v10 := v10*1.94386 u10 at units = "kts" v10 at units = "kts"The resulted map was something like plt1 which is wrong.Then I tried to use the following lines: u10 = u10*1.94386 ; Turn wind into knots v10 = v10*1.94386This turn the resulted map (plt2) was correct.I’ll be thankful if some one could explain me why using “:=” is false and using “=” is true in this situation.


-----------------------------------------------------------------------------Sincerely,Ehsan Taghizadeh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20221015/c4438e24/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plt1.png
Type: image/png
Size: 347352 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20221015/c4438e24/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plt2.png
Type: image/png
Size: 312168 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20221015/c4438e24/attachment-0003.png>


More information about the ncl-talk mailing list