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

Sam McClatchie smcclatchie at fishocean.info
Tue Oct 2 01:44:55 MDT 2018


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>

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
-- 
email signature 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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181002/d0ba3988/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/d0ba3988/attachment.jpg>


More information about the ncl-talk mailing list