for i in 10m 20m 60m TCI; do gdal_translate SENTINEL2_L2A:S2B_MSIL2A.SAFE/MTD_MSIL2A.xml:$i:EPSG_32630 tmp.tif -co TILED=YES -co COMPRESS=DEFLATE; gdal_translate tmp.tif S2B_MSIL2A_$i_cog.tif -co TILED=YES -co COMPRESS=DEFLATE -co COPY_SRC_OVERVIEWS=YES; done


I should have done this months ago TBH :-|

· · Mastodon Twitter Crossposter · 0 · 0 · 0
Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!