parameters: (batch)
return_statement: return (xgrid, ygrid)
docstring: Construct the map grid from the batch object
  
      Parameters
      ----------
      batch : Batch object
          The object returned by :func:`fetch_species_distributions`
  
      Returns
      -------
      (xgrid, ygrid) : 1-D arrays
          The grid corresponding to the values in batch.coverages
docstring_summary: Construct the map grid from the batch object
docstring_tokens: Construct the map grid from the batch object
function: def construct_grids(batch):
      """Construct the map grid from the batch object
  
      Parameters
      ----------
      batch : Batch object
          The object returned by :func:`fetch_species_distributions`
  
      Returns
      -------
      (xgrid, ygrid) : 1-D arrays
          The grid corresponding to the values in batch.coverages
      """
      # x,y coordinates for corner cells
      xmin = batch.x_left_lower_corner + batch.grid_size
      xmax = xmin + (batch.Nx * batch.grid_size)
      ymin = batch.y_left_lower_corner + batch.grid_size
      ymax = ymin + (batch.Ny * batch.grid_size)
  
      # x coordinates of the grid cells
      xgrid = np.arange(xmin, xmax, batch.grid_size)
      # y coordinates of the grid cells
      ygrid = np.arange(ymin, ymax, batch.grid_size)
  
      return (xgrid, ygrid)
function_tokens: def construct_grids ( batch ) : # x,y coordinates for corner cells xmin = batch . x_left_lower_corner + batch . grid_size xmax = xmin + ( batch . Nx * batch . grid_size ) ymin = batch . y_left_lower_corner + batch . grid_size ymax = ymin + ( batch . Ny * batch . grid_size ) # x coordinates of the grid cells xgrid = np . arange ( xmin , xmax , batch . grid_size ) # y coordinates of the grid cells ygrid = np . arange ( ymin , ymax , batch . grid_size ) return ( xgrid , ygrid )