[ncl-talk] GFS_NCL

Sebastian Otarola-Bustos Sebastian.F.Otarola-Bustos.1 at nd.edu
Fri Jul 17 11:20:43 MDT 2015


Thank you everybody, specially Dennis & Alan. Now I have exactly the plots
I was looking for.



All the best,
Sebastián.

On Fri, Jul 17, 2015 at 8:44 AM, Alan Brammer <abrammer at albany.edu> wrote:

> How are you converting from K to C ?
>
> Assume we have tmpK  which has all the metadata associated.
>
> tmpC = tmpK - 273.15    ;;  This will not retain any metadata and NCL will
> not know how to plot the variable.
> printVarSummary(tmpC)   ;; Will be a blank variable with no information.
>
> Two ways to do it.
> ;1.
> tmpC = tmpK - 273.15     ;;; Lost all metadata.
> 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.
>
> ;2.
> tmpC = tmpK    ;;; This will copy metadata
> tmpC = tmpC - 273.15  ;; Variable already has metadata and it will be
> retained.   (Note: long name and units are likely now incorrect)
>
>
> As always, use printVarSummary() where ever you do pretty much anything
> as you learn to understand how NCL handles metadata and what you need to do
> about it.
>
>
> Good luck,
>
> Alan.
>
>
>
> On Thu, 16 Jul 2015 at 19:28 Sebastian Otarola-Bustos <
> Sebastian.F.Otarola-Bustos.1 at nd.edu> wrote:
>
>> Thank you very much,
>>
>> 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.
>>
>>
>> Thank you a lot,
>> All the best,
>> Sebastián.
>>
>> On Thu, Jul 16, 2015 at 5:41 PM, Dennis Shea <shea at ucar.edu> wrote:
>>
>>> Take a look at the colormaps:
>>>
>>> http://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml
>>>
>>> Choose a blue-red color map
>>>
>>>   wks = ...
>>>   gsn_define_colormap(wks,".....")
>>>
>>>
>>> https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_define_colormap.shtml
>>>
>>> ===
>>> or
>>>
>>> res at cnFillPalette        = "...."
>>>
>>> http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnFillPalette
>>>
>>>
>>>
>>> On Thu, Jul 16, 2015 at 4:21 PM, Sebastian Otarola-Bustos <
>>> Sebastian.F.Otarola-Bustos.1 at nd.edu> wrote:
>>>
>>>> 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.
>>>>
>>>> All the best,
>>>> Sebastián.
>>>>
>>>> On Thu, Jul 16, 2015 at 3:16 PM, Dennis Shea <shea at ucar.edu> wrote:
>>>>
>>>>> The question is rather vague.
>>>>>
>>>>> What type of "troubles" ?
>>>>> Do you have a sample script that you tried?
>>>>> What does
>>>>>
>>>>> ncl_filedump ...GFS_file ...
>>>>>
>>>>> show?
>>>>>
>>>>> On Thu, Jul 16, 2015 at 2:08 PM, Sebastian Otarola-Bustos <
>>>>> Sebastian.F.Otarola-Bustos.1 at nd.edu> wrote:
>>>>>
>>>>>> Hi everybody,
>>>>>>
>>>>>> 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.
>>>>>>
>>>>>>
>>>>>> All the best,
>>>>>> Thank you very much.
>>>>>> Sebastián.
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> ncl-talk mailing list
>>>>>> ncl-talk at ucar.edu
>>>>>> List instructions, subscriber options, unsubscribe:
>>>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>>>>
>>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> ncl-talk mailing list
>>>> ncl-talk at ucar.edu
>>>> List instructions, subscriber options, unsubscribe:
>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>>
>>>>
>>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150717/f245b07c/attachment.html 


More information about the ncl-talk mailing list