<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>interpolation For plotting, interpolation to a grid is <b>NOT</b> necessary.</div><div><br></div><div dir="ltr"><a href="http://www.ncl.ucar.edu/Applications/station.shtml" target="_blank"><b>http://www.ncl.ucar.edu/Applications/station.shtml</b></a></div><div>Example 1</div><div>============</div><div><a href="http://www.ncl.ucar.edu/Applications/contour1d.shtml" target="_blank"><b>http://www.ncl.ucar.edu/Applications/contour1d.shtml</b></a></div><div>Examples 1 & 3</div><div>===============================================<br></div><div>Keep in mind, <b>if you do not have physics to guide you</b><br></div><div><br></div><div>(1) there is *no substitute* for lots of data points.</div><div>(2) extrapolation is *always* dangerous<br></div><div>================================================</div><div><b>Unstructured to Grid:</b></div><div><br></div><div><a href="https://www.ncl.ucar.edu/Applications/ESMF.shtml" target="_blank"><b>https://www.ncl.ucar.edu/Applications/ESMF.shtml<br></b></a></div><div>Example 21<br></div><div>=====</div><div><div><a href="http://www.ncl.ucar.edu/Applications/contour1d.shtml" target="_blank"><b>http://www.ncl.ucar.edu/Applications/contour1d.shtml</b></a></div></div><div><br></div><div>Some <b>interpolation</b> functions that may be of use.<br></div><div><b><br></b></div><div><a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/cssgrid_Wrap.shtml" target="_blank"><b>http://www.ncl.ucar.edu/Document/Functions/Contributed/cssgrid_Wrap.shtml</b></a><br></div><div><a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/obj_anal_ic_Wrap.shtml" target="_blank"><b>http://www.ncl.ucar.edu/Document/Functions/Contributed/obj_anal_ic_Wrap.shtml</b></a></div><div><a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/triple2grid_Wrap.shtml" target="_blank"><b>https://www.ncl.ucar.edu/Document/Functions/Contributed/triple2grid_Wrap.shtml</b></a></div><div><br></div><div><b>See Examples 3 & 4</b></div><div><a href="https://www.ncl.ucar.edu/Applications/rdm2grid.shtml#ex3" target="_blank"><b>https://www.ncl.ucar.edu/Applications/rdm2grid.shtml#ex3</b></a><br></div></div></div></div></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 5, 2019 at 11:53 AM MeteoBB <<a href="mailto:info@meteo-bb.de" target="_blank">info@meteo-bb.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
Thx Rick for your quick response.<br>
<br>
Playing a little bit with the smooth-Parameter of the cn-resources
yields the plot attached.<br>
<font face="Courier New"><br>
<b>res@cnSmoothingOn = True</b><b><br>
</b><b>res@cnSmoothingDistanceF = 0.005 ;(usw 0.005 ... 0.03)</b></font><br>
<br>
An area left is getting colored. (there is no station!)<br>
This is risky i think, if I set the parameter (hardcoded). I never
know what the graphics will look like.<br>
<br>
Do you think i should try interpolate the station data from my
unstructured grid to a rectilinear grid using <b>natgrid</b>? <br>
<br>
MeteoBB<br>
<br>
<div class="gmail-m_-523433163998621343gmail-m_288553170242397455gmail-m_5378693543236316164moz-cite-prefix">Am 05.02.2019 um 19:04 schrieb Rick
Brownrigg:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>You might take a look at the several resources associated
with "<strong>cnSmoothingOn" <br>
</strong></div>
<div><br>
</div>
<div>HTH...Rick<br>
</div>
<div><strong></strong></div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Feb 5, 2019 at 10:22
AM MeteoBB <<a href="mailto:info@meteo-bb.de" target="_blank">info@meteo-bb.de</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"> Hello,<br>
<br>
I tried to plot station data of surface temperature on a map
as a contour plot. I'm not satisfied with the result (see
attached picture AreaFill.png).<br>
It all seems so angular. My grid is not regular because of
the station data. <br>
<br>
Switching from AreaFill to RasterFill results in a litte
better plot (smooth contours) as you can see in the picture
attached (RasterFill.png).<br>
<b><font face="Courier New">res@cnFillMode = "AreaFill"<br>
res@cnFillMode = "RasterFill"</font></b><br>
<br>
I tried to regrid the triangular mesh (unstructured) station
data to a structured grid using <b>natgrid</b>?<br>
But it fails ...<br>
<br>
Do you have any ideas for a better plot? Or what is the
correct way to plot such station data as contour?<br>
<br>
Regards<br>
MeteoBB<br>
</div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote>
</div>
</blockquote>
<br>
</div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>