class_docstr: Class combining coordinate map and array shape
  
  When the function_domain of a CoordinateMap can be thought of as
  'array' coordinates, i.e. an 'input_shape' makes sense. We can
  than evaluate the CoordinateMap at np.indices(input_shape)
docstr: Create an evaluator assuming that coordmap.function_domain
  are 'array' coordinates.
docstr_tok: ["Create","an","evaluator","assuming","that","coordmap.function_domain","are","'array","'","coordinates","."]
code: def from_shape(coordmap, shape):
      """
      Create an evaluator assuming that coordmap.function_domain
      are 'array' coordinates.
  
      """
      slices = tuple([slice(0, s, 1) for s in shape])
      return Grid(coordmap)[slices]
  
file_path: nipy/nipy/core/reference/array_coords.py
imports: import numpy
  from .coordinate_map import AffineTransform, CoordinateMap, compose, shifted_range_origin
  from .coordinate_map import product
  from .coordinate_system import CoordinateSystem
label_desc: Use image node_id 6 for calling the ArrayCoordMap obj's underlying member method code with example usage: obj.from_shape(coordmap, shape) and returns: Grid