Dear Volker, Ansley,
You can get some smoothing in to the contours by regridding the data
to a finer grid.
this is what I usuallyu do with wave data near the coast. Keep in
mind that you're smoothing data, so you have to be careful that the
data still looks like the original enough. I typically do either
shade /lev=(...) significant_wave_height ! coarse blocks
fill /over /lev significant_wave_height ! overlay smoothed
! part, doesn't reach coastlines
when that fails, I use scat2gridgauss_xy to regrid the data to a much
finer grid, typically the grid of etopo05 or something similar. This
has the advantage that you can use scat2grid_gauss to extrapolate
toward the coast a bit, so you don't get so much missing data.
let hs=significant_wave_height
smooth_hs = scat2gridgauss(xsequence(x[g=hs]), \
xsequence(y[g=hs]), \
xsequence(hs), \
x[g=rose], y[g=rose], 0.5, 0.5, 3, 0)
shade smooth_hs
contour /overlay smooth_hs
The resulting contours of a high resolution regrid are typically quite
smooth. Again, beware of changing the data too much! You have to
play with the xscale, yscale and cutoff parameters a bit depending on
the data and the target grid.
Kind regards,
Hein