[ncl-talk] Adding observation points spatially
Noel Chawang
chawang.noel at gmail.com
Sun May 10 12:58:57 MDT 2020
Hello,
I have observation values (ranging from -1 to 1) along with the lat and lon
present which i wanted to plot spatially over the slp plot of the domain
with color indicating the magnitude and sign of the observation value.
The attached image is the output using gsn_add_polymarker for adding the
observations points with the color as an indication towards the observation
value sign(+ve or -ve). The way i have written it is that it follows an if
else condition(Line 85) to place a red marker if the value is positive and
a blue marker if the value is negative. While this takes care of the sign,
this does not allow distinction between any two blue/red markers interms of
the magnitude.
Can someone help me to utilize the color range from red to blue as per the
observation value?
I have attached the ncl script and the output. Any help is appreciated.
Thankyou
-
Noel M. Chawang
Dept. of Earth and Space Science
Indian Institute of Space Science and Technology
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200511/389a8cdf/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: impact_1106_150-50.png
Type: image/png
Size: 357596 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200511/389a8cdf/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spatial_plot.ncl
Type: application/octet-stream
Size: 2160 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200511/389a8cdf/attachment-0001.obj>
More information about the ncl-talk
mailing list