<div dir="ltr">Thank you everybody, specially Dennis & Alan. Now I have exactly the plots I was looking for.<br><br><br><br>All the best,<br>Sebastián.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 17, 2015 at 8:44 AM, Alan Brammer <span dir="ltr"><<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</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">How are you converting from K to C ? <div><br></div><div>Assume we have tmpK which has all the metadata associated.</div><div><br></div><div>tmpC = tmpK - 273.15 ;; This will not retain any metadata and NCL will not know how to plot the variable. </div><div>printVarSummary(tmpC) ;; Will be a blank variable with no information. </div><div><br></div><div>Two ways to do it. </div><div>;1. </div><div>tmpC = tmpK - 273.15 ;;; Lost all metadata. <br></div><div>copy_VarCoords(tmpK, tmpC) ;; Copy over information about the coordinates. variable still doesn't' have units, long name etc, but that probably doesn't matter. </div><div><br></div><div>;2. </div><div>tmpC = tmpK ;;; This will copy metadata</div><div>tmpC = tmpC - 273.15 ;; Variable already has metadata and it will be retained. (Note: long name and units are likely now incorrect)</div><div><br></div><div><br></div><div>As always, use printVarSummary() where ever you do <span style="line-height:1.5">pretty much</span><span style="line-height:1.5"> anything as you learn to understand how NCL handles metadata and what you need to do about it. </span></div><div><br></div><div><br></div><div>Good luck, </div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Alan. </div><div><br></div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Thu, 16 Jul 2015 at 19:28 Sebastian Otarola-Bustos <<a href="mailto:Sebastian.F.Otarola-Bustos.1@nd.edu" target="_blank">Sebastian.F.Otarola-Bustos.1@nd.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thank you very much, <br><br>The last question for everybody, I attached you two images, the first one I'm plotting temperature in kelvin, in the second one I'm plotting temperature in Celcius, but as you can see, unlike what happened in the first plot here is painting everything in white. And I'm not sure why/or what option in temperature contour plot I should change.<br><br><br>Thank you a lot,<br>All the best,<br>Sebastián.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 16, 2015 at 5:41 PM, Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</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">Take a look at the colormaps:<div><br></div><div><a href="http://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml" target="_blank">http://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml</a><br></div><div><br></div><div>Choose a blue-red color map</div><div><br></div><div> wks = ...</div><div> gsn_define_colormap(wks,".....")</div><div><br></div><div><a href="https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_define_colormap.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_define_colormap.shtml</a><br></div><div><br></div><div>===</div><div>or</div><div><br></div><div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">res@cnFillPalette = "...."</pre><pre style="word-wrap:break-word"><font color="#000000"><span style="white-space:pre-wrap"><a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnFillPalette" target="_blank">http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnFillPalette</a><br></span></font></pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><br></pre></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 16, 2015 at 4:21 PM, Sebastian Otarola-Bustos <span dir="ltr"><<a href="mailto:Sebastian.F.Otarola-Bustos.1@nd.edu" target="_blank">Sebastian.F.Otarola-Bustos.1@nd.edu</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">I Finally solved my problem , here is what I've got. I just have to correct some things. By the way, only if someone know quickly the answer. How can I do a colorbar just using red for high values, and blue for low values, but only with averaged color between red and blue for the middle values, not using a completely different color. <br><br>All the best, <br>Sebastián.</div><div class="gmail_extra"><br><div class="gmail_quote"><span>On Thu, Jul 16, 2015 at 3:16 PM, Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></span> wrote:<br></span><div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The question is rather vague.<div><br></div><div>What type of "troubles" ? </div><div>Do you have a sample script that you tried?</div><div>What does </div><div><br></div><div>ncl_filedump ...GFS_file ...</div><div><br></div><div>show?</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Thu, Jul 16, 2015 at 2:08 PM, Sebastian Otarola-Bustos <span dir="ltr"><<a href="mailto:Sebastian.F.Otarola-Bustos.1@nd.edu" target="_blank">Sebastian.F.Otarola-Bustos.1@nd.edu</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">Hi everybody,<br><br>I've been trying to plot GFS output variables, mainly, HGT,TMP,UGRD &VGRD for different isobaric levels, but I'm having lot of troubles. If somebody has a script that do similar things, and could share it with me, it would be really really appreciated. Or if somebody knows where I can find an example, it would be also appreciated.<br><br><br>All the best,<br>Thank you very much.<br>Sebastián.<br><br><br></div>
<br></div></div>_______________________________________________<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><br></div>
<br>_______________________________________________<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>
</div></div></blockquote></div><br></div>
_______________________________________________<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>
</blockquote></div>
</div></div></blockquote></div><br></div>