astro_toolbox.angle package

Submodules

astro_toolbox.angle.degrees module

This module contains AngleDeg class.

class astro_toolbox.angle.degrees.AngleDeg(anglevalue: float)

Bases: object

AngleDeg define degrees angle with its conversions.

Attributes

anglevalue: float

The angle value in degrees.

degtodms()

Degrees to DMS converting method. This method returns angle in DMS from angle in degrees.

Returns

tuple

The angle values in DMS.

degtohms()

Degrees to HMS converting method. This method returns angle in HMS from angle in degrees.

Returns

tuple

The angle values in HMS.

degtorad()

Degrees to radians converting method. This method returns angle in radians from angle in degrees.

Returns

float

The angle value in radians.

astro_toolbox.angle.dms module

This module contains AngleDMS class.

class astro_toolbox.angle.dms.AngleDMS(anglevalue: tuple | str)

Bases: object

AngleDMS define a dms angle with its conversions.

Attributes

anglevaluetuple

The angle values as floats in tuple.

dmstodeg()

DMS to degrees converting method. This method return angle in degrees from angle in DMS.

Returns

float

The angle value in degrees.

dmstorad()

DMS to Radians converting method. This method return angle in radians from angle in DMS.

Returns

float

The angle value in radians.

astro_toolbox.angle.hms module

This module contains AngleHMS class.

class astro_toolbox.angle.hms.AngleHMS(anglevalue: tuple | str)

Bases: object

AngleHMS define a HMS angle with its conversions.

Attributes

anglevaluetuple

The angle value as floats in tuple.

hmstodeg()

HMS to Degrees converting method. This method return angle in degrees from angle in HMS.

Returns

float

The angle value in degrees

hmstorad()

HMS to Radians converting method. This method return angle in radians from angle in HMS.

Returns

float

The angle value in radians.

astro_toolbox.angle.radians module

This module contains AngleRad class.

class astro_toolbox.angle.radians.AngleRad(anglevalue: float)

Bases: object

AngleRad define radians angle with its conversions.

Attributes

anglevaluefloat

The angle value in radians.

radtodeg()

Radians to Degrees converting method. This method returns angle in radians from angle in degrees.

Returns

float

The angle value in degrees.

radtodms()

Radians to DMS converting method. This method returns angle in DMS from angle in radians.

Returns

tuple

The angle values in DMS.

radtohms()

Radians to HMS converting method. This method returns angle in HMS from angle in radians.

Returns

tuple

The angle values in HMS.