Rayleigh correction error: "The product already contains a band with the Name..."

Hi, I’m trying to do Rayleigh correction on a Sentinel-3 image and am getting this error:

An internal error occurred during the target product initialisation.
Type: IllegalArgumentException
Message: The Product ‘S3B_OL_1_EFR____20230420T102707_20230420T103007_20230420T231924_0179_078_279_1980_PS2_O_NT_003.SEN3_rayleigh’ already contains a band with the name ‘rBRR_01’.

I can see that others have had similar issues but can’t find any solution that works with my situation. I’ve tried changing the output file name or using different S3 files but am still getting the same error message. Can anyone help me with this?

It would be good if you provide more details about your processing configuration.
However, from the error message it seems that you try to correct an already rayleigh corrected product. The suffix indicates this.

Hi Marco! Thanks for your answer.
I’m using SNAP 9.0.0 in Windows 10, and just using the Rayleigh correction by itself (so no graph or batch processing).


is the name of the target product, not the product I’m trying to correct. The product I’m trying to correct is “S3B_OL_1_EFR____20230420T102707_20230420T103007_20230420T231924_0179_078_279_1980_PS2_O_NT_003.SEN3” and it is definitely not rayleigh corrected.

To me the error message sounds like there is already a product by that name initialized and SNAP is trying and failing to overwrite it, but I can’t find any file with that name, or any rayleigh-corrected file, either in the directory or the Temp folder, so it must be another issue. Let me know if you think of anything.

I’ve now tried downloading the L1 product again and correcting it, downloading another unrelated L1 product and correcting it… I keep getting the same error!

I’ve had a look at the code. It seems this happens when you include the uncertainty bands. I was also able to reproduce the problem.
This should be considered by the devs in the future. I think this is something for the issue tracker. @diana_harosa

If you need the uncertainties, you could process the product in two steps and then merge the result afterwards.

Thank you! Leaving out the uncertainties works :slight_smile:

1 Like

JIRA ticket SNAP-3560 created.