@_hidden<EOL><INDENT>def add_virtual_columns_cartesian_to_spherical(self, x="<STR_LIT:x>", y="<STR_LIT:y>", z="<STR_LIT:z>", alpha="<STR_LIT:l>", delta="<STR_LIT:b>", distance="<STR_LIT>", radians=False, center=None, center_name="<STR_LIT>"):<DEDENT>
transform = "<STR_LIT>" if radians else "<STR_LIT>"<EOL>if center is not None:<EOL><INDENT>self.add_variable(center_name, center)<EOL><DEDENT>if center is not None and center[<NUM_LIT:0>] != <NUM_LIT:0>:<EOL><INDENT>x = "<STR_LIT>".format(**locals())<EOL><DEDENT>if center is not None and center[<NUM_LIT:1>] != <NUM_LIT:0>:<EOL><INDENT>y = "<STR_LIT>".format(**locals())<EOL><DEDENT>if center is not None and center[<NUM_LIT:2>] != <NUM_LIT:0>:<EOL><INDENT>z = "<STR_LIT>".format(**locals())<EOL><DEDENT>self.add_virtual_column(distance, "<STR_LIT>".format(**locals()))<EOL>self.add_virtual_column(alpha, "<STR_LIT>".format(**locals()))<EOL>self.add_virtual_column(delta, "<STR_LIT>".format(**locals()))<EOL>
Convert cartesian to spherical coordinates.



        :param x:
        :param y:
        :param z:
        :param alpha:
        :param delta: name for polar angle, ranges from -90 to 90 (or -pi to pi when radians is True).
        :param distance:
        :param radians:
        :param center:
        :param center_name:
        :return: