-
Notifications
You must be signed in to change notification settings - Fork 31
s5p-compress "some chunks keys are not dimensions on this object" #4
Comments
Dear Beth Wilkins, I think the problem comes from the band name. you may also use more options (refer to the guideline) such as: I hope it helps, Note: by the way, can we organize a meeting for a short discussion! cheers |
Thank you so much for your reply @HichemOmr. I also thought the problem was the band name as I was completely unsure what else it could be, so I ran the following script to display the names of the variables in the .nc files: import netCDF4 as nc4 Which gave the following return: python variables.py I have tried the band name you suggested and added some of the optional functions but unfortunately got the same issue of: I have checked that my conda environment meets the requirements.txt file (as I thought maybe the version of xarray was wrong or something similar), and have tried multiple band names and product types and always get this same weird issue. I have also tried it on a colleague's machine and they have had the same issue. Apologies if this is not an issue directly related the the s5p-tools package, I was just wondering if maybe you knew a way around it. Thank you, Beth. |
Launched 4 processes Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): (project1) C:\Users\pawar\s5p-tools-master>Python s5p-request.py L2__O3____ (project1) C:\Users\pawar\s5p-tools-master>Python s5p-request.py L2__O3____ (project1) C:\Users\pawar\s5p-tools-master>python s5p-request.py L2__O3____ Will You please guide me on the above errors |
Hello, apologies for raising a new issue, however I have come across a new error when attempting the s5p-compress script and wondered if you had any ideas of how to over come it. I have tried everything I can think of to get around it, and I seem to get the same error no matter what product or band name I use.
Any ideas would be greatly appreciated. Thank you again for all the help previously.
/home/ab/bw43776/anaconda3/envs/Sentinel/lib/python3.7/site-packages/rasterio/init.py:216: NotGeoreferencedWarning: Dataset has no geotransform set. The identity matrix may be returned.
s = DatasetReader(path, driver=driver, sharing=sharing, **kwargs)
/home/ab/bw43776/anaconda3/envs/Sentinel/lib/python3.7/site-packages/rioxarray/_io.py:761: NotGeoreferencedWarning: Dataset has no geotransform set. The identity matrix may be returned.
warnings.warn(str(rio_warning.message), type(rio_warning.message))
Traceback (most recent call last):
File "s5p-compress.py", line 184, in
export_dir=EXPORT_DIR,
File "s5p-compress.py", line 38, in main
DS = rioxarray.open_rasterio(netcdf_file, chunks={"time": chunk_size})
File "/home/ab/bw43776/anaconda3/envs/Sentinel/lib/python3.7/site-packages/rioxarray/_io.py", line 774, in open_rasterio
mask_and_scale=mask_and_scale,
File "/home/ab/bw43776/anaconda3/envs/Sentinel/lib/python3.7/site-packages/rioxarray/_io.py", line 552, in load_subdatasets
default_name=subdataset.split(":")[-1].lstrip("/").replace("/", ""),
File "/home/ab/bw43776/anaconda3/envs/Sentinel/lib/python3.7/site-packages/rioxarray/_io.py", line 865, in open_rasterio
result = _prepare_dask(result, riods, filename, chunks)
File "/home/ab/bw43776/anaconda3/envs/Sentinel/lib/python3.7/site-packages/rioxarray/_io.py", line 603, in _prepare_dask
return result.chunk(chunks, name_prefix=name_prefix, token=token)
File "/home/ab/bw43776/anaconda3/envs/Sentinel/lib/python3.7/site-packages/xarray/core/dataarray.py", line 1058, in chunk
chunks, name_prefix=name_prefix, token=token, lock=lock
File "/home/ab/bw43776/anaconda3/envs/Sentinel/lib/python3.7/site-packages/xarray/core/dataset.py", line 1916, in chunk
"some chunks keys are not dimensions on this " "object: %s" % bad_dims
ValueError: some chunks keys are not dimensions on this object: {'time'}
The text was updated successfully, but these errors were encountered: