Skip to content

Commit d0a7592

Browse files
mjrenomjreno
authored andcommitted
cleanup
1 parent d2490a0 commit d0a7592

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

docs/examples/quickstart.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import flopy
44
import matplotlib.pyplot as plt
55
import numpy as np
6-
import xarray as xr
76

87
from flopy4.mf6.gwf import Chd, Dis, Gwf, Ic, Npf, Oc
98
from flopy4.mf6.ims import Ims
@@ -72,16 +71,8 @@
7271
for r in spdis:
7372
u.append(r[3])
7473
v.append(r[4])
75-
uflow = np.array(u).reshape(grid.nrow, grid.ncol)
76-
vflow = np.array(v).reshape(grid.nrow, grid.ncol)
77-
78-
# set data coordinate arrays
79-
xcrs = grid.xycenters[0]
80-
ycrs = grid.xycenters[1]
81-
82-
# create qx, qy dataarrys
83-
qx = xr.DataArray(uflow, dims=("y", "x"), coords={"x": xcrs, "y": ycrs})
84-
qy = xr.DataArray(vflow, dims=("y", "x"), coords={"x": xcrs, "y": ycrs})
74+
qx = np.array(u).reshape(grid.nrow, grid.ncol)
75+
qy = np.array(v).reshape(grid.nrow, grid.ncol)
8576

8677
fig, ax = plt.subplots()
8778
pmv = flopy.plot.PlotMapView(modelgrid=grid, ax=ax)

0 commit comments

Comments
 (0)