[ncl-talk] Removing line over ocean for soil moisture+ reversing color of plot
Setareh Rahimi
setareh.rahimi at gmail.com
Thu May 26 09:54:50 MDT 2022
Dear Rick,
Thank you for your advice. I got no errors or warnings regarding the
script. I just wonder why there are values over the ocean!
Best wishes,
On Thu, May 26, 2022 at 8:17 PM Rick Brownrigg <brownrig at ucar.edu> wrote:
> To your 1st question, were there any errors or warnings reported by NCL?
>
> On the 2nd question, it looks like you are setting your colors with this
> line:
>
> res at cnFillPalette = "perc2_9lev"
>
> Perhaps try:
>
> cmap = read_colormap_file("perc2_9lev")
> res at cnFillPalette = cmap(::-1, :)
>
> Take a look at the documentation for cnFillPalette for discussion on how
> there might be two extra colors in the new palette; I don't know if that
> matters to what you are trying to do:
>
> http://ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnFillPalette
>
> HTH...Rick
>
>
> On Thu, May 26, 2022 at 8:47 AM Setareh Rahimi via ncl-talk <
> ncl-talk at mailman.ucar.edu> wrote:
>
>>
>> Dear all,
>> I plotted the monthly anomaly of soil moisture, however, after plotting I
>> noticed that for the month of January there are some lines over the
>> Atlantic ocean. I wonder why this happened, please? The script, image,
>> soilw.mon.mean.v2.nc
>> <https://drive.google.com/file/d/1vl3N7Ptg0NnQGDBWOToGjj9CdcD9Fnr-/view?usp=drive_web>
>> and the data set have been attached.
>> I have another question. How can I reverse the color of the map, please?
>> Please kindly advise me.
>> Thanks in advance,
>> 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/20220526/b29ffca6/attachment.htm>
More information about the ncl-talk
mailing list