Hi, All<br><br> I&#39;m a newer to study NCL. I have a simple question. Let me describe it first.<br> After running the WRF, i got so many output files. I want to use NCL to  analyse them. I start with the simplist scirpt, just as below:<br>
 <br> load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;<br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;<br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot;<br><br>
<br>begin<br><br>   f = addfile(&quot;/nuwa_cluster/home/rcecstu03/RunLiu/WRF/run/PRD/wrfout_d03_2008-11-01_01:00:<a href="http://00.nc">00.nc</a>&quot;,&quot;r&quot;)<br>  T = f-&gt;T<br>   printVarSummary(T)<br><br>end<br>
<br>it worked, it showes that :Variable: T<br>Type: float<br>Total Size: 1154736 bytes<br>            288684 values<br>Number of Dimensions: 4<br>Dimensions and sizes:   [Time | 1] x [bottom_top | 27] x [south_north | 99] x [west_east | 108]<br>
Coordinates:<br>Number Of Attributes: 6<br>  FieldType :   104<br>  MemoryOrder : XYZ<br>  description : perturbation potential temperature (theta-t0)<br>  units :       K<br>  stagger :<br>  coordinates : XLONG XLAT<br><br>
But when i changed another similar script, it failed<br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;<br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;<br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot;<br>
<br><br>begin<br><br>  diri = &quot;/nuwa_cluster/home/rcecstu03/RunLiu/WRF/run/PRD/&quot;<br>  fils = systemfunc (&quot;ls &quot; +diri+ &quot;wrfout_d03_2008-11-01_1*.nc&quot;)<br>  f = addfiles(fils,&quot;r&quot;)<br>   T = f-&gt;T<br>
   printVarSummary(T)<br><br>end<br><br>it showed that ls: /nuwa_cluster/home/rcecstu03/RunLiu/WRF/run/PRD/wrfout_d03_2008-11-01_1*.nc: No such file or directory<br>warning:Argument 0 of the current function or procedure was coerced to the appropriate type and thus will not change if the function or procedure modifies its value<br>
fatal:(-2147483647) has no file extension, can&#39;t determine type of file to open<br>fatal:[&quot;NclVar.c&quot;:1376]:Assignment type mismatch, right hand side can&#39;t be coerced to type of left hand side<br>fatal:Execute: Error occurred at or near line 12 in file file.ncl<br>
<br>or i change    fils = systemfunc (&quot;ls &quot; +diri+ &quot;wrfout_d03_2008-11-01_1*.nc&quot;) to   fils = systemfunc (&quot;ls &quot; +diri+ &quot;wrfout_d03_2008-11-01_1*&quot;) ,it showed <br>fatal:(/nuwa_cluster/home/rcecstu03/RunLiu/WRF/run/PRD/wrfout_d03_2008-11-01_19:00:00) has no file extension, can&#39;t determine type of file to open<br>
fatal:(/nuwa_cluster/home/rcecstu03/RunLiu/WRF/run/PRD/wrfout_d03_2008-11-01_18:00:00) has no file extension, can&#39;t determine type of file to open<br>fatal:(/nuwa_cluster/home/rcecstu03/RunLiu/WRF/run/PRD/wrfout_d03_2008-11-01_17:00:00) has no file extension, can&#39;t determine type of file to open<br>
fatal:(/nuwa_cluster/home/rcecstu03/RunLiu/WRF/run/PRD/wrfout_d03_2008-11-01_16:00:00) has no file extension, can&#39;t determine type of file to open<br>fatal:(/nuwa_cluster/home/rcecstu03/RunLiu/WRF/run/PRD/wrfout_d03_2008-11-01_15:00:00) has no file extension, can&#39;t determine type of file to open<br>
fatal:(/nuwa_cluster/home/rcecstu03/RunLiu/WRF/run/PRD/wrfout_d03_2008-11-01_14:00:00) has no file extension, can&#39;t determine type of file to open<br>fatal:(/nuwa_cluster/home/rcecstu03/RunLiu/WRF/run/PRD/wrfout_d03_2008-11-01_13:00:00) has no file extension, can&#39;t determine type of file to open<br>
fatal:(/nuwa_cluster/home/rcecstu03/RunLiu/WRF/run/PRD/wrfout_d03_2008-11-01_12:00:00) has no file extension, can&#39;t determine type of file to open<br>fatal:(/nuwa_cluster/home/rcecstu03/RunLiu/WRF/run/PRD/wrfout_d03_2008-11-01_11:00:00) has no file extension, can&#39;t determine type of file to open<br>
fatal:(/nuwa_cluster/home/rcecstu03/RunLiu/WRF/run/PRD/wrfout_d03_2008-11-01_10:00:00) has no file extension, can&#39;t determine type of file to open<br>fatal:(f) does not reference a file<br>fatal:Execute: Error occurred at or near line 13 in file file.ncl<br>
<br>what should i do? look forward your help,thanks<br><br><br><br><div class="gmail_quote">2011/11/18  <span dir="ltr">&lt;<a href="mailto:ncl-talk-request@ucar.edu">ncl-talk-request@ucar.edu</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Send ncl-talk mailing list submissions to<br>
        <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:ncl-talk-request@ucar.edu">ncl-talk-request@ucar.edu</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:ncl-talk-owner@ucar.edu">ncl-talk-owner@ucar.edu</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of ncl-talk digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. 2 dimensional running local area average (Stephan Matthiesen)<br>
   2. Two legends for Four lines ? (Helen Parish)<br>
   3. Looking for reference datafile (Gerald Creager)<br>
   4. Re: Looking for reference datafile (Dennis Shea)<br>
   5. Re: Two legends for Four lines ? (Mary Haley)<br>
   6. upscript (Chao Luo)<br>
   7. Re: upscript (Rick Brownrigg)<br>
   8. Re: Looking for reference datafile (Gerald Creager)<br>
   9. Re: upscript (Chao Luo)<br>
  10. label bar labels and WRF contour (David B. Reusch)<br>
  11. Re: Two legends for Four lines ? (Mary Haley)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 17 Nov 2011 08:40:25 +0000<br>
From: Stephan Matthiesen &lt;<a href="mailto:info@stephan-matthiesen.de">info@stephan-matthiesen.de</a>&gt;<br>
Subject: [ncl-talk] 2 dimensional running local area average<br>
To: <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
Message-ID: &lt;<a href="mailto:4EC4C879.5090605@stephan-matthiesen.de">4EC4C879.5090605@stephan-matthiesen.de</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Hello,<br>
<br>
I&#39;m looking for a function that can calculate running local area<br>
averages, i.e. for each point xi,yi the average of all points xj,yj that<br>
are within n gridpoints of xi,yi.<br>
<br>
That is essentially a 2-d version of runave. Is there a function that<br>
does that?<br>
<br>
I thought perhaps one of the regridding functions might do that.<br>
area_hi2lores is getting close to what I need, but it averages only when<br>
reducing the grid, while I need it for the original grid resolution.<br>
<br>
Are there any functions that help, or do I have to do it manually?<br>
<br>
Thanks a lot in advance<br>
Stephan<br>
<br>
--<br>
Stephan Matthiesen<br>
<a href="http://www.stephan-matthiesen.de" target="_blank">http://www.stephan-matthiesen.de</a><br>
Neu auf <a href="http://www.science-texts.de" target="_blank">www.science-texts.de</a>: Novembermuster<br>
<br>
LinkedIn: <a href="http://www.linkedin.com/in/stephanmatthiesen" target="_blank">http://www.linkedin.com/in/stephanmatthiesen</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 17 Nov 2011 05:16:31 -0800<br>
From: Helen Parish &lt;<a href="mailto:hparish@ess.ucla.edu">hparish@ess.ucla.edu</a>&gt;<br>
Subject: [ncl-talk] Two legends for Four lines ?<br>
To: <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
Cc: <a href="mailto:hparish@ess.ucla.edu">hparish@ess.ucla.edu</a><br>
Message-ID: &lt;<a href="mailto:A569F566-B13C-4549-805D-E77BAD2631B3@ess.ucla.edu">A569F566-B13C-4549-805D-E77BAD2631B3@ess.ucla.edu</a>&gt;<br>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes<br>
<br>
Does anyone know if there is a way to plot legends for only some of<br>
the lines on a plot ?. I have four lines in the example below, which<br>
shows a section of the NCL code. I want to put legends on the plot for<br>
only two of these lines. For the other two lines I do not want any<br>
part of the legend to appear. I tried just putting &quot;&quot; for one of the<br>
legend labels I did not want, which removed the writing, but still<br>
left a colored line for the legend. I also tried omitting the fourth<br>
label in the ExplicitLegendLabels assignment, but this still left a<br>
colored line and put rubbish in the written part of the legend.<br>
<br>
Is there a way to create legends for just 2 of the 4 lines ?.<br>
<br>
Thanks,<br>
Helen.<br>
<br>
<br>
<br>
Below is an excerpt from the routine :<br>
<br>
<br>
      res@xyLineColors      =<br>
(/&quot;black&quot;,&quot;blue&quot;,&quot;red&quot;,&quot;red&quot;/)          ; change line colour<br>
<br>
      res@xyDashPatterns    = (/0,1,2,2/)                         ;<br>
choose dash patterns<br>
<br>
       res@xyLineThicknesses = (/1.0,2.0,2.0,2.0/)               ;<br>
make 2nd, 3rd, 4th lines thicker<br>
<br>
; add a legend<br>
  res@pmLegendDisplayMode    = &quot;Always&quot;              ; turn on legend<br>
<br>
  res@pmLegendSide           = &quot;Top&quot;                 ; Change location<br>
of<br>
  res@pmLegendParallelPosF   = .80                   ; move units right<br>
  res@pmLegendOrthogonalPosF = -0.275                ; more neg = down<br>
<br>
  res@pmLegendWidthF         = 0.12                  ; Change width and<br>
  res@pmLegendHeightF        = 0.10                  ; height of legend.<br>
  res@lgLabelFontHeightF     = .02                   ; change font<br>
height<br>
  res@lgPerimOn              = False                 ; no box around<br>
; labels for the legend<br>
  res@xyExplicitLegendLabels = (/&quot;&quot;,&quot;Mean&quot;,&quot;Standard deviation&quot;/)<br>
<br>
  plot  = gsn_csm_xy (wks,x,y,res) ; create plot<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 17 Nov 2011 09:23:02 -0600<br>
From: Gerald Creager &lt;<a href="mailto:gerry.creager@tamu.edu">gerry.creager@tamu.edu</a>&gt;<br>
Subject: [ncl-talk] Looking for reference datafile<br>
To: &quot;<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>&quot; &lt;<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>&gt;<br>
Message-ID: &lt;<a href="mailto:4EC526D6.3020805@tamu.edu">4EC526D6.3020805@tamu.edu</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
I&#39;m looking for the datafile (<a href="http://gx1v3.TEMP.nc" target="_blank">gx1v3.TEMP.nc</a>) used in example iso_1.ncl<br>
on this page: <a href="http://www.ncl.ucar.edu/Applications/iso.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/iso.shtml</a><br>
<br>
Is it available anywhere, easily?<br>
<br>
Thanks, Gerry<br>
--<br>
Gerry Creager -- <a href="mailto:gerry.creager@tamu.edu">gerry.creager@tamu.edu</a><br>
Texas Mesonet -- AATLT, Texas A&amp;M University<br>
Cell: <a href="tel:979.229.5301" value="+19792295301">979.229.5301</a> Office: <a href="tel:979.458.4020" value="+19794584020">979.458.4020</a> FAX: <a href="tel:979.862.3983" value="+19798623983">979.862.3983</a><br>
Office: 7607 Eastmark Drive, Suite 112, College Station, TX 77840<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Thu, 17 Nov 2011 08:43:09 -0700<br>
From: Dennis Shea &lt;<a href="mailto:shea@ucar.edu">shea@ucar.edu</a>&gt;<br>
Subject: Re: [ncl-talk] Looking for reference datafile<br>
To: <a href="mailto:gerry.creager@tamu.edu">gerry.creager@tamu.edu</a><br>
Cc: &quot;<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>&quot; &lt;<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>&gt;<br>
Message-ID: &lt;<a href="mailto:4EC52B8D.3060503@ucar.edu">4EC52B8D.3060503@ucar.edu</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
ftp <a href="http://ftp.cgd.ucar.edu" target="_blank">ftp.cgd.ucar.edu</a><br>
anonymous<br>
email<br>
cd pub/shea/POP<br>
get <a href="http://gx1v3.TEMP.nc" target="_blank">gx1v3.TEMP.nc</a><br>
quit<br>
<br>
20645792 Nov 17 08:41 <a href="http://gx1v3.TEMP.nc" target="_blank">gx1v3.TEMP.nc</a><br>
<br>
Good Luck<br>
D<br>
<br>
On 11/17/11 8:23 AM, Gerald Creager wrote:<br>
&gt; I&#39;m looking for the datafile (<a href="http://gx1v3.TEMP.nc" target="_blank">gx1v3.TEMP.nc</a>) used in example iso_1.ncl<br>
&gt; on this page: <a href="http://www.ncl.ucar.edu/Applications/iso.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/iso.shtml</a><br>
&gt;<br>
&gt; Is it available anywhere, easily?<br>
&gt;<br>
&gt; Thanks, Gerry<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Thu, 17 Nov 2011 10:12:12 -0700<br>
From: Mary Haley &lt;<a href="mailto:haley@ucar.edu">haley@ucar.edu</a>&gt;<br>
Subject: Re: [ncl-talk] Two legends for Four lines ?<br>
To: Helen Parish &lt;<a href="mailto:hparish@ess.ucla.edu">hparish@ess.ucla.edu</a>&gt;<br>
Cc: <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
Message-ID: &lt;<a href="mailto:5635B76E-7A66-4E5F-B8B2-D0352EDEF7F3@ucar.edu">5635B76E-7A66-4E5F-B8B2-D0352EDEF7F3@ucar.edu</a>&gt;<br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Hi Helen,<br>
<br>
The legend object that&#39;s associated with an XY plot that you create is<br>
not very customizable in this fashion. I was able to turn off the<br>
labels the same way you did, but instead of setting<br>
xyExplicitLegendLabels to 2 elements, I set it to four elements,<br>
with the last two being equal to &quot;&quot;. This way you don&#39;t get the<br>
label rubbish.<br>
<br>
However, you can&#39;t turn off the individual lines.<br>
<br>
I will write an example script that shows how to customize your legend.<br>
<br>
--Mary<br>
<br>
On Nov 17, 2011, at 6:16 AM, Helen Parish wrote:<br>
<br>
&gt; Does anyone know if there is a way to plot legends for only some of<br>
&gt; the lines on a plot ?. I have four lines in the example below, which<br>
&gt; shows a section of the NCL code. I want to put legends on the plot for<br>
&gt; only two of these lines. For the other two lines I do not want any<br>
&gt; part of the legend to appear. I tried just putting &quot;&quot; for one of the<br>
&gt; legend labels I did not want, which removed the writing, but still<br>
&gt; left a colored line for the legend. I also tried omitting the fourth<br>
&gt; label in the ExplicitLegendLabels assignment, but this still left a<br>
&gt; colored line and put rubbish in the written part of the legend.<br>
&gt;<br>
&gt; Is there a way to create legends for just 2 of the 4 lines ?.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Helen.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Below is an excerpt from the routine :<br>
&gt;<br>
&gt;<br>
&gt;      res@xyLineColors      =<br>
&gt; (/&quot;black&quot;,&quot;blue&quot;,&quot;red&quot;,&quot;red&quot;/)          ; change line colour<br>
&gt;<br>
&gt;      res@xyDashPatterns    = (/0,1,2,2/)                         ;<br>
&gt; choose dash patterns<br>
&gt;<br>
&gt;       res@xyLineThicknesses = (/1.0,2.0,2.0,2.0/)               ;<br>
&gt; make 2nd, 3rd, 4th lines thicker<br>
&gt;<br>
&gt; ; add a legend<br>
&gt;  res@pmLegendDisplayMode    = &quot;Always&quot;              ; turn on legend<br>
&gt;<br>
&gt;  res@pmLegendSide           = &quot;Top&quot;                 ; Change location<br>
&gt; of<br>
&gt;  res@pmLegendParallelPosF   = .80                   ; move units right<br>
&gt;  res@pmLegendOrthogonalPosF = -0.275                ; more neg = down<br>
&gt;<br>
&gt;  res@pmLegendWidthF         = 0.12                  ; Change width and<br>
&gt;  res@pmLegendHeightF        = 0.10                  ; height of legend.<br>
&gt;  res@lgLabelFontHeightF     = .02                   ; change font<br>
&gt; height<br>
&gt;  res@lgPerimOn              = False                 ; no box around<br>
&gt; ; labels for the legend<br>
&gt;  res@xyExplicitLegendLabels = (/&quot;&quot;,&quot;Mean&quot;,&quot;Standard deviation&quot;/)<br>
&gt;<br>
&gt;  plot  = gsn_csm_xy (wks,x,y,res) ; create plot<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; ncl-talk mailing list<br>
&gt; List instructions, subscriber options, unsubscribe:<br>
&gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Thu, 17 Nov 2011 12:20:51 -0500 (EST)<br>
From: Chao Luo &lt;<a href="mailto:chao.luo@eas.gatech.edu">chao.luo@eas.gatech.edu</a>&gt;<br>
Subject: [ncl-talk] upscript<br>
To: <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
Message-ID: &lt;<a href="mailto:9238e9aa-b501-436d-ac15-e938d653fddb@mail4.gatech.edu">9238e9aa-b501-436d-ac15-e938d653fddb@mail4.gatech.edu</a>&gt;<br>
Content-Type: text/plain; charset=utf-8<br>
<br>
Hi,<br>
<br>
I have a simple question. Want to change &quot;m/s&quot; to ms^-1, but don&#39;t know how to change &quot;-1&quot; for upscript in NCL script.<br>
<br>
Thanks,<br>
<br>
Chao<br>
<br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Thu, 17 Nov 2011 10:27:50 -0700<br>
From: Rick Brownrigg &lt;<a href="mailto:brownrig@ucar.edu">brownrig@ucar.edu</a>&gt;<br>
Subject: Re: [ncl-talk] upscript<br>
To: Chao Luo &lt;<a href="mailto:chao.luo@eas.gatech.edu">chao.luo@eas.gatech.edu</a>&gt;<br>
Cc: <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
Message-ID: &lt;<a href="mailto:70561BDF-4B0A-4AEF-A82F-9F19830B9D93@ucar.edu">70561BDF-4B0A-4AEF-A82F-9F19830B9D93@ucar.edu</a>&gt;<br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Hi,<br>
<br>
Check out the discussion on Text Function Codes:<br>
<br>
<a href="http://www.ncl.ucar.edu/Document/Graphics/function_code.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Graphics/function_code.shtml</a><br>
<br>
Rick<br>
<br>
On Nov 17, 2011, at 10:20 AM, Chao Luo wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; I have a simple question. Want to change &quot;m/s&quot; to ms^-1, but don&#39;t know how to change &quot;-1&quot; for upscript in NCL script.<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Chao<br>
&gt; _______________________________________________<br>
&gt; ncl-talk mailing list<br>
&gt; List instructions, subscriber options, unsubscribe:<br>
&gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 8<br>
Date: Thu, 17 Nov 2011 12:16:24 -0600<br>
From: Gerald Creager &lt;<a href="mailto:gerry.creager@tamu.edu">gerry.creager@tamu.edu</a>&gt;<br>
Subject: Re: [ncl-talk] Looking for reference datafile<br>
To: Dennis Shea &lt;<a href="mailto:shea@ucar.edu">shea@ucar.edu</a>&gt;<br>
Cc: &quot;<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>&quot; &lt;<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>&gt;<br>
Message-ID: &lt;<a href="mailto:4EC54F78.2020308@tamu.edu">4EC54F78.2020308@tamu.edu</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Thanks! Got it.<br>
gerry<br>
<br>
On 11/17/2011 09:43 AM, Dennis Shea wrote:<br>
&gt; ftp <a href="http://ftp.cgd.ucar.edu" target="_blank">ftp.cgd.ucar.edu</a><br>
&gt; anonymous<br>
&gt; email<br>
&gt; cd pub/shea/POP<br>
&gt; get <a href="http://gx1v3.TEMP.nc" target="_blank">gx1v3.TEMP.nc</a><br>
&gt; quit<br>
&gt;<br>
&gt; 20645792 Nov 17 08:41 <a href="http://gx1v3.TEMP.nc" target="_blank">gx1v3.TEMP.nc</a><br>
&gt;<br>
&gt; Good Luck<br>
&gt; D<br>
&gt;<br>
&gt; On 11/17/11 8:23 AM, Gerald Creager wrote:<br>
&gt;&gt; I&#39;m looking for the datafile (<a href="http://gx1v3.TEMP.nc" target="_blank">gx1v3.TEMP.nc</a>) used in example iso_1.ncl<br>
&gt;&gt; on this page: <a href="http://www.ncl.ucar.edu/Applications/iso.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/iso.shtml</a><br>
&gt;&gt;<br>
&gt;&gt; Is it available anywhere, easily?<br>
&gt;&gt;<br>
&gt;&gt; Thanks, Gerry<br>
<br>
--<br>
Gerry Creager -- <a href="mailto:gerry.creager@tamu.edu">gerry.creager@tamu.edu</a><br>
Texas Mesonet -- AATLT, Texas A&amp;M University<br>
Cell: <a href="tel:979.229.5301" value="+19792295301">979.229.5301</a> Office: <a href="tel:979.458.4020" value="+19794584020">979.458.4020</a> FAX: <a href="tel:979.862.3983" value="+19798623983">979.862.3983</a><br>
Office: 7607 Eastmark Drive, Suite 112, College Station, TX 77840<br>
<br>
<br>
------------------------------<br>
<br>
Message: 9<br>
Date: Thu, 17 Nov 2011 13:22:18 -0500 (EST)<br>
From: Chao Luo &lt;<a href="mailto:chao.luo@eas.gatech.edu">chao.luo@eas.gatech.edu</a>&gt;<br>
Subject: Re: [ncl-talk] upscript<br>
To: Rick Brownrigg &lt;<a href="mailto:brownrig@ucar.edu">brownrig@ucar.edu</a>&gt;<br>
Cc: <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
Message-ID: &lt;<a href="mailto:3d2b2eec-2172-4357-bb5b-1fff7b93cacb@mail4.gatech.edu">3d2b2eec-2172-4357-bb5b-1fff7b93cacb@mail4.gatech.edu</a>&gt;<br>
Content-Type: text/plain; charset=utf-8<br>
<br>
Thanks much!<br>
<br>
Chao<br>
<br>
<br>
----- Original Message -----<br>
From: &quot;Rick Brownrigg&quot; &lt;<a href="mailto:brownrig@ucar.edu">brownrig@ucar.edu</a>&gt;<br>
To: &quot;Chao Luo&quot; &lt;<a href="mailto:chao.luo@eas.gatech.edu">chao.luo@eas.gatech.edu</a>&gt;<br>
Cc: <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
Sent: Thursday, November 17, 2011 9:27:50 AM<br>
Subject: Re: [ncl-talk] upscript<br>
<br>
Hi,<br>
<br>
Check out the discussion on Text Function Codes:<br>
<br>
<a href="http://www.ncl.ucar.edu/Document/Graphics/function_code.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Graphics/function_code.shtml</a><br>
<br>
Rick<br>
<br>
On Nov 17, 2011, at 10:20 AM, Chao Luo wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; I have a simple question. Want to change &quot;m/s&quot; to ms^-1, but don&#39;t know how to change &quot;-1&quot; for upscript in NCL script.<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Chao<br>
&gt; _______________________________________________<br>
&gt; ncl-talk mailing list<br>
&gt; List instructions, subscriber options, unsubscribe:<br>
&gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 10<br>
Date: Thu, 17 Nov 2011 11:22:41 -0700<br>
From: &quot;David B. Reusch&quot; &lt;<a href="mailto:dreusch@ees.nmt.edu">dreusch@ees.nmt.edu</a>&gt;<br>
Subject: [ncl-talk] label bar labels and WRF contour<br>
To: NCL Talk &lt;<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>&gt;, <a href="mailto:wrfhelp@ucar.edu">wrfhelp@ucar.edu</a><br>
Message-ID: &lt;<a href="mailto:4EC550F1.2010206@ees.nmt.edu">4EC550F1.2010206@ees.nmt.edu</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Not sure if this is NCL or the WRF NCL scripts so you&#39;re both getting<br>
this email.  I&#39;ve been trying to create a soil category plot from<br>
geogrid data starting from the vegland_1<br>
&lt;<a href="http://www.ncl.ucar.edu/Applications/Scripts/vegland_1.ncl" target="_blank">http://www.ncl.ucar.edu/Applications/Scripts/vegland_1.ncl</a>&gt; example on<br>
the NCL site.  The problem I can&#39;t seem to resolve is that in my label<br>
bar I can either get (a) 16 number labels and 17 label boxes or (b) 15<br>
number labels + &quot;Label 15&quot; and 16 label boxes (for my 16 category soil<br>
data).  I&#39;ve tried to follow this through the WRFUserARW.ncl code but<br>
have given up (after trying lots of variations...).  Although I am<br>
providing a lbUserLabels all the way through (as far as I can tell),<br>
this seems to be being ignored at some level I haven&#39;t nailed down.<br>
<br>
I have put the file dbr_wrf_plot_lb.tgz at the ftp incoming site.  It<br>
has my script, my input file and an output file.<br>
<br>
Thanks,<br>
Dave Reusch<br>
<br>
--<br>
Associate Research Professor of Climatology<br>
Dept of Earth and Environmental Science<br>
MSEC 304; 801 Leroy Place<br>
New Mexico Tech<br>
Socorro, NM 87801<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20111117/fa6de231/attachment.html" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20111117/fa6de231/attachment.html</a><br>
<br>
------------------------------<br>
<br>
Message: 11<br>
Date: Thu, 17 Nov 2011 11:44:56 -0700<br>
From: Mary Haley &lt;<a href="mailto:haley@ucar.edu">haley@ucar.edu</a>&gt;<br>
Subject: Re: [ncl-talk] Two legends for Four lines ?<br>
To: Helen Parish &lt;<a href="mailto:hparish@ess.ucla.edu">hparish@ess.ucla.edu</a>&gt;<br>
Cc: <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
Message-ID: &lt;<a href="mailto:4C1159C8-6247-45A3-8D3E-503AF880E48A@ucar.edu">4C1159C8-6247-45A3-8D3E-503AF880E48A@ucar.edu</a>&gt;<br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Helen,<br>
<br>
Please see example 13 on the legend page:<br>
<br>
<a href="http://www.ncl.ucar.edu/Applications/legend.shtml#ex13" target="_blank">http://www.ncl.ucar.edu/Applications/legend.shtml#ex13</a><br>
<br>
This example is probably a bit of overkill for what you need,<br>
for it tries to recreate an XY legend from scratch.<br>
<br>
Note that this XY plot has four curves, but I only created<br>
two legend items.  See the &quot;NumberLegendItems&quot;<br>
attribute in this code.<br>
<br>
--Mary<br>
<br>
On Nov 17, 2011, at 6:16 AM, Helen Parish wrote:<br>
<br>
&gt; Does anyone know if there is a way to plot legends for only some of<br>
&gt; the lines on a plot ?. I have four lines in the example below, which<br>
&gt; shows a section of the NCL code. I want to put legends on the plot for<br>
&gt; only two of these lines. For the other two lines I do not want any<br>
&gt; part of the legend to appear. I tried just putting &quot;&quot; for one of the<br>
&gt; legend labels I did not want, which removed the writing, but still<br>
&gt; left a colored line for the legend. I also tried omitting the fourth<br>
&gt; label in the ExplicitLegendLabels assignment, but this still left a<br>
&gt; colored line and put rubbish in the written part of the legend.<br>
&gt;<br>
&gt; Is there a way to create legends for just 2 of the 4 lines ?.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Helen.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Below is an excerpt from the routine :<br>
&gt;<br>
&gt;<br>
&gt;      res@xyLineColors      =<br>
&gt; (/&quot;black&quot;,&quot;blue&quot;,&quot;red&quot;,&quot;red&quot;/)          ; change line colour<br>
&gt;<br>
&gt;      res@xyDashPatterns    = (/0,1,2,2/)                         ;<br>
&gt; choose dash patterns<br>
&gt;<br>
&gt;       res@xyLineThicknesses = (/1.0,2.0,2.0,2.0/)               ;<br>
&gt; make 2nd, 3rd, 4th lines thicker<br>
&gt;<br>
&gt; ; add a legend<br>
&gt;  res@pmLegendDisplayMode    = &quot;Always&quot;              ; turn on legend<br>
&gt;<br>
&gt;  res@pmLegendSide           = &quot;Top&quot;                 ; Change location<br>
&gt; of<br>
&gt;  res@pmLegendParallelPosF   = .80                   ; move units right<br>
&gt;  res@pmLegendOrthogonalPosF = -0.275                ; more neg = down<br>
&gt;<br>
&gt;  res@pmLegendWidthF         = 0.12                  ; Change width and<br>
&gt;  res@pmLegendHeightF        = 0.10                  ; height of legend.<br>
&gt;  res@lgLabelFontHeightF     = .02                   ; change font<br>
&gt; height<br>
&gt;  res@lgPerimOn              = False                 ; no box around<br>
&gt; ; labels for the legend<br>
&gt;  res@xyExplicitLegendLabels = (/&quot;&quot;,&quot;Mean&quot;,&quot;Standard deviation&quot;/)<br>
&gt;<br>
&gt;  plot  = gsn_csm_xy (wks,x,y,res) ; create plot<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; ncl-talk mailing list<br>
&gt; List instructions, subscriber options, unsubscribe:<br>
&gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
<br>
End of ncl-talk Digest, Vol 96, Issue 30<br>
****************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br><div>
<p style="margin:0cm 0cm 0pt"><span style="color:gray" lang="EN-US">Liu Run</span><span style="color:black" lang="EN-US"></span></p>
<p style="margin:0cm 0cm 0pt"><span style="color:gray" lang="EN-US">State Key Joint Laboratory of Environment Simulation and Pollution Control<br>College of Environmental Sciences and Engineering <br>Peking University, Beijing<br>
P.R.China, 100871</span><span style="color:black" lang="EN-US"></span></p>
<p style="margin:0cm 0cm 0pt"><span style="color:gray" lang="EN-US">E-mail: <a href="mailto:liuruncn@gmail.com" target="_blank">liuruncn@gmail.com</a></span></p>
<p style="margin:0cm 0cm 0pt"><span style="color:gray" lang="EN-US"></span><span style="color:gray" lang="EN-US">Mobile: 86-15201475934</span><span style="color:black" lang="EN-US"></span></p></div><br><br>