<div dir="ltr"><div dir="auto">Dear Mary,<div dir="auto"><br></div><div dir="auto">I was able to solve my problem, thanks for the tips.<br></div><div dir="auto"><br></div><div>Guilherme.</div><div dir="auto"><br></div></div><div dir="auto"><div dir="auto"><div data-smartmail="gmail_signature" dir="auto">Instituto Nacional de Pesquisas Espaciais (INPE) <br>Centro de Previsão de Tempo e Estudos Climáticos (CPTEC) <br></div></div></div><div dir="auto"><div dir="auto"><div data-smartmail="gmail_signature" dir="auto">Divisão de Satélites Ambientais (DSA) </div></div></div><div dir="auto"><div dir="auto"><div data-smartmail="gmail_signature" dir="auto"><br>Programa de Monitoramento de Queimadas <br>Telefone (INPE/CP): <a href="tel:(12)%203186-9205" value="+551231869205" target="_blank">+55 12 3186-9205</a> || Celular (TIM): <a href="tel:(12)%2098111-4292" value="+5512981114292" target="_blank">+55 12 98111-4292</a><br>E-mail: <a href="mailto:guilherme.martins@inpe.br" target="_blank">guilherme.martins@inpe.br</a> || <a href="mailto:jgmsantos@gmail.com" target="_blank">jgmsantos@gmail.com</a> <br>Skype: guilherme.martins. <br></div></div></div><div dir="auto"><div dir="auto"><div data-smartmail="gmail_signature" dir="auto">Homepage pessoal: <a href="https://sites.google.com/site/jgmsantos" target="_blank">https://sites.google.com/site/jgmsantos</a> <br>Homepage institucional: <a href="http://www.inpe.br/queimadas" target="_blank">http://www.inpe.br/queimadas</a> <br>Currículo Lattes: <a href="http://lattes.cnpq.br/5997657584785803" target="_blank">http://lattes.cnpq.br/5997657584785803</a></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">Em 20/04/2017 2:04 PM, &quot;Mary Haley&quot; &lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt; escreveu:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Guilherme,</div><div class="gmail_default" style="font-size:small"><br></div>The &quot;get_areas_of_interest&quot; functio<div class="gmail_default" style="font-size:small;display:inline">​n takes a variable name in a shapefile, and returns all values of that variable, excluding those in the list set by &quot;areas_to_exclude&quot;.  </div><div><br></div><div><div class="gmail_default" style="font-size:small">​You are actually giving it the full list of values of that variable to exclude, so it effectively returns missing values.  Hence the error.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I think I understand what you are trying to do.  You want to fill in the areas outside your shapefile areas in white, to effectively mask them out.</div></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The better way to do this is to find a shapefile that has the areas that you want filled in white, and simply call gsn_add_shapefile_polygons to fill these areas in white.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 20, 2017 at 6:27 AM, Guilherme Martins <span dir="ltr">&lt;<a href="mailto:jgmsantos@gmail.com" target="_blank">jgmsantos@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Mary,<div><br></div><div>Thank you for all informations.</div><div><br></div><div>I&#39;m finishing my script using your informations (shapefiles_21.ncl) but I found a problem.</div><div><br></div><div>When I run my script, I got that message:</div><div><br></div><div><div><div><div>fatal:Subscript out of range, error in subscript #0</div><div>fatal:An error occurred reading features</div><div>fatal:[&quot;Execute.c&quot;:8575]:Execute: Error occurred at or near line 28 in file teste.ncl</div><div><br></div><div>fatal:[&quot;Execute.c&quot;:8575]:Execute: Error occurred at or near line 132 in file teste.ncl</div></div></div></div><div><br></div><div><p style="margin:0px">I am using the &quot;sigla&quot; variable that has 5 informations (S, SE, N, NE, CO), and I can only pass 4 parameters in the &quot;get_areas_of_interest&quot; function. If I try to pass 5 parameters <span style="line-height:1.5">(S, SE, N, NE, CO)</span><span style="line-height:1.5">, the script returns the above error. T</span><span style="line-height:1.5">he goal is to use the 5 parameters in the function.</span></p></div><div><br></div><div>The script and data can download at:</div><div><br></div><div><a href="http://ftp-supercomputacao.inpe.br/public/jose.martins/teste.tar.gz" target="_blank">http://ftp-supercomputacao.inpe.br/public/jose.martins/teste.tar.gz</a><br></div><div><br></div><div>The shapefile informations (*.png) are in attachment.</div><span class="m_5146516746092972673m_-8225302884202525140HOEnZb"><font color="#888888"><div><br></div><div><span style="line-height:1.5">Guilherme Martins.</span><br></div></font></span><div><div class="m_5146516746092972673m_-8225302884202525140h5"><div><br></div><div><br></div><br><div class="gmail_quote"><div dir="ltr">Em seg, 17 de abr de 2017 às 18:02, Mary Haley &lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt; escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">Guilherme,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Please see examples shapefiles_21.ncl at:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/shapefiles.shtml#ex21" target="_blank">http://www.ncl.ucar.edu/Applications/shapefiles.shtml#ex21</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">It explains why you see these &quot;blocky&quot; contours in NCL.</div><div class="gmail_default"><br></div><div class="gmail_default">Simply put, if you have four points that represent a box at the edge of a domain, and three of them have data one them and one is missing, then NCL will only draw contours in half of the box, because it won&#39;t extrapolate to that missing point.</div><div class="gmail_default"><br></div><div class="gmail_default">The real question is: do you simply want the graphics not to have gaps, or do you actually want there to be data in locations that fall just outside the geographical boundary?  You can do things to force values just outside the geographical boundary, but this depends on how you are masking in the first place.</div><div class="gmail_default"><br></div><div class="gmail_default">If you are masking based on a shapefile, then see example shapefiles_18.ncl on the same page:</div><div class="gmail_default"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/shapefiles.shtml#ex18" target="_blank">http://www.ncl.ucar.edu/Applications/shapefiles.shtml#ex18</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">Note, however, that this mask is now returning values outside the range of interest.</div><div class="gmail_default"><br></div><div class="gmail_default">If you are simply trying to mask your data *graphically* by some geographical area, then instead of trying to use a mask function, you can draw the full data, and then draw polygons filled in with white in the areas you don&#39;t want to see graphically.  That&#39;s what example 21 is showing.</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"></div></div><div class="gmail_extra"><div class="gmail_quote">On Mon, Apr 17, 2017 at 1:00 PM, Guilherme Martins <span dir="ltr">&lt;<a href="mailto:jgmsantos@gmail.com" target="_blank">jgmsantos@gmail.com</a>&gt;</span> wrote:<br></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear users,<div><br></div><div>After searching extensively on the NCL website I was not able to find a solution to my problem. I only want values within the contour of the continent, but some edges appear in the figure that are stemming from the mask that I applied and I do not know how to remove this. The figure is attached for a better view of my problem.<br></div><div><br></div><div>Best regards,</div><div><br></div><div>Guilherme.</div></div><span class="m_5146516746092972673m_-8225302884202525140m_-5392211060070848598m_1770811509721896995HOEnZb"><font color="#888888"><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><div>------------------------------------------------------------------------------------------------</div><div><div>Instituto Nacional de Pesquisas Espaciais (INPE)<br></div><div>Centro de Previsão de Tempo e Estudos Climáticos (CPTEC)</div><div>Divisão de Satélites e Sistemas Ambientais (DSA)</div><div>Programa de Monitoramento de Queimadas</div><div>Telefone (INPE/CP): <a href="tel:+55%2012%203186-9205" value="+551231869205" target="_blank">+55 12 3186-9205</a> || Celular (TIM): <a href="tel:+55%2012%2098111-4292" value="+5512981114292" target="_blank">+55 12 98111-4292</a></div><div>E-mail: <a href="mailto:guilherme.martins@inpe.br" target="_blank">guilherme.martins@inpe.br</a> || <a href="mailto:jgmsantos@gmail.com" target="_blank">jgmsantos@gmail.com</a></div><div>Skype: guilherme.martins.</div><div>Homepage: <a href="https://sites.google.com/site/jgmsantos" target="_blank">https://sites.google.com/site/jgmsantos</a></div><div>Currículo Lattes: <a href="http://lattes.cnpq.br/5997657584785803" target="_blank">http://lattes.cnpq.br/5997657584785803</a></div></div><div><span style="font-family:&quot;helvetica neue&quot;,helvetica,arial,sans-serif">------------------------------------------------------------------------------------------------</span><br></div></div></div>
</font></span><br></blockquote></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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></div>
</blockquote></div></div></div></div><div class="m_5146516746092972673m_-8225302884202525140HOEnZb"><div class="m_5146516746092972673m_-8225302884202525140h5"><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><div>------------------------------------------------------------------------------------------------</div><div><div>Instituto Nacional de Pesquisas Espaciais (INPE)<br></div><div>Centro de Previsão de Tempo e Estudos Climáticos (CPTEC)</div><div>Divisão de Satélites e Sistemas Ambientais (DSA)</div><div>Programa de Monitoramento de Queimadas</div><div>Telefone (INPE/CP): <a href="tel:+55%2012%203186-9205" value="+551231869205" target="_blank">+55 12 3186-9205</a> || Celular (TIM): <a href="tel:+55%2012%2098111-4292" value="+5512981114292" target="_blank">+55 12 98111-4292</a></div><div>E-mail: <a href="mailto:guilherme.martins@inpe.br" target="_blank">guilherme.martins@inpe.br</a> || <a href="mailto:jgmsantos@gmail.com" target="_blank">jgmsantos@gmail.com</a></div><div>Skype: guilherme.martins.</div><div>Homepage: <a href="https://sites.google.com/site/jgmsantos" target="_blank">https://sites.google.com/site/jgmsantos</a></div><div>Currículo Lattes: <a href="http://lattes.cnpq.br/5997657584785803" target="_blank">http://lattes.cnpq.br/5997657584785803</a></div></div><div><span style="font-family:&quot;helvetica neue&quot;,helvetica,arial,sans-serif">------------------------------------------------------------------------------------------------</span><br></div></div></div>
</div></div></blockquote></div><br></div>
</blockquote></div></div>
</div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><div>------------------------------------------------------------------------------------------------</div><div><div>Instituto Nacional de Pesquisas Espaciais (INPE)<br></div><div>Centro de Previsão de Tempo e Estudos Climáticos (CPTEC)</div><div>Divisão de Satélites e Sistemas Ambientais (DSA)</div><div>Programa de Monitoramento de Queimadas</div><div>Telefone (INPE/CP): +55 12 3186-9205 || Celular (TIM): +55 12 98111-4292</div><div>E-mail: <a href="mailto:guilherme.martins@inpe.br">guilherme.martins@inpe.br</a> || <a href="mailto:jgmsantos@gmail.com">jgmsantos@gmail.com</a></div><div>Skype: guilherme.martins.</div><div>Homepage: <a href="https://sites.google.com/site/jgmsantos">https://sites.google.com/site/jgmsantos</a></div><div>Currículo Lattes: <a href="http://lattes.cnpq.br/5997657584785803">http://lattes.cnpq.br/5997657584785803</a></div></div><div><span style="font-family:&quot;helvetica neue&quot;,helvetica,arial,sans-serif">------------------------------------------------------------------------------------------------</span><br></div></div></div>