[gdal-dev] using gdal_translate with RS2

G. Michael Jean michaeljean at ncf.ca
Thu Oct 23 12:15:00 EDT 2008


Thanks for the response Phil.

When I looked more closely at my linux system I learned that using
synaptic to install gdal on ubuntu from source
http://archive.canonical.com/ubuntu (hardy) gave me version 1.4.4. I
hadn't noticed  the version installed was out of date. I installed 1.6
by compiling source as you suggested, ran my test again and it worked.

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 size is 11893, 11464
0...10...20...30...40...50...60...70...80...90...100 - done.
mjean at buttercup:~/products/PK5351_DK112_RS2_OK645_PK5351_DK112_W2_S5_S6_01205_20080307_225936_HH_HV_SGF$
gdal_translate
Usage: gdal_translate [--help-general]
       [-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/
             CInt16/CInt32/CFloat32/CFloat64}] [-strict]
       [-of format] [-b band] [-expand {rgb|rgba}]
       [-outsize xsize[%] ysize[%]]
       [-scale [src_min src_max [dst_min dst_max]]]
       [-srcwin xoff yoff xsize ysize] [-projwin ulx uly lrx lry]
       [-a_srs srs_def] [-a_ullr ulx uly lrx lry] [-a_nodata value]
       [-gcp pixel line easting northing [elevation]]*
       [-mo "META-TAG=VALUE"]* [-quiet] [-sds]
       [-co "NAME=VALUE"]*
       src_dataset dst_dataset

GDAL 1.6.0dev, released 2008/00/00


Much appreciated!

----- Original Message -----
From: Philippe Vachon <philippe at cowpig.ca>
Date: Wednesday, October 22, 2008 6:14 pm
Subject: Re: [gdal-dev] using gdal_translate with RS2

> Hi,
> 
> Just out of curiosity, are you using the 'stable' branch, GDAL 1.5? 
> I'munable 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