Skip to content
This repository has been archived by the owner on Nov 13, 2022. It is now read-only.

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

Open
shekhar51 opened this issue Nov 2, 2022 · 0 comments
Open

Comments

@shekhar51
Copy link

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'}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant