pytroll / pytroll-pps-runner

Pytroll runner for PPS
GNU General Public License v3.0
1 stars 8 forks source link

PPS runner requires data_processing_level in uppercase but level1c-runner publish in lowercase #39

Open TAlonglong opened 2 years ago

TAlonglong commented 2 years ago

PPS runner requires data_processing_level in uppercast, but level1c-runner publish in lowercase.

Message from level 1c runner:

[INFO: 2021-11-26 15:54:05 : nwcsafpps_runner.utils] Got message: pytroll://segment/SDR/1C file ubuntu@pps-v2021-a 2021-11-26T15:54:05.660349 v1.01 application/json {"orig_platform_name": "j01", "start_ti
me": "2021-11-26T15:39:29", "start_decimal": 4, "end_time": "1900-01-01T15:40:53", "end_decimal": 9, "orbit_number": 0, "proctime": "20211126154829000765", "stream": "eumetcast", "variant": "EARS", "forma
t": "PPS-L1C", "type": "NETCDF", "data_processing_level": "1c", "platform_name": "NOAA-20", "tle_platform_name": "NOAA 20", "antenna": "ears", "origin": "157.249.16.188:9228", "sensor": "viirs", "orig_orb
it_number": 20846, "uri": "ssh://pps-v2021-a/data/pytroll/nwcsaf/import/IMAGER_data/S_NWC_viirs_noaa20_00000_20211126T1539294Z_20211126T1540539Z.nc", "uid": "S_NWC_viirs_noaa20_00000_20211126T1539294Z_202
11126T1540539Z.nc"}

https://github.com/pytroll/pytroll-pps-runner/blob/main/nwcsafpps_runner/utils.py#L315-L316

TAlonglong commented 2 years ago

This is as such no bug.

But the user of the output is the pps_runner whcih requires this to be uppercase.

Either we relax the requirement in pps_runner or we have to change this.

I need some opinion where I fix this.

Please let me know @adybbroe or one of your colleagues.