Re: problem set [message #10715 is a reply to message #6232] |
Tue, 13 January 1998 00:00   |
f055
Messages: 29 Registered: April 1995
|
Junior Member |
|
|
In article <34BA75F2.41C6@io.harvard.edu>, Martin Schultz <mgs@io.harvard.edu> writes:
-(1) The contours are artificially closed near the boundaries of the
-plot, producing vertical lines which distract the reader,
You could try adding missing=!values.f_nan as an additional parameter in
your call to the trigrid function. It should set the values around the
edges and outside the region of data coverage to the NaN missing code rather
than to the default of zero. They then won't be contoured. In fact, the
lines will stop short of the edges - something that you may not want
either! But, having set them to NaN during the gridding phase, you could
then apply some smoothing to the gridded field (taking into account the
fact that you have some NaN values - e.g. with
smoothfactor=3 ;(the higher the value, the greater the smoothing)
fdsmooth=smooth(fd,smoothfactor,/nan,/edge_truncate)
which will infill some of the missing regions with nearby/adjacent
non-missing values (and will, of course, also smooth the field).
Hope that's of some help
Tim
......................... Dr Tim Osborn . t.osborn@uea.ac.uk
.... ___/.. __ /.. /.. /. Senior Research Associate . phone:01603 592089
... /..... /. /.. /.. /.. Climatic Research Unit . fax: 01603 507784
.. /..... __/.. /.. /... School of Environmental Sciences.
. /..... /\ ... /.. /.... University of East Anglia .
____/.._/..\_..____/..... Norwich NR4 7TJ .
......................... UK .
|
|
|