[Thread Prev][Thread Next][Index]

Re: [ferret_users] contour labels



Hi -
In addition to the previous replies, which are correct, I have a couple more comments-

1) The CONTOUR/SPACING= qualifier lets you change the parameter without having to use the PPL CONSET command. It makes the exact same setting as the DSLAB argument to CONSET. This qualifier is not original to Ferret, but is available in all modern versions (at least Ferret v5.8 and higher).

2) Prior to Ferret v6.7, even using the available settings with CONTOUR/SPACING, the labels weren't always drawn when the grid is finely-spaced. In Ferret v6.7 we made improvements so that they are drawn. See item #13 in the V6.7 release notes, http://ferret.pmel.noaa.gov/Ferret/documentation/version-6-7-release-notes.

Ansley



On 9/19/2011 8:30 AM, William S. Kessler wrote:
Hi Xueli -

The contouring routines have an algorithm to avoid overlapping adjacent contours (a difficult thing to program, if you think about it). Further, contouring in done in subregions if the field is large (a legacy of code written for small-memory computers).

Thus, if the contour lines are very closely spaced, so labels would extend over an adjacent contour, they may be omitted. Try reducing the number of contours. (You can force this by doing your contouring in several steps using /OVERLAY with defined contour levels, say every third level overlaid 3 times - but you might end up with labels on top of each other.)

If the grid is very large, or very dense, then the subregions may be so small that there isn't enough room for the label. In that case, the grid is probably much denser than would be visible in a plot. Try subsampling the grid, e.g.:

contour my_variable[i=1:n:2,j=1:m:2]

You can also play with PPL CONSET, whose last argument is the distance between labels along a contour line:

PPL CONSET,,,,,,,,label_distance

This might work for a dense grid with subregions, but CONSET is very finicky - changes in the argument may do nothing, or may suddenly produce too many labels. Experimenting is necessary.

BK

On 19 Sep 2011, at 7:10 AM, wang wrote:

Dear ferret-users,

I use ferret to draw contour lines but it doesn't draw contour labels. May be it due to the field is too messy.

Do you know a way to force it to draw the labels.

Thanks a lot!

Xueli



[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement