getRasterWidth vs. getSceneRasterWidth

Hello all

I have one confusion regarding between the snappy commands. One can record the width of their product using the following two commands:

Width1 = product.getSceneRasterWidth()
Width2 = product.getBand(‘bandName’).getRasterWidth()

I assumed that both will give the same value which is clearly not the case for me. Can anyone please tell me what is the difference between two?

HI gupta353,

They give different results because bands can have different sizes, for example when having different resolution.
This is the case for Sentinel-2 MSI, Landsat and Sentinel-3 SLSTR, and probably some more.
The product gives only one common scene size. It’s the one with the greatest extent.