Closed BaptisteVandecrux closed 3 years ago
Would it be possible to see the error message or the whole log? Here you only provide a warning. If you could also provide the SICE options you used it would help me to reproduce the situation, thank you in advance!
Posted on STEP: https://forum.step.esa.int/t/gpt-outputs-geotiff-with-corrupted-bands-after-bandextract/27888
potentially causing #13 and #15
Hi Adrien,
I found out that the extra bands were actually flags and non-spectral data that were somehow attached as bands to the geotiffs. Since these extra bands are saved with float resolution, the size of the geotiff exploded, causing issue #15.
For the processing of SLSTR, I can turn off the copy of flags and non-spectral data:
<node id="Rad2Refl_SLSTR">
<operator>Rad2Refl</operator>
<sources><source>Read_SLSTR</source></sources>
<parameters>
<sensor>SLSTR_500m</sensor>
<copyTiePointGrids>true</copyTiePointGrids>
<copyFlagBandsAndMasks>false</copyFlagBandsAndMasks>
<copyNonSpectralBands>false</copyNonSpectralBands>
</parameters>
</node>
then it outputs single-bands SLSTR files.
It is not as easy for the data we need from OLCI scenes: We need some of the non-spectral information, but we want to output them into single-band geotiffs.
I am looking for a workaround. In the meantime, can you confirm that in previous versions of snap and gpt, the scripts outputed single-band geotiffs?
Hi Adrien,
I found out that the extra bands were actually flags and non-spectral data that were somehow attached as bands to the geotiffs. Since these extra bands are saved with float resolution, the size of the geotiff exploded, causing issue #15.
For the processing of SLSTR, I can turn off the copy of flags and non-spectral data:
<node id="Rad2Refl_SLSTR"> <operator>Rad2Refl</operator> <sources><source>Read_SLSTR</source></sources> <parameters> <sensor>SLSTR_500m</sensor> <copyTiePointGrids>true</copyTiePointGrids> <copyFlagBandsAndMasks>false</copyFlagBandsAndMasks> <copyNonSpectralBands>false</copyNonSpectralBands> </parameters> </node>
then it outputs single-bands SLSTR files.
It is not as easy for the data we need from OLCI scenes: We need some of the non-spectral information, but we want to output them into single-band geotiffs.
I am looking for a workaround. In the meantime, can you confirm that in previous versions of snap and gpt, the scripts outputed single-band geotiffs?
Hi Baptiste,
very interesting but also kind of weird, I indeed never ever faced a similar issue (always obtained single-band files). Do you use the exact same SNAP and gpt specs as the ones specified in README.org?
Saved multiple band issue here: https://forum.step.esa.int/t/gpt-outputs-geotiff-with-corrupted-bands-after-bandselect/27888/15 workaround leads to issues with pixel geocoding https://forum.step.esa.int/t/pixels-set-to-nan-when-using-pixel-geocoding/28599/2
Will be solved when switching to https://github.com/GEUS-SICE/SICE/tree/SNAP8
Example xml:
Output geotiff:
Message from G_align: