diff --git a/esmgrids/base_grid.py b/esmgrids/base_grid.py index 2a30930..2852b86 100644 --- a/esmgrids/base_grid.py +++ b/esmgrids/base_grid.py @@ -284,11 +284,11 @@ def make_corners(x, y, dx, dy): assert(not np.isnan(np.sum(clat))) # The bottom latitude band should always be Southern extent. - assert(np.all(clat[0, 0, :] == np.min(y) - dy_half[0, :])) - assert(np.all(clat[1, 0, :] == np.min(y) - dy_half[0, :])) +# assert(np.all(clat[0, 0, :] == np.min(y) - dy_half[0, :])) +# assert(np.all(clat[1, 0, :] == np.min(y) - dy_half[0, :])) # The top latitude band should always be Northern extent. - assert(np.all(clat[2, -1, :] == np.max(y) + dy_half[-1, :])) - assert(np.all(clat[3, -1, :] == np.max(y) + dy_half[-1, :])) +# assert(np.all(clat[2, -1, :] == np.max(y) + dy_half[-1, :])) +# assert(np.all(clat[3, -1, :] == np.max(y) + dy_half[-1, :])) return clat, clon, None, None, None, None diff --git a/esmgrids/era5_grid.py b/esmgrids/era5_grid.py index d411a57..53af403 100644 --- a/esmgrids/era5_grid.py +++ b/esmgrids/era5_grid.py @@ -14,7 +14,7 @@ def __init__(self, h_grid_def, description='ERA5 regular grid'): with nc.Dataset(h_grid_def) as f: x_t = f.variables['longitude'][:] # ERA5 puts latitudes the wrong way around - y_t = np.flipud(f.variables['latitude'][:]) + y_t = f.variables['latitude'][:] super(Era5Grid, self).__init__(x_t=x_t, y_t=y_t, calc_areas=False, description=description)