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

Home » Public Forums » archive » Re: Drawing map in 3D plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Drawing map in 3D plot [message #39921 is a reply to message #39917] Fri, 25 June 2004 12:52 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kenneth Bowman writes:

> Any idea why the Antarctic coastline is cut off? The gap appears to be
> related to the aspect ratio of the window. Try changing the shape of
> the window (either tall or wide) and rerun the commands above.
> Apparently, coastlines are not drawn close the bottom of the window.
>
> This is in a new IDL session. I have not set any margins, etc. It
> happens with both the X and PS devices.
>
> Any idea how to fix this?

I fixed it like this:

x = -180.0 + 360.0*RANDOMU(seed, 100) ;Make some random data
y = -90.0 + 180.0*RANDOMU(seed, 100)
z = 1000.0*RANDOMU(seed, 100)

PLOT_3DBOX, x, y, z, $
PSYM = 3, $
XTITLE = 'Longitude', $
XSTYLE = 1, $
XRANGE = [-180.0, 180.0], $
XTICKS = 4, $
XMINOR = 3, $
YTITLE = 'Latitude', $
YSTYLE = 1, $
YRANGE = [-90.0, 90.0], $
YTICKS = 6, $
YMINOR = 3, $
ZTITLE = 'Altitude (hPa)', $
ZSTYLE = 1, $
ZRANGE = [1000.0, 0.0], $
ZTICKS = 5, $
ZMINOR = 2

MAP_SET, /T3D, /CONT, Z = 1000.0, /NOERASE, $
LIMIT = [-90.0, -180.0, 90.0, 180.0], /NOBORDER, $
POSITION = [!X.WINDOW[0], !Y.WINDOW[0], !X.WINDOW[1], !Y.WINDOW[1]]
MAP_CONTINENTS, Z=1000.0, /T3D, /NOCLIP


Continents get clipped for some reason in 3D. Unfortunately,
the MAP_SET command doesn't pass the NOCLIP along to MAP_CONTINENTS,
so you have to call the latter command by itself.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: semi-transparent colors and z buffer
Next Topic: How to crate an mask image from ROI?

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

Current Time: Fri Oct 10 22:43:05 PDT 2025

Total time taken to generate the page: 0.72204 seconds