Hello, What I am trying to do is to generate a VRT file suitable for composing an RGB satellite image along with a cloud mask for that composition.
I would like to include the following information in one VRT file : 1. Information about the path to the RGB image file 2. Information about the path to the cloud mask file 3. Marking/reclassifying pixels with a specified cloud value as "no data" (for the mask file, so that GDAL can properly mask them in the RGB composition) 4. Indicating the cloud mask file as the alpha channel. Is this possible? Currently, I'm attempting the following: (python3.10) ubuntu@janek-test:~$ gdalbuildvrt /home/ubuntu/Desktop/alpha.vrt /eodata/Sentinel-2/MSI/L2A/2022/06/05/S2B_MSIL2A_20220605T083559_N0400_R064_T37TCN_20220605T103839.SAFE/GRANULE/L2A_T37TCN_A027403_20220605T083716/IMG_DATA/R60m/T37TCN_20220605T083559_TCI_60m.jp2 -addalpha /eodata/Sentinel-2/MSI/L2A/2022/06/05/S2B_MSIL2A_20220605T083559_N0400_R064_T37TCN_20220605T103839.SAFE/GRANULE/L2A_T37TCN_A027403_20220605T083716/IMG_DATA/R60m/T37TCN_20220605T083559_SCL_60m.jp2 0...10...20...30...40...50...60...70...80...90...100 - done. Warning 1: gdalbuildvrt does not support heterogeneous band numbers: expected 3, got 1. Skipping /eodata/Sentinel-2/MSI/L2A/2022/06/05/S2B_MSIL2A_20220605T083559_N0400_R064_T37TCN_20220605T103839.SAFE/GRANULE/L2A_T37TCN_A027403_20220605T083716/IMG_DATA/R60m/T37TCN_20220605T083559_SCL_60m.jp2 with visible poor results :( I would be very grateful for any advice or recommendation. Best, Marcin Marcin Niemyjski Junior Data Scientist CloudFerro sp z o.o. office: Fabryczna 5 m: +48 695 831 753 00-446 Warszawa, Poland e: mniemyj...@cloudferro.com [https://i.imgur.com/jlLouj5.png]<https://cloudferro.com/> [cid:48964d15-1c33-49b0-9330-d5379abfbdf5]<https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae9486487...@cloudferro.com?anonymous&ep=signature> Book time to meet with me<https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae9486487...@cloudferro.com?anonymous&ep=signature>
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev