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 #87823 is a reply to message #87767] Thu, 27 February 2014 09:57 Go to previous message
Vinay is currently offline  Vinay
Messages: 3
Registered: February 2014
Junior Member
On Wednesday, February 26, 2014 11:58:46 AM UTC-9, Vinay wrote:
> 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



So true, the data is low-resolution and limits the ability to get good results. Yes, the gridded methods 'works' fine with quite acceptable results. Thankyou for your time.

Cheers!!
[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 22:36:34 PDT 2025

Total time taken to generate the page: 0.52103 seconds