![]() |
![]() |
---|---|
|
|
Example:
yes? use etopo60 yes? set region/x=90w:20e/y=15s:55n yes? shade rose yes? let ocean_mask = IF rose LT 0 THEN 1 ELSE 0 yes? GO mask_outline ocean_mask yes? ovmo ! think "overlay mask outline" ! If the final line segments at the north and east of the plot are missing yes? cancel region yes? ovmo ! Use "yes? SHOW ALIAS ovmo" to see or modify the contour commandThe technique used is to define a modified mask grid as follows: ('+' to indicate the corners of the boundaries between grid cells) Say the original grid of 0's and 1's looks like this:
0 1 1 + + + + 0 0 1We define a new mask which contains clusters of 4 points a small distance, EPSILON, from one another immediately surrounding the cell corners. (the original values are in parentheses):
(0) (1) (1) 0 0 1 1 1 1 + + + + 0 0 0 0 1 1 (0) (0) (1)When the value 0.5 is contoured on this mask, the contour lines will pass within EPSILON of the true corners.
Last modified: Nov 1, 2004
The requested URL "/footer.txt" was not found on this server.