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

Home » Public Forums » archive » Map an image onto a sphere
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 an image onto a sphere [message #90930 is a reply to message #90903] Thu, 14 May 2015 07:27 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Monday, May 11, 2015 at 12:23:02 PM UTC-6, Joe Llama wrote:
> Hi all,
>
> I'm sure this has been answered before but I can't find the answer. I have an array that is 360 x 180 and I want to project it onto a sphere for display purposes. I've had success using the Molleweide projection with the documentation
>
>
> arr = randomu(seed, [360, 180])
> mollmap = IMAGE(arr, $
> LIMIT=[-90,-180,90,180], GRID_UNITS=2, $
> IMAGE_LOCATION=[-180,-90], IMAGE_DIMENSIONS=[360,180], $
> MAP_PROJECTION='Mollweide', rgb_table=13)
>
> But I can't seem to change it so that the projection is onto a sphere instead. Any help would be greatly appreciated. I would also ideally like to be able to specify the central longitude and latitude.
>
> Thanks!

Can you use a Stereographic projection?

arr = randomu(seed, [360, 180])
mollmap = IMAGE(arr, $
CENTER_LONGITUDE=-105, $
LIMIT=[-90,-185,90,-15], GRID_UNITS=2, $
IMAGE_LOCATION=[-180,-90], IMAGE_DIMENSIONS=[360,180], $
MAP_PROJECTION='Stereographic', rgb_table=13)
m = MapContinents(FILL_COLOR='gray')

If you change the center lon/lat, you will need to mess with the LIMIT to restrict it to a single hemisphere. Otherwise it starts to look really crazy because of the projection.

Cheers,
Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: % Program caused arithmetic error: Floating illegal operand
Next Topic: Re: Help extracting a single column from dat file

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

Current Time: Fri Oct 10 17:29:18 PDT 2025

Total time taken to generate the page: 1.04084 seconds