original_docstring: Create a test cube on an irregular grid to test `extract_region`.
docstring: Create a test cube on an irregular grid to test `extract_region`.
docstring_tokens: Create a test cube on an irregular grid to test ` extract_region ` .
code: def irregular_extract_region_cube():
      """Create a test cube on an irregular grid to test `extract_region`."""
      data = np.arange(9, dtype=np.float32).reshape((3, 3))
      lons = np.array(
          [
              [0, 120, 240],
              [0, 120, 240],
              [0, 120, 240],
          ],
          dtype=np.float64,
      )
      lats = np.array(
          [
              [-60, -61., -60],
              [0, -1, 0],
              [60, 60, 60],
          ],
          dtype=np.float64,
      )
      cube = create_irregular_grid_cube(data, lons, lats)
      return cube
code_tokens: def irregular_extract_region_cube ( ) : data = np . arange ( 9 , dtype = np . float32 ) . reshape ( ( 3 , 3 ) ) lons = np . array ( [ [ 0 , 120 , 240 ] , [ 0 , 120 , 240 ] , [ 0 , 120 , 240 ] , ] , dtype = np . float64 , ) lats = np . array ( [ [ - 60 , - 61. , - 60 ] , [ 0 , - 1 , 0 ] , [ 60 , 60 , 60 ] , ] , 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_region`.
short_docstring_tokens: Create a test cube on an irregular grid to test ` extract_region ` .
comment: """Create a test cube on an irregular grid to test `extract_region`."""