map_example module¶
This module is responsible for generating interactive sky maps using Plotly. It visualizes the galactic coordinates (GLAT, GLON) of sources and colors them according to their class.
- map_example.fig_generator(catalog_path=PosixPath('/home/runner/work/Progetto_Computings/Progetto_Computings/files/gll_psc.csv'), input_dataframe=None, html_output=PosixPath('/home/runner/work/Progetto_Computings/Progetto_Computings/map/index.html'))[source]¶
Generates an interactive scatter_geo map of astronomical sources.
The map uses Mollweide projection and displays custom hover information including source name, position, and classification. The result is saved as an HTML file.
- Parameters:
catalog_path (str or pathlib.Path, optional) – Path to the CSV catalog. Ignored if input_dataframe is provided. Defaults to custom_paths.csv_path.
input_dataframe (pandas.DataFrame, optional) – Pre-loaded Pandas DataFrame containing source data. Defaults to None.
html_output (str or pathlib.Path, optional) – Output path for the HTML map file. Defaults to custom_paths.map_path.
- Returns:
The generated Plotly figure object.
- Return type:
plotly.graph_objs.Figure
- map_example.fig_generator_dnn(catalog_path=PosixPath('/home/runner/work/Progetto_Computings/Progetto_Computings/files/gll_psc.csv'), input_dataframe=None, html_output=PosixPath('/home/runner/work/Progetto_Computings/Progetto_Computings/map/index2.html'))[source]¶
Generates an interactive scatter_geo map of astronomical sources.
The map uses Mollweide projection and displays custom hover information including source name, position, and classification. The result is saved as an HTML file.
- Parameters:
catalog_path (str or pathlib.Path, optional) – Path to the CSV catalog. Ignored if input_dataframe is provided. Defaults to custom_paths.csv_path.
input_dataframe (pandas.DataFrame, optional) – Pre-loaded Pandas DataFrame containing source data. Defaults to None.
html_output (str or pathlib.Path, optional) – Output path for the HTML map file. Defaults to custom_paths.map_path.
- Returns:
The generated Plotly figure object.
- Return type:
plotly.graph_objs.Figure