Date
1 - 5 of 5
Open Santinel 2 archives with Rasterio
lucavlad50@...
That's it, thank you very much!
|
|
Luke
GDALs Sentinel2 driver exposes the data as subdatasets, with (sort of) one for each resolution - https://gdal.org/drivers/raster/sentinel2.html#level-2a
To access the subdataset that contains the 10m bands, you could use something like the following: import rasterio |
|
lucavlad50@...
Hello,
Thanks for the reply. I saw that but there is no example of a zip file being opened. I saw this: on: https://gdal.org/drivers/raster/sentinel2.html and was wondering if it is possible to read directly from the zip file without unzipping it. Something like: with rio.open("satelite_datasets/S2A_MSIL2A_20201020T092031_N0214_R093_T34TGS_20201020T120739.zip") as f:
print(f.read(4))
Sorry if the question seems stupid, I am new to this. Thank you! |
|
Sean Gillies
Hi, Please see https://rasterio.readthedocs.io/en/latest/quickstart.html#reading-raster-data for a quick tour of data access features. On Fri, Feb 12, 2021 at 8:01 AM <lucavlad50@...> wrote: Hello, --
Sean Gillies |
|
lucavlad50@...
Hello,
I saw that rasterio support reading Santinel 2 archives directly, but I can not find any example. How should I access the bands inside the archive after I read it. For example I have: with rio.open("satelite_datasets/S2A_MSIL2A_20201020T092031_N0214_R093_T34TGS_20201020T120739.zip") as f:
print(...)
Thank you in advance! |
|