Difficulty using cgimage2kml for swath data plotted in a cylindrical (Map_set) projection [message #88040] |
Thu, 13 March 2014 11:08  |
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  |
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.")
|
|
|