[ncl-talk] Set desired color map

Setareh Rahimi setareh.rahimi at gmail.com
Tue Nov 8 03:04:07 MST 2022


Dear Rick,
So many thanks for your help. The issue has been resolved now. I used the "
cnFillPalette", but it did not work so I removed it from the script.
Best wishes,

On Mon, Nov 7, 2022 at 6:10 PM Rick Brownrigg <brownrig at ucar.edu> wrote:

> Hi,
>
> In your attached script, you open the workstation at around line 20, and
> call gen_define_colormap().  Then around line 65, you call "wks =
> gsn_open_wks()" again, thus overwriting all previous settings associated
> with the variable wks.  I don't know why the assignment to cnFillPalette
> did not work, I don't see it in your script.
>
> Hope that helps...
> Rick
>
>
> On Mon, Nov 7, 2022 at 2:47 AM Setareh Rahimi via ncl-talk <
> ncl-talk at mailman.ucar.edu> wrote:
>
>> Dear NCL users,
>> I need to set my desired color map for my plot. I defined it this way in
>> NCL: gsn_define_colormap(wks,"GMT_no_green")  (CHECK the attached).
>> But NCL used the default color map (https://
>> www.ncl.ucar.edu/Document/Graphics/ColorTables/ncl_default.shtml).
>> Moreover, I tested this command line: res at cnFillPalette        =
>> "GMT_no_green", bud did not work!
>> How can I manage this issue, please?
>> Best wishes,
>>
>>
>> --
>> S.Rahimi
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at mailman.ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>

-- 
S.Rahimi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20221108/20a5d6af/attachment.htm>


More information about the ncl-talk mailing list