Traceback (most recent call last):
File "/data/gholl/checkouts/protocode/mwe/pyorbital-mti1.py", line 2, in <module>
pyorbital.tlefile.read("Meteosat-12")
File "/data/gholl/checkouts/pyorbital/pyorbital/tlefile.py", line 162, in read
return Tle(platform, tle_file=tle_file, line1=line1, line2=line2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/gholl/checkouts/pyorbital/pyorbital/tlefile.py", line 208, in __init__
self._read_tle()
File "/data/gholl/checkouts/pyorbital/pyorbital/tlefile.py", line 249, in _read_tle
raise KeyError("Found no TLE entry for '%s'" % self._platform)
KeyError: "Found no TLE entry for 'METEOSAT-12'"
Versions of Python, package at hand and relevant dependencies
Code Sample, a minimal, complete, and verifiable piece of code
Problem description
This fails with a KeyError.
Expected Output
I expect it reads the TLE. It does for
Meteosat-11
.It's being called by trollflow2
check_sunlight_coverage
via trollsched using the labelMTI1
. Not sure if that's supposed to work, butMeteosat-12
probably should as there is a corresponding entry at both https://celestrak.org/NORAD/elements/gp.php?GROUP=active&FORMAT=tle and https://celestrak.org/NORAD/elements/gp.php?GROUP=weather&FORMAT=tle .Actual Result, Traceback if applicable
Versions of Python, package at hand and relevant dependencies
pyorbital 1.8.1.