[gdal-dev] using gdal_translate with RS2

Philippe Vachon philippe at cowpig.ca
Wed Oct 22 18:14:35 EDT 2008


Hi,

Just out of curiosity, are you using the 'stable' branch, GDAL 1.5? I'm
unable to reproduce the issue using the development branch, but I don't
have a GDAL 1.5 tree handy to build and test. What I might suggest is
grabbing a snapshot of the GDAL 1.6 tree (or doing an SVN checkout of
it), building it on your Ubuntu system, then running gdal_translate in
the apps/ directory there.

I actually am guilty of the opposite crime -- I haven't tested the
driver on Windows, but the development I did was done on Linux. Good to
see that it works there, though.

Cheers,
Phil

On Wed, Oct 22, 2008 at 05:29:58PM -0400, G. Michael Jean wrote:
> Hi
> 
> I am trying to read RS2 format using gdal and output a GTiff. On my
> primary system i686 32 bit ubuntu o/s it doesn't work:
> 
> mjean at buttercup:~/products/PK5351_DK112_RS2_OK645_PK5351_DK112_W2_S5_S6_01205_20080307_225936_HH_HV_SGF$
> gdal_translate product.xml out.tif
> Input file contains subdatasets. Please, select one of them for reading.
> mjean at buttercup:~/products/PK5351_DK112_RS2_OK645_PK5351_DK112_W2_S5_S6_01205_20080307_225936_HH_HV_SGF$
> gdal_translate RADARSAT_2_CALIB:BETA0:product.xml out.tif
> Input file contains subdatasets. Please, select one of them for reading.
> mjean at buttercup:~/products/PK5351_DK112_RS2_OK645_PK5351_DK112_W2_S5_S6_01205_20080307_225936_HH_HV_SGF$
> cd ..
> mjean at buttercup:~/products$ cd RS*
> mjean at buttercup:~/products/RS2_OK2775_PK36076_DK35381_S2_20081010_130353_HH_HV_SGF$
> gdal_translate RADARSAT_2_CALIB:BETA0:product.xml out.tif
> Input file contains subdatasets. Please, select one of them for reading.
> mjean at buttercup:~/products/RS2_OK2775_PK36076_DK35381_S2_20081010_130353_HH_HV_SGF$
> uname -a
> Linux buttercup 2.6.24-21-generic #1 SMP Mon Aug 25 17:32:09 UTC 2008
> i686 GNU/Linux
> 
> 
> When I try the same command/data on a windows system it works:
> D:\RS2_OK2775_PK36076_DK35381_S2_20081010_130353_HH_HV_SGF>gdal_translate
> RADARSAT_2_CALIB:BETA0:product.xml test.tif
> 
> Input file size is 8766, 7731
> 
> 0...10...20...30...40...50...60...70...80...90...100 - done.
> 
> 
> 
> D:\PK5351_DK112_RS2_OK645_PK5351_DK112_W2_S5_S6_01205_20080307_225936_HH_HV_SGF>gdal_translate
> RADARSAT_2_CALIB:BETA0:product.xml
> 
> test.tif
> 
> Warning 1: TIFFReadDirectory:Unknown field with tag 34595 (0x8723)
> encountered
> 
> Warning 1: TIFFReadDirectory:Unknown field with tag 34595 (0x8723)
> encountered
> 
> Input file size is 11893, 11464
> 
> 0...10...20...30...40...50...60...70...80...90...100 - done.
> 
> 
> 
> D:\PK5351_DK112_RS2_OK645_PK5351_DK112_W2_S5_S6_01205_20080307_225936_HH_HV_SGF>ver
> 
> 
> 
> Microsoft Windows XP [Version 5.1.2600]
> 
> 
> Has anyone else experienced this? Is the RS2 driver fully
> tested/supported for linux as well as windows?
> 
> Michael
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list