<div dir="ltr"><div>dear all,</div><div><br></div><div>I am downloading jp2 data from the usgs national map. To plot this in cartopy, I need to transform to something else, such as geotiff. However, using gdal_translate I get a warning copied below, and the output is a grainy bw version of the image. I have checked my results under linux both fedora core 20 and ubuntu 12.04 versions with GDAL 1.7.3, released 2010/11/10</div>
<div><br></div><div>gdal_translate m_3810623_ne_13_1_20110921_20111031.jp2 test.tiff -of GTiff</div><div><br></div><div>warning: not enough tile data (2 bytes)</div><div><br></div><div>and this warning repeats many times. FWIW, using "convert" from imagemagick gave me the same warning/output.</div>
<div><br></div><div>To test my gdal install, I downloaded a jp2 from <a href="http://www.microimages.com/gallery/jp2/">http://www.microimages.com/gallery/jp2/</a>, CB_TM432.jp2, and all is fine:</div><div><br></div><div>[kasper@localhost Downloads]$ gdal_translate CB_TM432.jp2 test.tiff -of GTiff</div>
<div>Input file size is 361, 488</div><div>0...10...20...30...40...50...60...70...80...90...100 - done.</div><div><br></div><div>and the map using the tiff looks great!</div><div><br></div><div>Is there something different about the USGS jp2 format than the ones from say microimages?</div>
<div><br></div><div>I asked the USGS help team, but they have no problems in a Windows environment, and do not have linux.</div><div><br></div><div>Best,</div><div>kasper</div></div>