[gradsusr] getting x/y positions of contours

Huddleston, John Huddleston at cira.colostate.edu
Thu May 6 10:44:49 EDT 2010


James,

If you save the image as a PNG or GIF, you can reference it using KML. Here is a hypothetical example.

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
 <GroundOverlay>
  <name>YourNameForTheImage</name>
  <Icon>
    <href>http://www.hawaii.edu/GeMaps/YourImage.png</href>
  </Icon>
  <LatLonBox>
   <west>        -130.25</west>
   <east>         -59.75</east>
   <south>          19.75</south>
   <north>          50.25</north>
   <rotation>0.0</rotation>
  </LatLonBox>
 </GroundOverlay>
</kml>

If you are using Google V.2 then it is straightforward.  If you are using V.3 then you may want to use GEOXML3. http://code.google.com/p/geoxml3/ 

Either way, rendering of GrADS images using KML is fast and efficient.

John Huddleston, PhD



-----Original Message-----
From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of James T. Potemra
Sent: Thursday, May 06, 2010 1:50 AM
To: gradsusr at gradsusr.org
Subject: [gradsusr] getting x/y positions of contours


I was wondering if it was possible to get (x,y) or (lon,lat) positions 
of contour lines instead of, or in addition to, the lines being drawn on 
the page?  I'm trying to use GrADS to generate a contour plot, then 
display contours as lines on googlemap page.  I can do it as a raster 
over-lay, but the resolution is less than optimal, particularly when 
zooming.  Thanks in advance,

Jim
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr




More information about the gradsusr mailing list