def _lbd(self,*args,**kwargs):
        """Calculate l,b, and d"""
        obs, ro, vo= self._parse_radec_kwargs(kwargs,dontpop=True)
        X,Y,Z= self._helioXYZ(*args,**kwargs)
        bad_indx= (X == 0.)*(Y == 0.)*(Z == 0.)
        if True in bad_indx:
            X[bad_indx]+= ro/10000.
        return coords.XYZ_to_lbd(X,Y,Z,degree=True)
def _lbd ( self , * args , ** kwargs ) : obs , ro , vo = self . _parse_radec_kwargs ( kwargs , dontpop = True ) X , Y , Z = self . _helioXYZ ( * args , ** kwargs ) bad_indx = ( X == 0. ) * ( Y == 0. ) * ( Z == 0. ) if True in bad_indx : X [ bad_indx ] += ro / 10000. return coords . XYZ_to_lbd ( X , Y , Z , degree = True )
Calculate l,b, and d