bilelomrani1 / s5p-analysis

Example of preliminary analysis and data exploration of Sentinel-5P satellite data
MIT License
6 stars 4 forks source link

s5p-compress "some chunks keys are not dimensions on this object" #3

Open shekhar51 opened 1 year ago

shekhar51 commented 1 year ago

Hello, apologies for raising a new issue. I have come across an error when attempting the s5p-compress script. I have tried to use every product or band name from the official documentation (https://sentinels.copernicus.eu/web/sentinel/technical-guides/sentinel-5p/level-2/products/main-variables) but the error exists.

Any ideas would be greatly appreciated. Sorry for raising the issue in this repository.

python s5p-tools-master\s5p-compress.py L2_data\S5P_OFFL_L2__O3_____20190503T070549_20190503T084720_08043_01_010107_20190509T084742.nc atmosphere_mole_content_of_ozone

C:\Users\shekhar\anaconda3\envs\TropomiDataSet\lib\site-packages\rasterio__init.py:228: NotGeoreferencedWarning: Dataset has no geotransform, gcps, or rpcs. The identity matrix be returned. s = DatasetReader(path, driver=driver, sharing=sharing, **kwargs) C:\Users\shekhar\anaconda3\envs\TropomiDataSet\lib\site-packages\rioxarray_io.py:841: NotGeoreferencedWarning: Dataset has no geotransform, gcps, or rpcs. The identity matrix be returned. warnings.warn(str(rio_warning.message), type(rio_warning.message)) C:\Users\shekhar\anaconda3\envs\TropomiDataSet\lib\site-packages\rasterio\init__.py:228: NotGeoreferencedWarning: Dataset has no geotransform, gcps, or rpcs. The identity matrix be returned. s = DatasetReader(path, driver=driver, sharing=sharing, kwargs) C:\Users\shekhar\anaconda3\envs\TropomiDataSet\lib\site-packages\rioxarray_io.py:841: NotGeoreferencedWarning: Dataset has no geotransform, gcps, or rpcs. The identity matrix be returned. warnings.warn(str(rio_warning.message), type(rio_warning.message)) Traceback (most recent call last): File "s5p-tools-master\s5p-compress.py", line 184, in export_dir=EXPORT_DIR, File "s5p-tools-master\s5p-compress.py", line 38, in main DS = rioxarray.open_rasterio(netcdf_file, chunks={"time": chunk_size}) File "C:\Users\shekhar\anaconda3\envs\TropomiDataSet\lib\site-packages\rioxarray_io.py", line 857, in open_rasterio open_kwargs, File "C:\Users\shekhar\anaconda3\envs\TropomiDataSet\lib\site-packages\rioxarray_io.py", line 631, in _load_subdatasets **open_kwargs, File "C:\Users\shekhar\anaconda3\envs\TropomiDataSet\lib\site-packages\rioxarray_io.py", line 942, in open_rasterio result = _prepare_dask(result, riods, filename, chunks) File "C:\Users\shekhar\anaconda3\envs\TropomiDataSet\lib\site-packages\rioxarray_io.py", line 682, in _prepare_dask return result.chunk(chunks, name_prefix=name_prefix, token=token) File "C:\Users\shekhar\anaconda3\envs\TropomiDataSet\lib\site-packages\xarray\core\dataarray.py", line 1136, in chunk chunks, name_prefix=name_prefix, token=token, lock=lock File "C:\Users\shekhar\anaconda3\envs\TropomiDataSet\lib\site-packages\xarray\core\dataset.py", line 2188, in chunk f"some chunks keys are not dimensions on this object: {bad_dims}" ValueError: some chunks keys are not dimensions on this object: {'time'}