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

Home » Public Forums » archive » Wrapping image on polar projection
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Wrapping image on polar projection [message #87767] Wed, 26 February 2014 12:58 Go to previous message
Vinay is currently offline  Vinay
Messages: 3
Registered: February 2014
Junior Member
Hi folks,


Was anyone out there successful in wrapping images on polar projection using 'cg' routines. Most of the other examples essentially uses cgCoutour. OK here is where, I got stuck.

My data is similar to the example given in
http://www.idlcoyote.com/map_tips/warptomap.php


------My code---------------------------
Filein = 'test1.sav'
RESTORE, Filein
Help, image, lats, lons

S = Size(image)
lat = Rebin(lats, s(1), s(2))
lon = Rebin(lons, s(1), s(2))
image1 = Bytscl(image,min = 0.0, max = 0.15,/NaN )

cgDisplay, Title='Polar Projection'

map = Obj_New('cgMap', 'Polar Stereographic', LIMIT=[60, -180, 90, 180], Center_Lat=90, Center_Lon=180, POSITION=[0.05, 0.05, 0.95, 0.95])

warped = cgWarpToMap(Image1, lon, lat, MAP=map, MISSING=0, Resolution=[400, 300], /SetRange)
cgImage, warped, Position=[0.1, 0.1, 0.9, 0.9]
cgMap_Grid, Map=map, /Label, Color='Blue'
cgMap_Continents, MAP=map, Color='Blue'
cgMap_Continents, MAP=map, Color='Blue', /Countries
------------------------------------

It will be great, if anyone has any suggestions!!


Thanks,

Vinay
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Congratulations Fabien!
Next Topic: Help needed for a CASE statement, something subtle going on ...

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

Current Time: Fri Oct 10 09:17:32 PDT 2025

Total time taken to generate the page: 0.72006 seconds