Not able to create subset from SLSTR L2 data

Description

When using the "Spatial Subset from View" functionality on S3 SLSTR Level2 LST data, it can happen that an error occurs. It depends which area is currently shown in the view, if both swath borders are visible then it works. If only one is visible then an Exception occurs.

java.lang.NegativeArraySizeException
at org.esa.snap.core.datamodel.TiePointGrid.createSubset(TiePointGrid.java:1016)
at org.esa.snap.core.dataio.ProductSubsetBuilder.addTiePointGridsToProduct(ProductSubsetBuilder.java:644)
at org.esa.snap.core.dataio.ProductSubsetBuilder.createProduct(ProductSubsetBuilder.java:473)
at org.esa.snap.core.dataio.ProductSubsetBuilder.readProductNodesImpl(ProductSubsetBuilder.java:237)
at org.esa.snap.core.dataio.AbstractProductReader.readProductNodes(AbstractProductReader.java:169)
at org.esa.snap.core.dataio.AbstractProductBuilder.readProductNodes(AbstractProductBuilder.java:78)

It is reported in the forum:
https://forum.step.esa.int/t/work-with-data-s3a-sl-2-lst-in-snap/11313

A sample product to reproduce this issue is: S3A_SL_2_LST___20180825T183051_20180825T201150_20180827T014020_6059_035_070_____LN2_O_NT_003

Environment

None

GitHub Work

None

Attachments

1
  • 28 Aug 2018, 01:48 pm

Activity

Show:

Tonio Fincke1 October 2018 at 09:39

I have added hard-coded values that correspond to those from SLSTR L1B. This places the tie-point grids correctly and enables users to create subsets. However, it is just a workaround until we can read the correct values from the metadata file.

Marco Peters3 September 2018 at 08:41

We were told that the values in Level2 shall be the same as in the Level1 product.
The data format might be updated in the future but till then we need to add constant values to the code.

Marco Peters28 August 2018 at 13:49

The origin of this problem is missing information in the LST data. The tie-points cannot be correctly positioned in relation to the scene image.

Done

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Created 28 August 2018 at 09:27
Updated 10 February 2023 at 13:42
Resolved 10 February 2023 at 13:32