astro_toolbox.scripts package

Submodules

astro_toolbox.scripts.planning module

This module contains scripts functions.

astro_toolbox.scripts.planning.get_multiple_informations(object_list, site, datetime, bounds)

Getting multiple objects equatorial information.

astro_toolbox.scripts.planning.read_observatory_program(input_file: Path)

Read an observatory program from a list.

Parameters

input_filepathlib.Path

Input file path.

Returns

object_listlist

Objects list.

astro_toolbox.scripts.plots module

This module contains scripts functions

astro_toolbox.scripts.plots.airmas_map(object_dict, site: Location, date: tuple | str, bounds: tuple = (18, 31))

Airmass calculations.

Parameters

object_dictdict

Dictionary containing object name ans theirs associated equatorial class.

siteLocation

Location object.

datetuple | str

Date to plot airmass map.

boundstuple

List of length 2 containing lower and upper time bounds.

astro_toolbox.scripts.plots.moon_times(lines, site, date, bounds)

Moon observational impact.

Parameters

linesint

number of lines plot.

siteLocation

Location object.

datetuple | str

Date to plot moon impact.

boundslist

List of length 2 containing lower and upper time bounds.

astro_toolbox.scripts.plots.offset_image(name, axis)

Add icons from query/weather_icons on plot.

Parameters

namestr

icon name.

axisObject

Pyplot axis object.

Returns

Object

Pyplot image object.

astro_toolbox.scripts.plots.plot_weather(date, location, bounds, axis)

Plot weather on airmass map

Parameters

datestr | tuple

Plotting date.

locationLocation

Location object.

boundstuple

Tuple containing observation bounds.

axisObject

Pyplot axis object.

astro_toolbox.scripts.plots.polarstar_plt_northern(location: Location, datetime: tuple | str = None)

Polaris Polar Finder position for northern hemisphere.

Parameters

siteLocation

Location object.

datetimetuple | str

Date and time to plot Polaris position.

astro_toolbox.scripts.plots.polarstar_plt_southern(location: Location, datetime: tuple = None)

Polaris Polar Finder position for southern hemisphere

Parameters

siteLocation

Location object.

datetimetuple | str

Date and time to plot Polaris australis position.

astro_toolbox.scripts.plots.sun_impact(lines, site, date, bounds)

Function which plots sun impact.

Parameters

linesint

number of lines plot.

siteLocation

Location object.

datetuple | str

Date to plot sun impact.

boundslist

List of length 2 containing lower and upper time bounds.

Returns

list

List of matplotlib.pyplot Rectangles objects.

astro_toolbox.scripts.plots.winddirectiontoimage(wind_direction, axis)

Funcion to convert wind direction to icon.

Parameters

wind_directionfloat

Wind direction

axisObject

Axis object.

Returns

Object

offset_image Object.

astro_toolbox.scripts.plots.wmotoimage(code, axis)

Function to convert WMO code to icon.

Parameters

codestr

WMO code as str.

axisObject

Axis object.

Returns

Object

offset_image Object.