Skip to content

Commit

Permalink
Fix x axis
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Wales committed Jun 7, 2021
1 parent 4fb7cce commit 96c4673
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion era5grib/era5grib.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def era5grib_um(time, output=None, target=None, source="NCI", format="grib"):
mf = mule.load_umfile(target)

ny = mf.integer_constants.num_rows
nx = mf.integer_constants.num_rows
nx = mf.integer_constants.num_cols

y0 = mf.real_constants.start_lat
x0 = mf.real_constants.start_lon
Expand All @@ -207,6 +207,9 @@ def era5grib_um(time, output=None, target=None, source="NCI", format="grib"):
lat = y0 + numpy.arange(ny) * dy
lon = x0 + numpy.arange(nx) * dx

print(x0, dx, nx, lon[0], lon[-1])
print(y0, dy, ny, lat[0], lat[-1])

ds = select_domain(ds, lats=lat, lons=lon)

else:
Expand Down

0 comments on commit 96c4673

Please sign in to comment.