Is there someone who has developed a reader for Sentinel-3 L2 products. I want to read the L2 Land Surface Temperature data
I have tried to follow what seems to me to be the key concepts in the """Reader for Sentinel-3 SLSTR SST data."""
from satpy import CHUNK_SIZE
import xarray as xr
## filename to unzipped file - direct approach for testing
fnem = "D:\\LST_SENTINEL_3\\_temp\\S3A_SL_2_LST____20210603T091323_20210603T091623_20210604T155731_0180_072_264_2160_LN2_O_NT_004.SEN3\\LST_in.nc"
#### read with xarry as done in satpy
utt = xr.open_dataset(fnem, decode_cf=True, mask_and_scale=True, chunks={'ni': CHUNK_SIZE, 'nj': CHUNK_SIZE} )
### check dimensions
In[144]: utt.dims
Out[144]:
Frozen(SortedKeysDict({'rows': 1200, 'columns': 1500, 'orphan_pixels': 187}))
### check coords - problem!
Out[145]: utt.coords
Out[145]: Coordinates:
*empty*
#check data variables - funny that I read 1 LST .nc and other files come along
Out[146]: utt.data_vars
Out[146]: Data variables:
LST (rows, columns) float32 dask.array<chunksize=(1200, 1500), meta=np.ndarray>
LST_orphan (rows, orphan_pixels) float32 dask.array<chunksize=(1200, 187), meta=np.ndarray>
LST_uncertainty (rows, columns) float32 dask.array<chunksize=(1200, 1500), meta=np.ndarray>
LST_uncertainty_orphan (rows, orphan_pixels) float32 dask.array<chunksize=(1200, 187), meta=np.ndarray>
exception (rows, columns) int16 dask.array<chunksize=(1200, 1500), meta=np.ndarray>
exception_orphan (rows, orphan_pixels) int16 dask.array<chunksize=(1200, 187), meta=np.ndarray>
## test plot
Out[147] utt['LST'].plot()
# The plot is upside down. This is over Europe, so Italy should down but its on top. I also don't have coordinates