<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
ds=gdal.Open('manifest.safe')<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
ds.GetRasterBand(1).ReadAsArray(5000, 6000, 10, 6)=<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
array([[ 8. +7.j, 6.+10.j, -3. +5.j, -3. -1.j, -6. -1.j, -2. -1.j,
<div> 3. +0.j, -2. +0.j, -5. -3.j, -1. -1.j],</div>
<div> [ 7. +0.j, 4. +0.j, -1. +1.j, -4. +2.j, -1. +0.j, -5. +0.j,</div>
<div> -1. +2.j, 1. +0.j, -4. +2.j, 5. +0.j],</div>
<div> [ 0. -6.j, 0. -8.j, 2. -3.j, -1. +3.j, 3. +3.j, -3. +0.j,</div>
<div> -4. +1.j, 2. +1.j, 0. +6.j, 6. +1.j],</div>
<div> [-5. -7.j, -3.-10.j, 4. -3.j, 2. +1.j, 4. +3.j, 2. +2.j,</div>
<div> -2. +0.j, 1. +1.j, 3. +4.j, 0. +1.j],</div>
<div> [-6. -3.j, -3. -2.j, 1. +0.j, 4. +0.j, 1. +0.j, 4. +3.j,</div>
<div> 2. -1.j, 0. +0.j, 4. +0.j, -4. -1.j],</div>
<div> [-2. +4.j, -3. +7.j, -3. +2.j, 2. -1.j, -1. -3.j, 2. +1.j,</div>
<span> 4. +0.j, -1. -1.j, 3. -4.j, -4. -3.j]], dtype=complex64)</span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>ds2=gdal.Open('measurement/s1a-iw3-slc-hh-20180215t214409-20180215t214434-020623-0234f6-003.tiff')<br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><span style="background-color:rgb(255, 255, 255);display:inline !important">ds2.GetRasterBand(1).ReadAsArray(5000, 6000, 10, 6)=</span><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><span style="background-color:rgb(255, 255, 255);display:inline !important">array([[ 21. -4.j, 110.+28.j, 154.-24.j, 76.-65.j, -32.-72.j,
<div> -104.-77.j, -114.-34.j, -78. +4.j, -45.-37.j, -15.-55.j],</div>
<div> [ 40. -3.j, -48.-34.j, -164.+21.j, -149.+49.j, -78.+23.j,</div>
<div> -1.+32.j, 90.+33.j, 127.-12.j, 119.-18.j, 144. -1.j],</div>
<div> [ -59. +5.j, 26.+82.j, 124.+47.j, 124.-48.j, 84.-38.j,</div>
<div> 27.+18.j, -55.+28.j, -93.+37.j, -112.+51.j, -158.+39.j],</div>
<div> [ -31. +0.j, -90.-49.j, -78.-50.j, -37.+35.j, -5.+51.j,</div>
<div> 26.-21.j, 30.-38.j, 25.-25.j, 58.-63.j, 45.-66.j],</div>
<div> [ 107.+20.j, 64.+30.j, 16.+46.j, 15. -3.j, 4.-56.j,</div>
<div> -19.-45.j, -1.-21.j, 0.+10.j, -29.+59.j, 23.+57.j],</div>
<div> [ -77. -1.j, -8.-50.j, -9.-63.j, -32.-10.j, -27.+30.j,</div>
<span> -32.+36.j, -33.+22.j, 2.-10.j, 25.-18.j, 2.-11.j]], dtype=complex64)</span><br>
</span></span></div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
as you can see, not only SAFE driver can only ingest 1 TIFF out of 3. Its complex numbers are wrong.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> gdal-dev <gdal-dev-bounces@lists.osgeo.org> on behalf of ni hao <ni_hao88@hotmail.com><br>
<b>Sent:</b> February 3, 2022 10:11 AM<br>
<b>To:</b> Even Rouault <even.rouault@spatialys.com>; gdal-dev@lists.osgeo.org <gdal-dev@lists.osgeo.org><br>
<b>Subject:</b> Re: [gdal-dev] Sentinel-1 IW Single Look Complex (SLC)</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-size:11pt; font-family:Calibri,Helvetica,sans-serif">Hi List,</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-size:11pt; font-family:Calibri,Helvetica,sans-serif">I do</span><span style="font-size:11pt; font-family:Calibri,Helvetica,sans-serif">wnloaded the 3.4.1 and python binding (python 3.6)</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="font-size:11pt; font-family:Calibri,Helvetica,sans-serif">Tested on an </span><span style="background-color:rgb(255,255,255); display:inline!important; font-size:11pt; font-family:Calibri,Helvetica,sans-serif">IW SLC product contains one image
per sub-swath, for a total of 3 tiff for HH.</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255); display:inline!important"><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255); display:inline!important">It still only shows one raster band: the first TIFF, rather than three. </span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255); display:inline!important">Although <span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:14.6667px; background-color:rgb(255,255,255); display:inline!important">ds.GetSubDatasets()
shows three: IW1, IW2, IW3</span></span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255); display:inline!important"><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255); display:inline!important">ds=gdal.Open('manifest.safe')</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255); display:inline!important"><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span style="background-color:rgb(255,255,255); display:inline!important"><span style="color:rgb(34,34,34); font-family:Calibri,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">>>> ds.RasterCount</span>
<div style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)">
<span style="font-size:11pt">1</span></div>
<div style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)">
<span style="font-size:11pt">>>> ds.GetSubDatasets()</span></div>
<span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">[('SENTINEL1_CALIB:SIGMA0:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">manifest.safe:IW1_HH:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">INTENSITY',
'Single band with IW1 swath and HH polarization and SIGMA0 calibration'), ('SENTINEL1_CALIB:BETA0:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">manifest.safe:IW1_HH:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">INTENSITY',
'Single band with IW1 swath and HH polarization and BETA0 calibration'), ('SENTINEL1_CALIB:GAMMA:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">manifest.safe:IW1_HH:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">INTENSITY',
'Single band with IW1 swath and HH polarization and GAMMA calibration'), ('SENTINEL1_CALIB:UNCALIB:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">manifest.safe:IW1_HH:COMPLEX',
'Single band with IW1 swath and HH polarization and UNCALIB calibration'), ('SENTINEL1_CALIB:UNCALIB:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">manifest.safe:IW1_HH:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">INTENSITY',
'Single band with IW1 swath and HH polarization and UNCALIB calibration'), ('SENTINEL1_CALIB:SIGMA0:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">manifest.safe:IW2_HH:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">INTENSITY',
'Single band with IW2 swath and HH polarization and SIGMA0 calibration'), ('SENTINEL1_CALIB:BETA0:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">manifest.safe:IW2_HH:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">INTENSITY',
'Single band with IW2 swath and HH polarization and BETA0 calibration'), ('SENTINEL1_CALIB:GAMMA:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">manifest.safe:IW2_HH:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">INTENSITY',
'Single band with IW2 swath and HH polarization and GAMMA calibration'), ('SENTINEL1_CALIB:UNCALIB:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">manifest.safe:IW2_HH:COMPLEX',
'Single band with IW2 swath and HH polarization and UNCALIB calibration'), ('SENTINEL1_CALIB:UNCALIB:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">manifest.safe:IW2_HH:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">INTENSITY',
'Single band with IW2 swath and HH polarization and UNCALIB calibration'), ('SENTINEL1_CALIB:SIGMA0:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">manifest.safe:IW3_HH:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">INTENSITY',
'Single band with IW3 swath and HH polarization and SIGMA0 calibration'), ('SENTINEL1_CALIB:BETA0:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">manifest.safe:IW3_HH:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">INTENSITY',
'Single band with IW3 swath and HH polarization and BETA0 calibration'), ('SENTINEL1_CALIB:GAMMA:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">manifest.safe:IW3_HH:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">INTENSITY',
'Single band with IW3 swath and HH polarization and GAMMA calibration'), ('SENTINEL1_CALIB:UNCALIB:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">manifest.safe:IW3_HH:COMPLEX',
'Single band with IW3 swath and HH polarization and UNCALIB calibration'), ('SENTINEL1_CALIB:UNCALIB:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">manifest.safe:IW3_HH:</span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:small; background-color:rgb(255,255,255)"><wbr></span><span style="color:rgb(34,34,34); font-family:Arial,Helvetica,sans-serif; font-size:11pt; background-color:rgb(255,255,255)">INTENSITY',
'Single band with IW3 swath and HH polarization and UNCALIB calibration')]</span><br>
</span></div>
<div id="x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Even Rouault <even.rouault@spatialys.com><br>
<b>Sent:</b> February 1, 2022 12:33 PM<br>
<b>To:</b> ni hao <ni_hao88@hotmail.com>; gdal-dev@lists.osgeo.org <gdal-dev@lists.osgeo.org><br>
<b>Subject:</b> Re: [gdal-dev] Sentinel-1 IW Single Look Complex (SLC)</font>
<div> </div>
</div>
<div>
<p style="margin-top: 0px; margin-bottom: 0px;">Hi,</p>
<p style="margin-top: 0px; margin-bottom: 0px;">There have been improvements in GDAL 3.4.0 (*) regarding SLC products in the SAFE/Sentinel 1 driver. I can see that it seems to work fine on a S1A_IW_SLC__xxxx dataset. I don't have EW SLC products at hand</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Even</p>
<p style="margin-top: 0px; margin-bottom: 0px;">(*) <a class="x_x_moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/commit/eea55bfcfd36c081b8354b0a4e132cfc51332ef8">
https://github.com/OSGeo/gdal/commit/eea55bfcfd36c081b8354b0a4e132cfc51332ef8</a><br>
</p>
<div class="x_x_moz-cite-prefix">Le 01/02/2022 à 17:26, ni hao a écrit :<br>
</div>
<blockquote type="cite">
<div><span>Hi list,</span></div>
<div><span><br>
</span></div>
<div><span>GDAL Sentinel-1 driver question:</span></div>
<div><span><span>I know that </span><span>GDAL Sentinel-1 driver works well on GRD (detected). </span><br>
</span></div>
<div><span><span>What about SLC?</span></span></div>
<div><span><span><br>
</span></span></div>
<div><span>Level-1 </span>IW SLC product contains one image per sub-swath, per polarisation channel, for a total of three or six images (3 tiff for HH, or 6 tiff for HH/HV dual-band)</div>
<div><span><span><span>The EW SLC products contain one image per sub-swath, per polarisation channel, for a total of five or ten images.<br>
</span><br>
</span></span></div>
<div><span><span></span></span></div>
<div><a href="https://sentinels.copernicus.eu/web/sentinel/technical-guides/sentinel-1-sar/products-algorithms/level-1-algorithms/single-look-complex" id="LPNoLPOWALinkPreview" class="x_x_moz-txt-link-freetext">https://sentinels.copernicus.eu/web/sentinel/technical-guides/sentinel-1-sar/products-algorithms/level-1-algorithms/single-look-complex</a><br>
</div>
<br>
<div>Thank you.</div>
<br>
<fieldset class="x_x_moz-mime-attachment-header"></fieldset>
<pre class="x_x_moz-quote-pre">_______________________________________________
gdal-dev mailing list
<a class="x_x_moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="x_x_moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="x_x_moz-signature" cols="72">--
<a class="x_x_moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</div>
</div>
</body>
</html>