[gdal-dev] Problem selecting subdatasets using gdal_translate.
Frank Warmerdam
warmerdam at pobox.com
Sun May 4 16:56:31 EDT 2008
michael jean wrote:
> Hi,
>
> I'm having difficulty selecting subdatasets using gdal_translate for an
> RS2 product to output a TIFF. I get the exact same result for another
> RS2 product type SGX...no joy. Can anyone help?
...
> mjean at sweetpea:~$ gdal_translate
> RADARSAT_2_CALIB:BETA0:/home/mjean/image_products/PK5369_DK179_RS2_OK656_PK5369_DK179_Q11_01205_20080307_213751_HH_VV_HV_VH_SLC/product.xml /home/mjean/Desktop/image.tif
> Input file contains subdatasets. Please, select one of them for reading.
Michael,
I'm surprised to see this. It seems to suggest that the subdatasets
also have subdataset metadata which would be confusing to gdal_translate.
I tried a dataset here and it seemed to work ok.
gdal_translate
RADARSAT_2_CALIB:SIGMA0:/usr3/data/polarmetric/rs2/SB_DUAL_S7_SLC_2004_07_15_13_53_23/product.xml
~/out.tif
...10...20...30...40...50...60...70...80...90...100 - done.
Are you using GDAL 1.5.x or GDAL trunk? I see a few fixes have been applied
in trunk, so I would encourage you to try that.
To be honest, I didn't know all this subdataset stuff existed in this
driver. I gather it was added by Phil or someone else.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
More information about the gdal-dev
mailing list