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

Home » Public Forums » archive » mapping/zooming
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
mapping/zooming [message #4804] Thu, 10 August 1995 00:00 Go to next message
delp is currently offline  delp
Messages: 3
Registered: August 1995
Junior Member
I'm trying to display a map of the north polar region.

First, I'd like to have the window initialized with the continents between 55-90
degrees lat displayed. I've tried

map_set, 90, /grid, /continent, /azimuthal, limit=[55,-180,90,180]

but I get floating point errors. Any ideas?

Second, I'd like to draw a bounding box and have it's contents zoomed to fill the display.
I've written the code to draw the bounding box, I'm assuming that all I need to do is
recreate my map projection with the new center and dimension parameters. Is this correct?

Third, does IDL provide routines to convert screen coordinates to lat/lon in a given
projection (and vice-versa)?

Thanks alot,

Steve
Re: mapping/zooming [message #4892 is a reply to message #4804] Fri, 11 August 1995 00:00 Go to previous message
svenw is currently offline  svenw
Messages: 2
Registered: August 1995
Junior Member
lena@jaameri.gsfc.nasa.gov (Jelena Marshak) writes:
>>
> I have produced a number of polar region data visualization plots and
> I don't see anything wrong with using
>
> map_set,90,/grid,/continent,/azimuthal,limit=[55,-180,90,180 ]
>
> It works on my computer.
>
> -Lena Marshak

Yes, you are right. I was wrong, but I have managed to get errors with certain
choices of parameters.
--
Sven Wallman http://www.update.uu.se/~svempa/
"Of what importance is mere money -
when there are worlds to be conquered -
people to be enslaved?" -- Doctor Doom
Re: mapping/zooming [message #4896 is a reply to message #4804] Fri, 11 August 1995 00:00 Go to previous message
afl is currently offline  afl
Messages: 51
Registered: December 1994
Member
In article <DELP.95Aug10103516@vexcel.vexcel.com>, delp@vexcel.com (Steve Delp)
writes:
|>
|> I'm trying to display a map of the north polar region.
|>
|> First, I'd like to have the window initialized with the continents between
|> 55-90
|> degrees lat displayed. I've tried
|>
|> map_set, 90, /grid, /continent, /azimuthal, limit=[55,-180,90,180]


This worked fine under IDL 4.0
Also, you may want to add the /iso keyword.



|> but I get floating point errors. Any ideas?
|>
|> Second, I'd like to draw a bounding box and have it's contents zoomed to fill
|> the display.
|> I've written the code to draw the bounding box, I'm assuming that all I need
|> to do is
|> recreate my map projection with the new center and dimension parameters. Is
|> this correct?


Sorry, but I don't understand what you are trying to do.



|> Third, does IDL provide routines to convert screen coordinates to lat/lon in
|> a given
|> projection (and vice-versa)?
|>


Look at the documentation for cursor.
Re: mapping/zooming [message #4897 is a reply to message #4804] Fri, 11 August 1995 00:00 Go to previous message
svenw is currently offline  svenw
Messages: 2
Registered: August 1995
Junior Member
delp@vexcel.com (Steve Delp) writes:


> I'm trying to display a map of the north polar region.
> First, I'd like to have the window initialized with the continents between 55-90
> degrees lat displayed. I've tried
> map_set, 90, /grid, /continent, /azimuthal, limit=[55,-180,90,180]
> but I get floating point errors. Any ideas?

I'm no expert on projections, but you can't have the north pole as a center.
Try using 89 instead of 90, but the map will probably look somewhat distorted.

> Second, I'd like to draw a bounding box and have it's contents zoomed to fill the display.
> I've written the code to draw the bounding box, I'm assuming that all I need to do is
> recreate my map projection with the new center and dimension parameters. Is this correct?

I think so..

> Third, does IDL provide routines to convert screen coordinates to lat/lon in a given
> projection (and vice-versa)?

Yes, convert_coord does that. Just make sure where your point of origin is.
xv has its origin in the upper-left corner.
--
Sven Wallman http://www.update.uu.se/~svempa/
"Of what importance is mere money -
when there are worlds to be conquered -
people to be enslaved?" -- Doctor Doom
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: 3D segmentation of MRIs
Next Topic: mapping/zooming

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

Current Time: Wed Oct 08 13:42:57 PDT 2025

Total time taken to generate the page: 0.00614 seconds