Skip to content

Commit

Permalink
Merge pull request #7 from raphaeldussin/hydro_fix_output
Browse files Browse the repository at this point in the history
fix dims and chunking
  • Loading branch information
raphaeldussin authored Aug 12, 2022
2 parents 5f58136 + c75e240 commit bfc1786
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sectionate/hydro.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,9 @@ def extract_1pt(da, uvpoint, xdim=xdim, ydim=ydim):
# concat over new dimension
hydro = xr.concat([hydro, interp_data], dim=section)

# transpose
hydro = hydro.transpose(*(..., section))
# rechunk
hydro = hydro.chunk({section: len(hydro[section])})

return hydro

0 comments on commit bfc1786

Please sign in to comment.