<div dir="ltr">Hi Chao,<div>Whenever you write to ncl-talk <b>always</b> include any error messages that you are getting from your script. In this case you were likely seeing this:</div><div><div>fatal:Variable (wks_type) is undefined, can not assign attribute (wkWidth)</div><div>fatal:["Execute.c":8575]:Execute: Error occurred at or near line.....</div></div><div><br></div><div>Your code had this:</div><div><div>u=a->UGRD_P0_L102_GLL0(0,:,:)</div><div>v=a->VGRD_P0_L102_GLL0(0,:,:)</div><div>wks = gsn_open_wks("x11","vector2b")</div><div>wks_type@wkWidth = 1000</div><div>wks_type@wkHeight = 1000 </div></div><div><br></div><div>You cannot attach attributes to an undefined array, in this case wks_type. I think what you want to do is this:</div><div><div>u=a->UGRD_P0_L102_GLL0(0,:,:)</div><div>v=a->VGRD_P0_L102_GLL0(0,:,:)</div></div><div><div>wks_type = "x11" </div><div>wks_type@wkWidth = 1000</div><div>wks_type@wkHeight = 1000</div><div>wks = gsn_open_wks(wks_type,"vector2b")</div></div><div><br></div><div>Hope that helps. If not, please respond to the ncl-talk email list.</div><div>Adam</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 6, 2015 at 10:02 AM, Wang, Chao <span dir="ltr"><<a href="mailto:cxw151530@utdallas.edu" target="_blank">cxw151530@utdallas.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
Dear Sir/Madam,
<div><br>
</div>
<div>Sorry to bother again. My name is Chao. I have reviewed my code and improved it, but still got the same graph. It shows little different from the result I got from Matlab. </div>
<div>And I used the code:</div>
<div> <span style="white-space:pre-wrap"><b>wks_type@wkWidth = 1000</b></span></div>
<div><span style="white-space:pre-wrap"><b>wks_type@wkHeight = 1000</b></span></div>
<div>to make the picture bigger, but it still shows the same size. I don’t know what is the problem.</div>
<div>Here is the script I used:</div>
<div></div>
</div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div>