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 
Switch to threaded view of this topic Create a new topic Submit Reply
map_set without any grid lines [message #88783] Wed, 18 June 2014 16:36 Go to next message
audrey.schaufelberger is currently offline  audrey.schaufelberger
Messages: 10
Registered: June 2014
Junior Member
I have a very simple question: I want to use map_set but I don't want it to display any grid lines. I tried setting glinethick to 0 and or spacing the glines very far apart, but nothing seems to work. Does anyone have any suggestions?

best,
Audrey
Re: map_set without any grid lines [message #88784 is a reply to message #88783] Wed, 18 June 2014 17:02 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
audrey.schaufelberger@gmail.com writes:

> I have a very simple question: I want to use map_set but I don't want it to display any grid lines. I tried setting glinethick to 0 and or spacing the glines very far apart, but nothing seems to work. Does anyone have any suggestions?

Don't set the Grid keyword.

Cheers,

David



--
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.")
Re: map_set without any grid lines [message #88785 is a reply to message #88784] Wed, 18 June 2014 17:55 Go to previous messageGo to next message
robert.vorburger is currently offline  robert.vorburger
Messages: 2
Registered: June 2014
Junior Member
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!
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 next 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.")
Re: map_set without any grid lines [message #88787 is a reply to message #88786] Wed, 18 June 2014 18:27 Go to previous messageGo to next message
robert.vorburger is currently offline  robert.vorburger
Messages: 2
Registered: June 2014
Junior Member
that... works! thank you! can't believe I tried all different variations, but never tried to set simply nothing!
Re: map_set without any grid lines [message #88788 is a reply to message #88786] Wed, 18 June 2014 18:28 Go to previous messageGo to next message
audrey.schaufelberger is currently offline  audrey.schaufelberger
Messages: 10
Registered: June 2014
Junior Member
that... works! thank you! can't believe I tried all different variations, but never tried to set simply nothing!
Re: map_set without any grid lines [message #88789 is a reply to message #88786] Wed, 18 June 2014 18:29 Go to previous message
audrey.schaufelberger is currently offline  audrey.schaufelberger
Messages: 10
Registered: June 2014
Junior Member
that... works! thank you! can't believe I tried all different variations, but never tried to set simply nothing!
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Oct 08 11:39:59 PDT 2025

Total time taken to generate the page: 0.00707 seconds