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

Home » Public Forums » archive » Re: circles and squares
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
Re: circles and squares [message #20646] Mon, 17 July 2000 00:00
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
Kenneth Mankoff wrote:
> i am having trouble making circular globes in IDL. Here is some sample
> code for X:
>
> window, xsize=500, ysize=500 ; should be square, pixels are...
> map_set, 0, 0, /ortho, /horiz, /grid ; produces a rectangle and oval
>
> ;;;in ps:
> set_plot, 'ps'
> device, xsize=10, ysize=10 ; should be a 10x10 cm square image
> map_set, 0, 0, /ortho, /horiz, /grid ; produces a 10x10.5 grid
>
> any suggestions or ideas as to why the above code produces rectangles with
> ovals inside rather than squares containing circles?

Try adding the ISOTROPIC keyword to the MAP_SET call:

map_set, 0, 0, /isotropic, /ortho, /horiz, /grid, /cont

Alternatively, use the SCALE keyword to define your map projection:

map_set, 0, 0, scale=75e6, /ortho, /horiz, /grid, /cont

This way the map scale stays the same regardless of the display size or
aspect ratio.

Cheers,
Liam.
http://cimss.ssec.wisc/~gumley
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Some sort of NULL value in IDL ?
Next Topic: circles and squares

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

Current Time: Fri Oct 10 16:33:14 PDT 2025

Total time taken to generate the page: 0.39647 seconds