"Azimuth_First_Time" CSG issue

Dear Community,

we are using the Microwave Toolbox v.12.0 (microwave-toolbox/ReleaseNotes.md at master · senbox-org/microwave-toolbox · GitHub).

We observed that when processing CSG imagery (2nd generation), there is the attribute Azimuth_First_Time which is provided under S01/B0001 (h5 file → S01 → B0001) but the toolbox expects it under “B001”.

According to the documentation (https://earth.esa.int/eogateway/documents/20142/37627/COSMO-SkyMed-Second-Generation-Mission-Products-Description.pdf) both are valid.

Yet, when we try to use the toolbox for a package with B0001, we receive an error as follows:

metadata attribute “S01_B001_Azimuth_First_Time” not found

Did someone else encounter this issue?

Does anybody have a suggestion on how we can approach this exception?

Thank you in advance and kind regards,

Josefo

@lveci could you help?

Allow me to add the following info about the error stack trace at hand:

Metadata attribute 'S01_B001_Azimuth_First_Time' not found
	at eu.esa.sar.commons.io.SARReader.handleReaderException(SARReader.java:212) ~[sar-commons-12.0.0.jar:?]
	at eu.esa.sar.io.cosmo.CosmoSkymedReader.readProductNodesImpl(CosmoSkymedReader.java:85) ~[sar-io-12.0.0.jar:?]
	at org.esa.snap.core.dataio.AbstractProductReader.readProductNodes(AbstractProductReader.java:181) ~[snap-core-12.0.0.jar:?]
	at org.esa.snap.core.dataio.ProductIO.readProductImpl(ProductIO.java:255) ~[snap-core-12.0.0.jar:?]
	at org.esa.snap.core.dataio.ProductIO.readProduct(ProductIO.java:225) ~[snap-core-12.0.0.jar:?]
	at org.esa.snap.engine_utilities.gpf.CommonReaders.readProduct(CommonReaders.java:38) ~[snap-engine-utilities-12.0.0.jar:?]
(...)
Caused by: java.lang.IllegalArgumentException: Metadata attribute 'S01_B001_Azimuth_First_Time' not found
	at org.esa.snap.core.datamodel.MetadataElement.getAttributeDouble(MetadataElement.java:364) ~[snap-core-12.0.0.jar:?]
	at eu.esa.sar.io.cosmo.CosmoSkymedNetCDFReader.addFirstLastLineTimes(CosmoSkymedNetCDFReader.java:458) ~[sar-io-12.0.0.jar:?]
	at eu.esa.sar.io.cosmo.CosmoSkymedNetCDFReader.createProduct(CosmoSkymedNetCDFReader.java:124) ~[sar-io-12.0.0.jar:?]
	at eu.esa.sar.io.cosmo.CosmoSkymedReader.readProductNodesImpl(CosmoSkymedReader.java:74) ~[sar-io-12.0.0.jar:?]
	at org.esa.snap.core.dataio.AbstractProductReader.readProductNodes(AbstractProductReader.java:181) ~[snap-core-12.0.0.jar:?]
	at org.esa.snap.core.dataio.ProductIO.readProductImpl(ProductIO.java:255) ~[snap-core-12.0.0.jar:?]
	at org.esa.snap.core.dataio.ProductIO.readProduct(ProductIO.java:225) ~[snap-core-12.0.0.jar:?]
	at org.esa.snap.engine_utilities.gpf.CommonReaders.readProduct(CommonReaders.java:38) ~[snap-engine-utilities-12.0.0.jar:?]
(...)

I work in the same project as @Joseforo … we still need assistance

@lveci will you be able to assist?