Two of us at the National Radio Astronomy Observatory are using
wcs2kml to perform web-based automated image importing into Google
Earth's Sky. Our service, "KML Now!", provides an interface to Simple
Image Access (SIA) servers that conform to the standards of the
International Virtual Observatory Alliance.
In a nutshell, KML Now lets the user search available SIA servers for
images at some location on the sky. Our service downloads the images,
converts them using wcs2kml and sends the user a KML document. The
warped PNG is cached on the server side.
You can try KML Now for yourself by going here:
I also have a code change I would like to commit. I've modified
wcsprojection.cc to make the WCS conversion work with common radio
image data. Previously, wcs2kml would abort if it found more than 2
axes in the FITS header. My change allows more than 2 axes under the
condition that axes 3 and above are degenerate (the array length is
1). For radio images, it is common to store polarization and
frequency information in axes 3 and 4. If the image is total
intensity and continuum (one polarization plane and one frequency
plane), axes 3 and 4 still exist but are degenerate.
I can either email you the updated file, or you can add me as a member
of the wcs2kml Google Code project.
Jared Crossley (and Ron DuPlain)
I was using the tarball version, or perhaps an old version from the
repository. I've checked out the new svn version. I see that it does
convert radio FITS data without any of my changes! This is good.
For completeness, here's my thinking about the FITS -> PNG conversion:
In the FITS -> PNG conversion code, axes 3 and above are relevant. If
there are multiple image planes, we must decide how these will be
handled. Should all planes be added together in some fashion, or
should every plane generate a new PNG image?
For our Web service (KML Now) we use STIFF (link below), which has
proved to be an easy-to-use and rather robust program for converting
FITS to TIFF. ImageMagick then does the simple TIFF->PNG conversion.
(Initially we tried to use the python conversion script packaged with
wcs2kml, but it did not always work -- may have been confused by the
different keywords present in the radio FITS data.)