def __init__(self, ra=None, dec=None, l=None, b=None, equinox='J2000'):
        """

        :param ra: Right Ascension in degrees
        :param dec: Declination in degrees
        :param l: Galactic latitude in degrees
        :param b: Galactic longitude in degrees
        :param equinox: string
        :return:
        """

        self._equinox = equinox

        # Create the node

        Node.__init__(self, 'position')

        # Check that we have the right pairs of coordinates

        if ra is not None and dec is not None:

            # This goes against duck typing, but it is needed to provide a means of initiating this class
            # with either Parameter instances or just floats

            # Try to transform it to float, if it works than we transform it to a parameter

            ra = self._get_parameter_from_input(ra, 0, 360, 'ra','Right Ascension')

            dec = self._get_parameter_from_input(dec, -90, 90, 'dec','Declination')

            self._coord_type = 'equatorial'

            self._add_child(ra)
            self._add_child(dec)

        elif l is not None and b is not None:

            # This goes against duck typing, but it is needed to provide a means of initiating this class
            # with either Parameter instances or just floats

            # Try to transform it to float, if it works than we transform it to a parameter

            l = self._get_parameter_from_input(l, 0, 360, 'l','Galactic longitude')

            b = self._get_parameter_from_input(b, -90, 90, 'b','Galactic latitude')

            self._coord_type = 'galactic'
            self._add_child(l)
            self._add_child(b)

        else:

            raise WrongCoordinatePair("You have to specify either (ra, dec) or (l, b).")
def __init__ ( self , ra = None , dec = None , l = None , b = None , equinox = 'J2000' ) : self . _equinox = equinox Node . __init__ ( self , 'position' ) if ra is not None and dec is not None : ra = self . _get_parameter_from_input ( ra , 0 , 360 , 'ra' , 'Right Ascension' ) dec = self . _get_parameter_from_input ( dec , - 90 , 90 , 'dec' , 'Declination' ) self . _coord_type = 'equatorial' self . _add_child ( ra ) self . _add_child ( dec ) elif l is not None and b is not None : l = self . _get_parameter_from_input ( l , 0 , 360 , 'l' , 'Galactic longitude' ) b = self . _get_parameter_from_input ( b , - 90 , 90 , 'b' , 'Galactic latitude' ) self . _coord_type = 'galactic' self . _add_child ( l ) self . _add_child ( b ) else : raise WrongCoordinatePair ( "You have to specify either (ra, dec) or (l, b)." )
:param ra: Right Ascension in degrees
        :param dec: Declination in degrees
        :param l: Galactic latitude in degrees
        :param b: Galactic longitude in degrees
        :param equinox: string
        :return: