original_docstring: Create a test cube on an irregular grid to test `extract_shape`.
docstring: Create a test cube on an irregular grid to test `extract_shape`.
docstring_tokens: Create a test cube on an irregular grid to test ` extract_shape ` .
code: def irreg_extract_shape_cube():
      """Create a test cube on an irregular grid to test `extract_shape`."""
      data = np.arange(9, dtype=np.float32).reshape((3, 3))
      lats = np.array(
          [
              [0.0, 0.0, 0.1],
              [1.0, 1.1, 1.2],
              [2.0, 2.1, 2.0],
          ],
          dtype=np.float64,
      )
      lons = np.array(
          [
              [0, 1, 2],
              [0, 1, 2],
              [0, 1, 2],
          ],
          dtype=np.float64,
      )
      cube = create_irregular_grid_cube(data, lons, lats)
      return cube
code_tokens: def irreg_extract_shape_cube ( ) : data = np . arange ( 9 , dtype = np . float32 ) . reshape ( ( 3 , 3 ) ) lats = np . array ( [ [ 0.0 , 0.0 , 0.1 ] , [ 1.0 , 1.1 , 1.2 ] , [ 2.0 , 2.1 , 2.0 ] , ] , dtype = np . float64 , ) lons = np . array ( [ [ 0 , 1 , 2 ] , [ 0 , 1 , 2 ] , [ 0 , 1 , 2 ] , ] , dtype = np . float64 , ) cube = create_irregular_grid_cube ( data , lons , lats ) return cube
short_docstring: Create a test cube on an irregular grid to test `extract_shape`.
short_docstring_tokens: Create a test cube on an irregular grid to test ` extract_shape ` .
comment: """Create a test cube on an irregular grid to test `extract_shape`."""