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

Home » Public Forums » archive » Difficulty using cgimage2kml for swath data plotted in a cylindrical (Map_set) projection
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Difficulty using cgimage2kml for swath data plotted in a cylindrical (Map_set) projection [message #88040] Thu, 13 March 2014 11:08 Go to next message
Jasdeep Anand is currently offline  Jasdeep Anand
Messages: 16
Registered: August 2011
Junior Member
Hey all,

I'm plotting some satellite swath data (individual pixels of varying size and orientation due to viewing geometry), so I have to define the map space first (I'm using cgMap_set/Map_set for this), and then overplot each individual pixel as a filled polygon using cgColorFill/Polyfill. Ideally I would like to convert the finished image into a Google Earth overlay, so I'm trying to use cgImage2KML to do the necessary reprojection & writing to a KMZ.

However, the program requires a projection defined by cgMap, which allows for GCTP projections only. As I'm using cgMap_set's default projection (Cylindrical...?) I can't create the necessary object to pass to the cgImage2KML. Is there any way around this?

Thanks,

Jay.
Re: Difficulty using cgimage2kml for swath data plotted in a cylindrical (Map_set) projection [message #88042 is a reply to message #88040] Thu, 13 March 2014 12:34 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jay writes:

> I'm plotting some satellite swath data (individual pixels of varying size and orientation due to viewing geometry), so I have to define the map space first (I'm using cgMap_set/Map_set for this), and then overplot each individual pixel as a filled polygon using cgColorFill/Polyfill. Ideally I would like to convert the finished image into a Google Earth overlay, so I'm trying to use cgImage2KML to do the necessary reprojection & writing to a KMZ.
>
> However, the program requires a projection defined by cgMap, which allows for GCTP projections only. As I'm using cgMap_set's default projection (Cylindrical...?) I can't create the necessary object to pass to the cgImage2KML. Is there any way around this?

OK, so you somehow created an image by mapping pixels into a cylindrical
map projection. Is this right? Now you have a 2D or 3D image that you
want to display as a KML file?

Then, I think it is as simple as this:

cgImage2KML, image, Obj_New('cgmap', 'equirectangular')

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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: use ENVI classic functions in IDL without openning ENVI GUI
Next Topic: Optimizing code for faster calculation

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

Current Time: Wed Oct 08 13:46:48 PDT 2025

Total time taken to generate the page: 0.00371 seconds