autorino.check package
Submodules
autorino.check.check_cls module
Created on 27/01/2025 09:35:53
@author: psakic
- class autorino.check.check_cls.CheckGnss(**kwargs)[source]
Bases:
HandleGnss- __init__(**kwargs)[source]
Initialize a CheckGnss object.
This constructor initializes a CheckGnss object, which is used for checking and analyzing RINEX files. It inherits from the HandleGnss class.
- Parameters:
**kwargs (keyword arguments) – Additional keyword arguments passed to the parent HandleGnss class. Common parameters include: - out_dir : str, optional - The output directory for the check results. - tmp_dir : str, optional - The temporary directory for intermediate files. - log_dir : str, optional - The directory for log files. - inp_dir : str, optional - The input directory for RINEX files. - inp_file_regex : str, optional - Regular expression pattern for input files. - epoch_range : EpochRange, optional - The range of epochs to be checked. - site : dict, optional - Information about the site. - session : dict, optional - Information about the session. - options : dict, optional - Additional options for the check operation. - metadata : str or list, optional - Metadata for the check operation.
autorino.check.check_fcts module
Created on 27/01/2025 18:53:22
@author: psakic
- autorino.check.check_fcts.color(val)[source]
This function returns a color according to the value of the input.
- Parameters:
val (float) – The value to be colored.
- Returns:
str
- Return type:
color
- autorino.check.check_fcts.colorize_list(list_inp)[source]
This function colorizes a list of values.
- Parameters:
list_inp (list) – The list of values to be colorized.
- Returns:
list
- Return type:
list of colorized values
- autorino.check.check_fcts.get_tabult_raw(chk_tab, short_label=False)[source]
This function returns a tabulated string of the check table.
- Parameters:
chk_tab (pd.DataFrame) – The check table.
short_label (bool, optional)
- Returns:
tabu_chk_col (str) – The tabulated string of the check table with colored values.
tabu_chk_bnw (str) – The tabulated string of the check table with black and white values.
df_chk_sum (pd.DataFrame) – The values of the check table summarized in a dataframe.
autorino.check.trimble_filelist_html module
Created on 12/09/2024 11:11:20
@author: psakic
- autorino.check.trimble_filelist_html.download_html_page(url_inp, output_file_inp)[source]
Download a webpage and save its content to a file.
- Parameters:
url_inp (str) – The URL of the webpage to download.
output_file_inp (str) – The file path where the content will be saved.
- Returns:
The path to the downloaded file if successful, otherwise None.
- Return type:
str or None
- autorino.check.trimble_filelist_html.extract_trimble_filelist(html_files, pattern='.{4}______[0-9]{12}A\\.T02', output_csv_dir=None)[source]
Extract the list of Trimble files from an HTML file.
- Parameters:
html_files (list or str) – The path to the HTML files. If a single file is provided, it should be a string.
pattern (str, optional) – The regex pattern to match the Trimble files. Default is “.{4}______[0-9]{12}A.T02”.
output_csv_dir (str, optional) – The directory where the CSV files will be saved. If None, CSV files will not be saved. Default is None.
- Returns:
A list of Trimble files extracted from the HTML file.
- Return type:
list
- autorino.check.trimble_filelist_html.trimble_filelist_html(site, hostname, output_dir, start_date, end_date, period='1M', structure='download/Internal/%Y%m', force=False)[source]
Generate a list of Trimble files from a remote HTML directory.
Downloads HTML directory listings from a remote Trimble server for a specified time period and extracts file information into a CSV list.
- Parameters:
site (str) – The site identifier (4 characters).
hostname (str) – The hostname of the remote server.
output_dir (str) – The directory where the downloaded HTML files will be saved.
start_date (str) – The start date for the file search.
end_date (str) – The end date for the file search.
period (str, optional) – The period for the file search, usually a month. Default is ‘1M’.
structure (str, optional) – The directory structure on the remote server. Default is ‘download/Internal/%Y%m’.
force (bool, optional) – Force the download even if the output files already exist. Default is False.
- Return type:
None