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

Home » Public Forums » archive » map_set without any grid lines
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: map_set without any grid lines [message #88786 is a reply to message #88785] Wed, 18 June 2014 18:19 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
robert.vorburger@gmail.com writes:

>
> I didn't... here's the corresponding excerpt from my code:
>
> map_set, /orthographic, -53, 191, 0, $ azimuthal, lambert
> /grid, latdel=30, londel=30, /isotropic
>
> clr_0= bytscl(map, max=max(map), min=min(map), top=254)
>
>
> for i=0,size_map[1]-1 do begin
> for j=0,size_map[2]-1 do begin
> polyfill, i + [-0.5,0.5,0.5,-0.5], $
> j-90 + [-0.5,-0.5,0.5,0.5], $
> color=clr_0[i, j]
> endfor
> endfor
>
> map_grid, latdel=10, londel=10, glinethick=1, glinestyle=2
> map_grid, latdel=30, londel=30, glinethick=4, glinestyle=0
>
> map_set, /orthographic, 0, 0, 0, $
> glinethick=0, /isotropic, /advance
>
> the second map_set plots a grid even without the /grid keyword...
>
> p.s: the idea behind this is to overplot an ellipse for which I need to reset the map, because I want to plot the ellipse on the southern hemisphere of the globe but don't want it to be 'distorted'...
>
> p.p.s: I am using the ellipse function you give to one of the questions on your website. thank you for that!

Well, then, don't set the GLINETHICK keyword!

This code doesn't draw a grid on the second plot:

window, xs=800, ys=400
!p.Multi=[0,2,1]
map_set, /orthographic, -53, 191, 0, $
/grid, latdel=30, londel=30, /isotropic

map_grid, latdel=10, londel=10, glinethick=1, glinestyle=2
map_grid, latdel=30, londel=30, glinethick=4, glinestyle=0

map_set, /orthographic, 0, 0, 0, /isotropic, /advance
map_continents
!P.Multi=0
END


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Program caused arithmetic error: Floating underflow
Next Topic: read lambert projected image

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

Current Time: Thu Oct 09 07:51:23 PDT 2025

Total time taken to generate the page: 0.16049 seconds