parameters: (self,points)
return_statement: return upoints
docstring: (`Internal API`)  Maps points on a spheroid surface into the unit cube.
docstring_summary: (`Internal API`)  Maps points on a spheroid surface into the unit cube.
docstring_tokens: ( Internal API ) Maps points on a spheroid surface into the unit cube .
function: def unit_points_bare(self,points):
          """
          (`Internal API`)  Maps points on a spheroid surface into the unit cube.
          """
          center = self.center
          # invert using pseudo-inverse
          #   this is important for grids embedded in higher dim spaces
          axinv  = np.linalg.pinv(self.axes)
          upoints = np.dot(points-center,axinv)
          # map from unit cartesian to unit spherical
          dim = self.grid_dim
          if dim==1:
              upoints = cartesian_to_polar(upoints,surface=True)
              upoints[:,0] /= 2*np.pi
          elif dim==2:
              upoints = cartesian_to_spherical(upoints,surface=True)
              upoints[:,0] /=   np.pi
              upoints[:,1] /= 2*np.pi
          else:
              self.error('unit_points not supported for dim={}'.format(dim))
          #end if
          return upoints
function_tokens: def unit_points_bare ( self , points ) : center = self . center # invert using pseudo-inverse #   this is important for grids embedded in higher dim spaces axinv = np . linalg . pinv ( self . axes ) upoints = np . dot ( points - center , axinv ) # map from unit cartesian to unit spherical dim = self . grid_dim if dim == 1 : upoints = cartesian_to_polar ( upoints , surface = True ) upoints [ : , 0 ] /= 2 * np . pi elif dim == 2 : upoints = cartesian_to_spherical ( upoints , surface = True ) upoints [ : , 0 ] /= np . pi upoints [ : , 1 ] /= 2 * np . pi else : self . error ( 'unit_points not supported for dim={}' . format ( dim ) ) #end if return upoints