Is there a way to output only one band?

Dear all,

I noticed that the tiff generated by 「ProductIO.writeProduct」 loses band information.
I only want to use sigma0_VV, is there a way to output only one band?
Deleting sigma0_VH would be fine too.

All the best,

Zuiko

Yes, you can do

p.removeBand(p.getBand("sigma0_VV")

Alternatively, you can use the subset operator.

If your product is not reprojected but has lat/lon bands these are stored too. So, even if you have only one band it can happen that 3 are included in the geotiff.

EOMasters_icon_60 Marco from EOMasters - Mastering Earth Observation

Thank you for always helping.
I was able to achieve my goal.

1 Like