[ncl-talk] RGB triplets colormap --> Two different figures, same script.

Lara Quitián Hernández laraquitianhernandez at gmail.com
Fri Jun 1 04:12:07 MDT 2018


Hello,

I just found the solution! If you use the *cnFillPalette* instead of
*gsn_define_colormap* function, it works! I do not know the reason because
it should also work with the "gsn" function (as the documentation says),
but at least it works.

Regards,
Lara

2018-06-01 11:50 GMT+02:00 Lara Quitián Hernández <
laraquitianhernandez at gmail.com>:

> OK. I will ask them.
>
> Thanks,
> Lara
>
> 2018-06-01 11:47 GMT+02:00 Guido Cioni <guidocioni at gmail.com>:
>
>> SOrry, I've just realized that you're using WRF functions, which I
>> actually don't know that much and use to cause many problems when they are
>> used in a slightly different configuration that they were intended to...
>> That may be the cause since I've used a similar setup, besides the WRF
>> functions, and it was working. Maybe you should write to wrf-ncl-help?
>>
>> On 1. Jun 2018, at 11:45, Guido Cioni <guidocioni at gmail.com> wrote:
>>
>> Hey Lara,
>> any chance you could also send the file? Or is it too large?
>>
>> On 1. Jun 2018, at 11:43, Lara Quitián Hernández <
>> laraquitianhernandez at gmail.com> wrote:
>>
>> Hello,
>>
>> I don't get any warning or error message...It's really weird.
>>
>> Of course, I attach my script. Thank you very much.
>>
>> Regards,
>> Lara
>>
>> 2018-06-01 11:29 GMT+02:00 Guido Cioni <guidocioni at gmail.com>:
>>
>>> Lara, this is indeed pretty weird...
>>> Do you get any warning while running the script?
>>> Also, could you attach the script so that we can take a look?
>>>
>>> Thanks
>>>
>>> On 1. Jun 2018, at 11:19, Lara Quitián Hernández <
>>> laraquitianhernandez at gmail.com> wrote:
>>>
>>> Good morning,
>>>
>>> I'm trying to display a particular field using a combination of RGB
>>> triplets. I have already defined them:
>>>
>>> *colors = (/"(/1.00, 1.00, 1.00/)", "(/0.98,  0.99,  1.00/)", \*
>>> *"(/0.98,  0.99,  1.00/)", "(/0.96,  0.98,  0.99/)", \*
>>> *"(/0.95,  0.98,  0.99/)", "(/0.94,  0.98,  0.99/)", \*
>>> *"(/0.93,  0.97,  0.99/)", "(/0.92,  0.97,  0.99/)", \*
>>> *"(/0.91,  0.96,  0.99/)", "(/0.90,  0.96,  0.99/)", \*
>>> *"(/0.89,  0.96,  0.99/)", "(/0.88,  0.95,  0.99/)", \*
>>> *"(/0.87,  0.95,  0.98/)", "(/0.86,  0.94,  0.98/)", \*
>>> *"(/0.85,  0.94,  0.98/)", "(/0.84,  0.94,  0.98/)"/)*
>>>
>>>
>>> *gsn_define_colormap(wks,colors)*
>>>
>>> However, I obtain a figure without title, tickmarks, time stamp,
>>> labelbar information, etc.
>>>
>>> <850hPa_ETH_416_2014-10-19_18:00:00.png>
>>> The issue is that when I use a predefined colormap without changing any
>>> other variable in my script:
>>>
>>>
>>> *gsn_define_colormap(wks,"WhiteBlueGreenYellowRed")*
>>>
>>> I obtain a complete figure with all predefined settings. Both images are
>>> generated with the same script, only by modifying the colormap function.
>>> What's going on?
>>>
>>> <850hPa_ETH2_416_2014-10-19_18:00:00.png>
>>>
>>> Thanks in advance.
>>>
>>> Regards,
>>> Lara
>>>
>>> -
>>>
>>>
>>> *Lara Quitián Hernández, PhD Student*
>>> Departamento de Física de la Tierra, Astronomía y Astrofísica
>>> Facultad de Ciencias Físicas
>>> Ciudad Universitaria, Plaza Ciencias, 1
>>> <https://maps.google.com/?q=Ciudad+Universitaria,+Plaza+Ciencias,+1+28040+Madrid.+Spain&entry=gmail&source=g>
>>> 28040 Madrid. Spain
>>> <https://maps.google.com/?q=Ciudad+Universitaria,+Plaza+Ciencias,+1+28040+Madrid.+Spain&entry=gmail&source=g>
>>> Email: lquitian at ucm.es <mlunar at aemet.es>
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk at ucar.edu
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>>
>>>
>>> Guido Cioni
>>> http://guidocioni.altervista.org
>>>
>>>
>>
>>
>> --
>>
>>
>> *Lara Quitián Hernández, PhD Student*
>> Departamento de Física de la Tierra, Astronomía y Astrofísica
>> Facultad de Ciencias Físicas
>> Ciudad Universitaria, Plaza Ciencias, 1
>> <https://maps.google.com/?q=Ciudad+Universitaria,+Plaza+Ciencias,+1+28040+Madrid.+Spain&entry=gmail&source=g>
>> 28040 Madrid. Spain
>> <https://maps.google.com/?q=Ciudad+Universitaria,+Plaza+Ciencias,+1+28040+Madrid.+Spain&entry=gmail&source=g>
>> Email: lquitian at ucm.es <mlunar at aemet.es>
>>
>> <ETH_lara.ncl>
>>
>>
>>
>> Guido Cioni
>> http://guidocioni.altervista.org
>>
>>
>>
>> Guido Cioni
>> http://guidocioni.altervista.org
>>
>>
>
>
> --
>
>
> *Lara Quitián Hernández, PhD Student*
> Departamento de Física de la Tierra, Astronomía y Astrofísica
> Facultad de Ciencias Físicas
> Ciudad Universitaria, Plaza Ciencias, 1
> 28040 Madrid. Spain
> Email: lquitian at ucm.es <mlunar at aemet.es>
>
>


-- 


*Lara Quitián Hernández, PhD Student*
Departamento de Física de la Tierra, Astronomía y Astrofísica
Facultad de Ciencias Físicas
Ciudad Universitaria, Plaza Ciencias, 1
28040 Madrid. Spain
Email: lquitian at ucm.es <mlunar at aemet.es>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180601/d3342784/attachment.html>


More information about the ncl-talk mailing list