Skip to content

Commit

Permalink
Addresses #50 dimension mismatch error
Browse files Browse the repository at this point in the history
  • Loading branch information
ks905383 committed Nov 29, 2023
1 parent e948e8f commit ab164e4
Show file tree
Hide file tree
Showing 2 changed files with 2,043 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xagg/aux.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,9 @@ def get_bnds(ds,

# Assign all non-edge bounds as just half of the distance from the center
# of each pixel to the center of the next pixel
print('HERE IS THE ISSUE PROBABLY')
bnds_tmp[1:,:] = xr.concat([ds[var]-0.5*ds[var].diff(var),
ds[var]+0.5*ds[var].diff(var)],dim='bnd').transpose(var,'bnd')
ds[var]+0.5*ds[var].diff(var)],dim='bnds').transpose(var,'bnds')

# Fill in last missing band before edge cases (the inner band of the
# first pixel, which is just equal to the next edge)
Expand Down
Loading

0 comments on commit ab164e4

Please sign in to comment.