<div dir="ltr">Hi Alan, <div><br></div><div>Thanks a lot!</div><div><br></div><div>It works!</div><div><br></div><div>Guilherme.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><b><font>Guilherme Martins</font></b></div><div><font><a href="https://sites.google.com/site/jgmsantos/" target="_blank">https://sites.google.com/site/jgmsantos</a><br></font><div><div><div></div></div></div></div><div><br></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2015-03-01 15:50 GMT-03:00 Alan Brammer <span dir="ltr"><<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">oh if your data only has 12 time dimensions then you can possibly switch out y1&time at lines 77/78 with an array of 1-12. <div><br></div><div>The below would rely on the nmes always being 12, or I'm sure you can make it more robust, based on the needs. </div><div><br></div><div>dummytime = ispan(1,12,1)</div><div><div>do k=0,nmes-1</div><div> yp(k) = y1(k) + dx</div><div> xp(k) = dummytime(k)</div><div> xp(sigma*nmes-1-k) = dummytime(k)</div><div> yp(sigma*nmes-1-k) = y1(k) - dx</div><div>end do</div></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 1, 2015 at 1:43 PM, Guilherme Martins <span dir="ltr"><<a href="mailto:jgmsantos@gmail.com" target="_blank">jgmsantos@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Alan,<div><br></div><div>I'll take a look in your sugestion. Thanks.<br><div><br></div><div>The informations about my file using the ncdump</div><div><br></div><div><div>netcdf fluxos.ERAI {</div><div>dimensions:</div><div><span style="white-space:pre-wrap">        </span>lon = 1 ;</div><div><span style="white-space:pre-wrap">        </span>lat = 1 ;</div><div><span style="white-space:pre-wrap">        </span>time = UNLIMITED ; // (12 currently)</div><div>variables:</div><div><span style="white-space:pre-wrap">        </span>double lon(lon) ;</div><div><span style="white-space:pre-wrap">                </span>lon:standard_name = "longitude" ;</div><div><span style="white-space:pre-wrap">                </span>lon:long_name = "longitude" ;</div><div><span style="white-space:pre-wrap">                </span>lon:units = "degrees_east" ;</div><div><span style="white-space:pre-wrap">                </span>lon:axis = "X" ;</div><div><span style="white-space:pre-wrap">        </span>double lat(lat) ;</div><div><span style="white-space:pre-wrap">                </span>lat:standard_name = "latitude" ;</div><div><span style="white-space:pre-wrap">                </span>lat:long_name = "latitude" ;</div><div><span style="white-space:pre-wrap">                </span>lat:units = "degrees_north" ;</div><div><span style="white-space:pre-wrap">                </span>lat:axis = "Y" ;</div><div><span style="white-space:pre-wrap">        </span>double time(time) ;</div><div><span style="white-space:pre-wrap">                </span>time:standard_name = "time" ;</div><div><span style="white-space:pre-wrap">                </span>time:units = "days since 1979-01-01 12:00:00" ;</div><div><span style="white-space:pre-wrap">                </span>time:calendar = "standard" ;</div><div><span style="white-space:pre-wrap">        </span>float fnorte(time, lat, lon) ;</div><div><span style="white-space:pre-wrap">                </span>fnorte:code = 3 ;</div><div><span style="white-space:pre-wrap">        </span>float fsul(time, lat, lon) ;</div><div><span style="white-space:pre-wrap">                </span>fsul:code = 5 ;</div><div><span style="white-space:pre-wrap">        </span>float fleste(time, lat, lon) ;</div><div><span style="white-space:pre-wrap">                </span>fleste:code = 2 ;</div><div><span style="white-space:pre-wrap">        </span>float foeste(time, lat, lon) ;</div><div><span style="white-space:pre-wrap">                </span>foeste:code = 4 ;</div><div><span style="white-space:pre-wrap">        </span>float fbalanco(time, lat, lon) ;</div><div><span style="white-space:pre-wrap">                </span>fbalanco:code = 1 ;</div><div><br></div><div>// global attributes:</div><div><span style="white-space:pre-wrap">                </span>:CDI = "Climate Data Interface version 1.6.5 (<a href="http://code.zmaw.de/projects/cdi" target="_blank">http://code.zmaw.de/projects/cdi</a>)" ;</div><div><span style="white-space:pre-wrap">                </span>:Conventions = "CF-1.4" ;</div><div><span style="white-space:pre-wrap">                </span>:history = "Sun Mar 01 01:16:49 2015: cdo -O -s merge <a href="http://norte.nc" target="_blank">norte.nc</a> <a href="http://sul.nc" target="_blank">sul.nc</a> <a href="http://leste.nc" target="_blank">leste.nc</a> <a href="http://oeste.nc" target="_blank">oeste.nc</a> <a href="http://balanco.nc" target="_blank">balanco.nc</a> <a href="http://fluxos.ERAI.nc" target="_blank">fluxos.ERAI.nc</a>\n",</div><div><span style="white-space:pre-wrap">                        </span>"Sun Mar 01 01:16:44 2015: cdo -O -s -r -ymonmean -monmean -setcalendar,standard -settaxis,1979-01-01,12:00:00,1day -setcode,1 -chname,var1,fbalanco <a href="http://balanco.tmp.nc" target="_blank">balanco.tmp.nc</a> <a href="http://balanco.nc" target="_blank">balanco.nc</a>\n",</div><div><span style="white-space:pre-wrap">                        </span>"Sun Mar 01 01:16:44 2015: cdo -O -s -f nc input,r1x1 <a href="http://balanco.tmp.nc" target="_blank">balanco.tmp.nc</a>" ;</div><div><span style="white-space:pre-wrap">                </span>:CDO = "Climate Data Operators version 1.6.5 (<a href="http://code.zmaw.de/projects/cdo" target="_blank">http://code.zmaw.de/projects/cdo</a>)" ;</div><div>}</div></div><div><br></div><div>Guilherme.</div></div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><b><font>Guilherme Martins</font></b></div><div><font><a href="https://sites.google.com/site/jgmsantos/" target="_blank">https://sites.google.com/site/jgmsantos</a><br></font><div><div><div></div></div></div></div><div><br></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2015-03-01 15:25 GMT-03:00 Alan Brammer <span dir="ltr"><<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</a>></span>:<div><div><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hard to know without the file information. <div>It looks like your plotting the data on ax axis of 1-12. The x points of your polygon therefore need to be with respect to this 1-12 axis. Whereas you're defining them based on the time coordinate of your data which I presume is not 1-12 currently. <br></div><div><div><br></div><div>Either scale the x coordinates of the polygon to match the 1-12 axis or change the plot to be with respect to y1&time. </div><div><br></div><div>Throw a print(xp) between line 81 and the end and if the values are not between 1-12 then the polygon is being plotted but somewhere else not within the plot bounds. </div><div><br></div><div>Hopefully that makes sense. <span><font color="#888888"><br></font></span></div><span><font color="#888888"><div><br></div><div><br></div><div>~Alan.</div><div><br></div></font></span></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Sun, Mar 1, 2015 at 12:08 PM, Guilherme Martins <span dir="ltr"><<a href="mailto:jgmsantos@gmail.com" target="_blank">jgmsantos@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div>Hi NCL users!</div><div><br></div><div>I'm trying to insert shaded area in my dataset observed using the gsn_add_polygon function, but I'm not getting. I don't get errors and the shaded area don't appear.</div><div><br></div><div>My files are in attached.</div><div><br></div><div>I'm using ncl 6.2.1.</div><div><br></div><div>Any help is very appreciated.</div><span><font color="#888888"><div><br></div><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><b><font>Guilherme Martins</font></b></div><div><font><a href="https://sites.google.com/site/jgmsantos/" target="_blank">https://sites.google.com/site/jgmsantos</a><br></font><div><div><div></div></div></div></div><div><br></div></div></div></div></div></div></div></div>
</font></span></div></div>
<br></div></div><span>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div></div></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>