Blanking out parts of a surface plot. [message #5392] |
Tue, 28 November 1995 00:00 |
andrew
Messages: 3 Registered: June 1993
|
Junior Member |
|
|
I am working with oceanographic data for coastal regions. My data is
often gridded on regular grids (arrays) where the land points are
simply represented as some defined 'null' value. When I do a surface
and more particularly a shade_surf in PVWAVE the land sea interface is
always some rediculous gradient contour. My attempts so far have included
setting all the land values for the shade_surface image to black but you
still get a gradient between the sea and land. What I need is a routine
that produces a surface considering only the points I want. Is this asking
too much or am I not smart enough to see some obvious way to do this (don't
answer that). I have tried using shade_surf_irr but I don't think this is
what I need.
Any help or hints or ready-to-run free-of-charge source code would be
greatly appreciated.
Thank you.
|
|
|
Re: Blanking out parts of a surface plot. [message #5393 is a reply to message #5392] |
Tue, 28 November 1995 00:00  |
Andy Loughe
Messages: 174 Registered: November 1995
|
Senior Member |
|
|
Andrew Hunter wrote:
>
> I am working with oceanographic data for coastal regions. My data is
> often gridded on regular grids (arrays) where the land points are
> simply represented as some defined 'null' value. When I do a surface
> and more particularly a shade_surf in PVWAVE the land sea interface is
> always some rediculous gradient contour. My attempts so far have included
> setting all the land values for the shade_surface image to black but you
> still get a gradient between the sea and land. What I need is a routine
> that produces a surface considering only the points I want. Is this asking
> too much or am I not smart enough to see some obvious way to do this (don't
> answer that). I have tried using shade_surf_irr but I don't think this is
> what I need.
>
> Any help or hints or ready-to-run free-of-charge source code would be
> greatly appreciated.
>
> Thank you.
What about making the 'null' (or land) values equal to some LARGE number
and then using the max_value keyword?
Something like this...
IDL> shade_surf, dist(20), max_value=10.
--
Andrew F. Loughe (afl@cdc.noaa.gov)
University of Colorado, CIRES * Campus Box 449 * Boulder, CO 80309
phone: (303) 492-0707 fax: (303) 497-7013
|
|
|