def construct_grids(batch):
 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))
 xgrid = np.arange(xmin, xmax, batch.grid_size)
 ygrid = np.arange(ymin, ymax, batch.grid_size)
 return (xgrid, ygrid)

def construct_grids ( batch ) : 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 ) ) xgrid = np . arange ( xmin , xmax , batch . grid_size ) ygrid = np . arange ( ymin , ymax , batch . grid_size ) return ( xgrid , ygrid )
construct the map grid from the batch object parameters batch : batch object the object returned by :func:fetch_species_distributions returns : 1-d arrays the grid corresponding to the values in batch .