[ncl-talk] smooth contours of a one dimensional variable with spatial attributes

Rick Brownrigg brownrig at ucar.edu
Tue Oct 2 07:27:29 MDT 2018


Hi Sam,

I do not have any experience with the smoothing, but looking through the
contouring docs, there are several resources related to smoothing:


http://ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnRasterSmoothingOn

I don't see that any of these specifically require 2D data.



On Tue, Oct 2, 2018 at 1:45 AM Sam McClatchie <smcclatchie at fishocean.info>
wrote:

> Colleagues
>
> I'm plotting surfaces using a one dimensional variable with spatial
> attributes:
>
> ; read in CalCOFI larval data
>       in                           =
> addfile("../data/CalCOFI_vinciguerria_by_cruise_"+cruise+".nc","r")
>       larvae                    = in->larvae_10m2
>       larvae at lat1d         = in->latitude
>       larvae at lon1d        = in->longitude
> ..................
> plot_Vinciguerria            = gsn_csm_contour_map_ce(wks,larvae,res)
>
> here's a summary of the variable being plotted =====================
> ncl 55> printVarSummary(larvae)
>
> Variable: larvae
> Type: float
> Total Size: 716 bytes
>             179 values
> Number of Dimensions: 1
> Dimensions and sizes:    [row | 179]
> Coordinates:
> Number Of Attributes: 5
>   actual_range :    (  0, 175.07 )
>   coordinates :    time latitude longitude
>   ioos_category :    Other
>   long_name :    Standardized count of larvae for oblique tows
>   units :    Fish larvae per ten meters squared of water sampled
> ncl 56>
> ===================
> If you look at my plots, it's pretty clear that some smoothing of the
> contours would be a good idea:
>
> <https://my.pcloud.com/publink/show?code=XZCAIe7ZthCAvhQXclQFi79D7Tv6xpCASSn7>
> <https://my.pcloud.com/publink/show?code=XZCAIe7ZthCAvhQXclQFi79D7Tv6xpCASSn7>
>
> 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?
>
> Best fishes
> Sam
> --
> Sam McClatchie (fisheries oceanographer)
> & Elena Turin (accounting & auditing)
> FishOcean Enterprises
> 38 Upland Rd, Huia, Auckland 0604, New Zealand
> cell: 027 752 8495
> Internet <http://www.fishocean.info>
>
>
> "The time has come", the tui said,
> "to talk of many things:
> Of songs - and ferns - and flowering flax,
> of Pukekos and dreams ..."
>
> (not Lewis Carroll)
> _______________________________________________
> 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/20181002/16ac61cb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SamMcClatchie2_small.jpg
Type: image/jpeg
Size: 45362 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181002/16ac61cb/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SamMcClatchie2_small.jpg
Type: image/jpeg
Size: 45362 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181002/16ac61cb/attachment-0001.jpg>


More information about the ncl-talk mailing list