β˜•Reading Sentinel-3 data

Sentinel-3 data from Copernicus Open Access Hub could be easily read in SNAP.

DATA source

Sentinel-3 L1 EFR (OL_1_EFR) downloaded from Copernicus Open Access Hub.

SNAP

To open data: File > Import > Optical Sensors > Sentinel-3 >Sentinel-3. Select *.xml file

To visualize data: Window > New RGB window > Select one of the profiles

To export data: File > Export > GeoTIFF / BigTIFF. Click Subset... button, change the spatial subset and select at least 3 bands (e.g. 8-6-4 for RGB). Export file.

SNAP window for data expoort

QGIS

Open the output file in QGIS. The georeferencing is wrong. Original *.nc files are not georeferenced either.

SNAP output in QGIS

Python

The full notebook download is below. To run it, set up conda environment, savethe notebook to your working directory, and run jupyter notebook from this directory.

Read image data

GDAL can read NetCDF files as arrays. We read all the bands and store them to dict with band names.

Every file is read as 2D array with no geotransformation.

Sentinel-3 georeference info is stored in the geo_coordinates.nc file, which contains 2D latitude and longitude grids.

You can see that the coordinates gradient is not parallel to the image sides. This means, that it is not possible to produce a GDAL geotransform line. For this case, we can create a GDAL GCP object to warp the image with it.

GCP object consists of list of geocoordinates with corresponding pixel coordinates

Custom function for saving array to GeoTIFF

Reproject

Check the output in QGIS

The output is georeferenced correctly

Last updated