[ncl-talk] show a satellite granule with missing value color gray even if no valid observations
Mary Haley
haley at ucar.edu
Sun May 15 22:16:49 MDT 2016
If you simply had a constant field, then I would suggest looking at the
"cnConstFEnableFill" resource:
http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnConstFEnableFill
However, you have the case where all of your data is missing, and NCL
treats this as something it can't contour at all.
If you want this to be filled in a color, then I believe the only thing you
can do is set your array to some non-missing value, like 1.0 and then use
the cnConstFEnableFill to turn on constant fill.
Here's how you would fix your data to be constant:
if(all(ismissing(data))) then
data = 1.0
end if
--Mary
On Fri, May 13, 2016 at 12:32 AM, Yun Yue <yunyue at huskers.unl.edu> wrote:
> Hi NCL users,
>
> I'm using a similar code as here
> https://www.ncl.ucar.edu/Applications/HDF.shtml example 5 to read and
> plot multiple files. I plot all the missing data as gray. When there's no
> satellite granule, I plot it as white color.
>
>
> Now when I have a granule pass by, but all the data is missing value, I
> always get "NO CONTOUR DATA" in the middle, the granule was not plotted. So
> the color is white at this granule's position. I want to show this granule
> with gray even if all the data is missing value. Do you have any idea to
> fix this?
>
>
> Thanks very much,
>
> Yun
>
>
> _______________________________________________
> 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/20160515/220d8f4e/attachment.html
More information about the ncl-talk
mailing list