Hi, is there any method to used snappy.ProductIO.writeProduct compressing using ‘LZW’ instead of uncompressed?
I am using the following script.
product = snappy.ProductIO.readProduct(safe_dir)
p_s2tbx = s2_resampler(product)
w, h = product.getSceneRasterWidth(),product.getSceneRasterHeight()
band = 'B4'
vaa='view_azimuth_'+band
product_vaa = snappy.Product('view_azimuth_angle', p_s2tbx.getProductType(), w, h)
snappy.ProductUtils.copyGeoCoding(product, product_vaa)
snappy.ProductUtils.copyBand(vaa, p_s2tbx, vaa, product_vaa, True)
snappy.ProductIO.writeProduct(product_vaa, '{}/{}view_azimuth_angle'.format(out_dir, scenename), 'GeoTIFF')