Skip to content

Commit

Permalink
fix nc_cellsize
Browse files Browse the repository at this point in the history
  • Loading branch information
kongdd committed Oct 20, 2023
1 parent 6ccd243 commit 6b2d7b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nc_dim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ end
nc_cellsize(ds::NCdata)
"""
function nc_cellsize(ds::NCdata)
diflon = nc_dim(ds, "lon").vals |> diff
diflat = nc_dim(ds, "lat").vals |> diff
diflon = nc_dim(ds, r"lon").vals |> diff
diflat = nc_dim(ds, r"lat").vals |> diff

cell_x = mode(diflon)
cell_y = mode(diflat)
Expand Down

0 comments on commit 6b2d7b8

Please sign in to comment.