midgard.parsers.galileo_constellation_html

A parser for reading IVS source names translation table

GalileoConstellationHTMLParser

GalileoConstellationHTMLParser(file_path:Union[str, pathlib.Path], encoding:Union[str, NoneType]=None, logger:Union[Callable[[str], NoneType], NoneType]=<built-in function print>, url:Union[str, NoneType]=None) -> None

A parser for reading Galileo constellation info from a web page

See https://www.gsc-europa.eu/system-status/Constellation-Information for an example

GalileoConstellationHTMLParser.URL (str)

URL = 'https://www.gsc-europa.eu/system-status/Constellation-Information'

GalileoConstellationHTMLParser.download_html()

download_html(self, url:Union[str, NoneType]=None) -> None

Download html file from url

TODO: Move this to files/url.py

Args:

GalileoConstellationHTMLParser.read_data()

read_data(self) -> None

Read tables from the HTML file

The satellite table is placed in self.data, while the NAGU events are placed in self.meta["events"].

GalileoConstellationHTMLParser.satellite_id()

satellite_id(self, sat_id:str) -> Dict[str, Any]

Get satellite info from satellite vehicle ID

Args:

Returns:

Dictionary with satellite info.

GalileoConstellationHTMLParser.satellite_name()

satellite_name(self, sat_name:str) -> Dict[str, Any]

Get satellite info from name

Args:

Returns:

Dictionary with satellite info.