<div dir="ltr"><div dir="ltr"><div>Hi Sam,</div><div><br></div><div>I do not have any experience with the smoothing, but looking through the contouring docs, there are several resources related to smoothing:</div><div><br></div><div> <a href="http://ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnRasterSmoothingOn">http://ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnRasterSmoothingOn</a></div><div><br></div><div>I don't see that any of these specifically require 2D data.</div><div><br></div><div> <br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 2, 2018 at 1:45 AM Sam McClatchie <<a href="mailto:smcclatchie@fishocean.info">smcclatchie@fishocean.info</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Colleagues<br>
<br>
I'm plotting surfaces using a one dimensional variable with spatial
attributes:<br>
<br>
; read in CalCOFI larval data<br>
in =
addfile("../data/CalCOFI_vinciguerria_by_cruise_"+cruise+".nc","r")<br>
larvae = in->larvae_10m2<br>
larvae@lat1d = in->latitude<br>
larvae@lon1d = in->longitude<br>
..................<br>
plot_Vinciguerria =
gsn_csm_contour_map_ce(wks,larvae,res)<br>
<br>
here's a summary of the variable being plotted =====================<br>
ncl 55> printVarSummary(larvae)<br>
<br>
Variable: larvae<br>
Type: float<br>
Total Size: 716 bytes<br>
179 values<br>
Number of Dimensions: 1<br>
Dimensions and sizes: [row | 179]<br>
Coordinates: <br>
Number Of Attributes: 5<br>
actual_range : ( 0, 175.07 )<br>
coordinates : time latitude longitude<br>
ioos_category : Other<br>
long_name : Standardized count of larvae for oblique tows<br>
units : Fish larvae per ten meters squared of water sampled<br>
ncl 56> <br>
===================<br>
If you look at my plots, it's pretty clear that some smoothing of
the contours would be a good idea: <br>
<a class="m_327318577349683586moz-txt-link-rfc2396E" href="https://my.pcloud.com/publink/show?code=XZCAIe7ZthCAvhQXclQFi79D7Tv6xpCASSn7" target="_blank"><https://my.pcloud.com/publink/show?code=XZCAIe7ZthCAvhQXclQFi79D7Tv6xpCASSn7></a><br>
<br>
However, all of the smoothing functions I've seen (e.g. smth9) seem
to need a 2-dimensional variable to work. I'm probably asking a
silly question, but how do I smooth a contour plot that uses a
one-dimensional variable with spatial attributes?<br>
<br>
Best fishes<br>
Sam<br>
<div class="m_327318577349683586moz-signature">-- <br>
Sam McClatchie (fisheries oceanographer)<br>
& Elena Turin (accounting & auditing)<br>
FishOcean Enterprises<br>
38 Upland Rd, Huia, Auckland 0604, New Zealand<br>
cell: 027 752 8495<br>
<span style="text-decoration:underline"><a href="http://www.fishocean.info" target="_blank">Internet</a></span><br>
<img style="width:150px;height:149px" alt="" src="cid:part2.0EFB2FC9.E653E923@fishocean.info"><br>
<br>
"The time has come", the tui said,<br>
"to talk of many things:<br>
Of songs - and ferns - and flowering flax,<br>
of Pukekos and dreams ..."<br>
<br>
(not Lewis Carroll)
</div>
</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>