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

Home » Public Forums » archive » google earth projections
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: google earth projections [message #63976 is a reply to message #63180] Wed, 26 November 2008 06:01 Go to previous messageGo to previous message
voorlandt is currently offline  voorlandt
Messages: 3
Registered: November 2008
Junior Member
> Does your /cylindrical map projection actually work?
> For my images (global), it did not.  Perhaps you are not plotting
> near the poles.

Yes the cylindrical map projection works really well. I have my
(global) data on a fixed lat/lon grid, and when I plot the country
boundaries, they almost perfectly match with google's boundaries in
overlay. The transparent function given above does not work for me
(the saved file is completely transparent), so I use GIMP to make the
background transparent.

Here is my complete code (it uses the Coyote and Catalyst Program
Libraries)

!P.POSITION = [0, 0, 1, 1] & !P.REGION = [0, 0, 1, 1] & !X.MARGIN =
[0, 0] & !Y.MARGIN = [0, 0]
DEVICE, DECOMPOSED=0 & window,1,xsize=5000,ysize=2500 & LoadCT, 22, /
Silent, NColors=255
MAP_SET, /Cylindrical, /NOBORDER, LIMIT = [-90, -180, 90, 180],
Position=[0, 0, 1, 1]
contour, zzzz, lond,latd, MIN_VALUE=0, MAX_VALUE=1,/FILL,
NLEVELS=255, /OVERPLOT, C_Colors=indgen(255), Position=[0, 0, 1, 1]
MAP_CONTINENTS, Color=FSC_Color('black',255) & Map_Grid,
Color=FSC_Color('black',255)
image = tvrd(true=1) & write_png, 'file.png', image & wdelete,1
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: widget_tab: prevent switching?
Next Topic: Re: Filled contours + labels of different color

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

Current Time: Wed Oct 08 17:47:41 PDT 2025

Total time taken to generate the page: 0.00417 seconds