<p>Thanks for the GMT suggestions. I&#39;ve never used it, I&#39;ll try it out.</p>
<p>Thanks!!</p>
<p>Typed with thumbs...</p>
<div class="gmail_quote">On Apr 12, 2011 7:24 PM, &quot;Joaquim Luis&quot; &lt;<a href="mailto:jluis@ualg.pt">jluis@ualg.pt</a>&gt; wrote:<br type="attribution">&gt; Jerl,<br>&gt; <br>&gt; I would do that with GMT. By using ps2raster you can convert any GMT <br>
&gt; figure (in geogs of course) into KML, and GMT has excellent care of date <br>&gt; line transition issues.<br>&gt; <br>&gt; Joaquim<br>&gt; <br>&gt;&gt; Hello:<br>&gt;&gt;<br>&gt;&gt; I stopped by the #gdal channel on IRC to ask this question.  Thank you<br>
&gt;&gt; for the help provided there.  I thought it might be better if I asked<br>&gt;&gt; a question here so I can better explain what&#39;s going on in one spot<br>&gt;&gt; and not flood the channel.<br>&gt;&gt; I understand this is a pixel center vs pixel edge issue.<br>
&gt;&gt;<br>&gt;&gt; My ultimate goal is to get from a netCDF file to a google map overlay contour.<br>&gt;&gt; The general steps I&#39;ve taken, which work all the way up to about<br>&gt;&gt; 178.29 then it just cuts off.<br>
&gt;&gt;<br>&gt;&gt; netCDF -&gt;  color-relief PNG using &quot;gdaldem color-relief ...  &quot;<br>&gt;&gt; PNG -&gt;  Geocoded PNG using &quot;gdal_translate -a_srs EPSG:4326 -outsize<br>&gt;&gt; 4096 4096 -a_ullr -180.25 90.25 180.25 -90.25&quot; on the PNG (Have also<br>
&gt;&gt; tried this with just &quot;-180 90 180 -90&quot;<br>&gt;&gt; PNG -&gt;  tiles using &quot;gdal2tiles.py -s EPSG:4326 -z 0 -n -w google&quot; on<br>&gt;&gt; the Geocoded PNG<br>&gt;&gt; I guess first question, is my methodology sound?  Maybe there&#39;s a<br>
&gt;&gt; better way/tool to approach the problem.<br>&gt;&gt;<br>&gt;&gt; Following is the output from gdalinfo, other than that, what<br>&gt;&gt; information might I be able to provide that could help?<br>&gt;&gt;<br>&gt;&gt; Thank you,<br>
&gt;&gt;<br>&gt;&gt; Jerl<br>&gt;&gt;<br>&gt;&gt; gdalinfo for the source netcdf: (My apologies, I&#39;m not certain what is<br>&gt;&gt; relevant so I&#39;m including most everything.)<br>&gt;&gt;<br>&gt;&gt; Driver: netCDF/Network Common Data Format<br>
&gt;&gt; Files: <a href="http://test.nc">test.nc</a><br>&gt;&gt; Size is 721, 361<br>&gt;&gt; Coordinate System is `&#39;<br>&gt;&gt; Origin = (-180.250000000000000,90.250000000000000)<br>&gt;&gt; Pixel Size = (0.500000000000000,-0.500000000000000)<br>
&gt;&gt; Metadata:<br>&gt;&gt;    NC_GLOBAL#Conventions=CF-1.0<br>&gt;&gt;    NC_GLOBAL#cdm_data_type=GRID<br>&gt;&gt;    NC_GLOBAL#file_format=GEMPAK<br>&gt;&gt;    NC_GLOBAL#location=test.grd<br>&gt;&gt;    NC_GLOBAL#history=Direct read of GEMPAK into NetCDF-Java 4.0 API<br>
&gt;&gt;    NC_GLOBAL#_CoordinateModelRunDate=2011-04-12T00:00:00Z<br>&gt;&gt;    UVIN_NONE#long_name=testdata<br>&gt;&gt;    UVIN_NONE#units=<br>&gt;&gt;    UVIN_NONE#missing_value=-9.999000e+03<br>&gt;&gt;    UVIN_NONE#VectorComponentFlag=gridRelative<br>
&gt;&gt;    time#long_name=forecast time<br>&gt;&gt;    time#units=minute since 2011-04-12T00:00:00Z<br>&gt;&gt;    time#_CoordinateAxisType=Time<br>&gt;&gt;    lat#units=degrees_north<br>&gt;&gt;    lat#long_name=latitude coordinate<br>
&gt;&gt;    lat#standard_name=latitude<br>&gt;&gt;    lat#grid_spacing=0.5 degrees_north<br>&gt;&gt;    lat#_CoordinateAxisType=Lat<br>&gt;&gt;    lon#units=degrees_east<br>&gt;&gt;    lon#long_name=longitude coordinate<br>
&gt;&gt;    lon#standard_name=longitude<br>&gt;&gt;    lon#grid_spacing=0.5 degrees_east<br>&gt;&gt;    lon#_CoordinateAxisType=Lon<br>&gt;&gt; Corner Coordinates:<br>&gt;&gt; Upper Left  (-180.2500000,  90.2500000)<br>&gt;&gt; Lower Left  (-180.2500000, -90.2500000)<br>
&gt;&gt; Upper Right ( 180.2500000,  90.2500000)<br>&gt;&gt; Lower Right ( 180.2500000, -90.2500000)<br>&gt;&gt; Center      (   0.0000000,   0.0000000)<br>&gt;&gt;<br>&gt;&gt; gdalinfo of geocoded PNG:<br>&gt;&gt;<br>&gt;&gt; Driver: PNG/Portable Network Graphics<br>
&gt;&gt; Files: testWorld.png<br>&gt;&gt;         testWorld.png.aux.xml<br>&gt;&gt; Size is 4096, 4096<br>&gt;&gt; Coordinate System is:<br>&gt;&gt; GEOGCS[&quot;WGS 84&quot;,<br>&gt;&gt;      DATUM[&quot;WGS_1984&quot;,<br>
&gt;&gt;          SPHEROID[&quot;WGS 84&quot;,6378137,298.257223563,<br>&gt;&gt;              AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],<br>&gt;&gt;          AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]],<br>&gt;&gt;      PRIMEM[&quot;Greenwich&quot;,0,<br>
&gt;&gt;          AUTHORITY[&quot;EPSG&quot;,&quot;8901&quot;]],<br>&gt;&gt;      UNIT[&quot;degree&quot;,0.01745329251994328,<br>&gt;&gt;          AUTHORITY[&quot;EPSG&quot;,&quot;9122&quot;]],<br>&gt;&gt;      AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]<br>
&gt;&gt; Origin = (-180.000000000000000,90.000000000000000)<br>&gt;&gt; Pixel Size = (0.087890625000000,-0.043945312500000)<br>&gt;&gt; Image Structure Metadata:<br>&gt;&gt;    INTERLEAVE=PIXEL<br>&gt;&gt; Corner Coordinates:<br>
&gt;&gt; Upper Left  (-180.0000000,  90.0000000) (180d 0&#39;0.00&quot;W, 90d 0&#39;0.00&quot;N)<br>&gt;&gt; Lower Left  (-180.0000000, -90.0000000) (180d 0&#39;0.00&quot;W, 90d 0&#39;0.00&quot;S)<br>&gt;&gt; Upper Right ( 180.0000000,  90.0000000) (180d 0&#39;0.00&quot;E, 90d 0&#39;0.00&quot;N)<br>
&gt;&gt; Lower Right ( 180.0000000, -90.0000000) (180d 0&#39;0.00&quot;E, 90d 0&#39;0.00&quot;S)<br>&gt;&gt; Center      (   0.0000000,   0.0000000) (  0d 0&#39;0.01&quot;E,  0d 0&#39;0.01&quot;N)<br>&gt;&gt; Band 1 Block=4096x1 Type=Byte, ColorInterp=Red<br>
&gt;&gt;    Mask Flags: PER_DATASET ALPHA<br>&gt;&gt; Band 2 Block=4096x1 Type=Byte, ColorInterp=Green<br>&gt;&gt;    Mask Flags: PER_DATASET ALPHA<br>&gt;&gt; Band 3 Block=4096x1 Type=Byte, ColorInterp=Blue<br>&gt;&gt;    Mask Flags: PER_DATASET ALPHA<br>
&gt;&gt; Band 4 Block=4096x1 Type=Byte, ColorInterp=Alpha<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt; <br></div>