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
Re: Wrapping image on polar projection [message #87769 is a reply to message #87768] Wed, 26 February 2014 13:23 Go to previous messageGo to previous message
Vinay is currently offline  Vinay
Messages: 3
Registered: February 2014
Junior Member
On Wednesday, February 26, 2014 12:10:38 PM UTC-9, David Fanning wrote:
> Vinay writes:
>
>
>
>> 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!!
>
>
>
> Have you read this article:
>
>
>
> http://www.idlcoyote.com/code_tips/usegriddata.html
>
>
>
> Cheers,
>
>
>
> David
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")




Hi David,

Yes, I know there are other ways to achieve this by using Map_set, Map_Patch, Map_Proj_Init ...etc. I was particularly, interested in using cgWarpToMap and was giving it a try !!!


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: Sat Oct 11 02:52:02 PDT 2025

Total time taken to generate the page: 0.00215 seconds