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 #87768 is a reply to message #87767] Wed, 26 February 2014 13:10 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.")
[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 17:53:48 PDT 2025

Total time taken to generate the page: 0.83226 seconds