satpy icon indicating copy to clipboard operation
satpy copied to clipboard

Tropomi l2 reader ValueError: No supported files found

Open Kexin828 opened this issue 2 years ago • 4 comments

The Tropomi l2 reader can read ’S5P_OFFL_L2__NO2____‘ files but cannot read 'S5P_RPRO_L2__NO2____' files.

image

satpy==0.41.1

Kexin828 avatar Dec 03 '23 02:12 Kexin828

I'm not familiar with tropomi files. Could you tell me the difference between these two types?

djhoese avatar Dec 03 '23 04:12 djhoese

Thanks for your reply.

Tropomi reprocessed data(RPRO) involves applying the latest processing techniques to improve the quality of existing data, while offline data(OFFL) is processed after a certain time lag from the observation time, allowing for careful calibration and validation.

They have basically similar data composition, but I can't read the RPRO data with the same code, and I don't know how to fix this. image image

Kexin828 avatar Dec 03 '23 08:12 Kexin828

Your files have reduced in their names, which means the pattern defined here doesn't match. You could try creating your own local config that has the reduced in it:

  • create a directory for config files and set environment variable SATPY_CONFIG_PATH=/path/to/your/configs
  • under that directory, create readers subdirectory
  • copy the satpy/etc/readers/tropomi_l2.yaml to the subdir
  • add a new pattern to the pattern list with the reduced added to the end. Now, if the internal file structures match, you should be able to read the files. If this works, please create a pull request with the change.

pnuu avatar Dec 03 '23 09:12 pnuu

Thanks for your answer. It works and I have created a pull request with this change.

Kexin828 avatar Dec 03 '23 10:12 Kexin828