comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Blanking out parts of a surface plot.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Blanking out parts of a surface plot. [message #5392] Tue, 28 November 1995 00:00
andrew is currently offline  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 Go to previous message
Andy Loughe is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: warp image related question?
Next Topic: Re: mbar in Widget Builder

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:39:42 PDT 2025

Total time taken to generate the page: 0.00542 seconds