Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plot arrays across faces without cutout #427

Merged
merged 11 commits into from
Jun 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
format
  • Loading branch information
Mikejmnez committed Apr 26, 2024
commit 264a3d53211baf7b5d294c281d848d00b6bd3599
6 changes: 3 additions & 3 deletions oceanspy/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,7 @@ def faces_array(

"""
transpose = [k for k in range(7, 13)]
_N = len(od._ds.X) # len size of face
data = od._ds[varName] # assert 2D, otherwise pick z=0, time=0
# =========================================================
# repeated code from mooring array
Expand Down Expand Up @@ -1135,7 +1136,6 @@ def faces_array(
ll = _np.where(abs(_np.diff(_dat)))[0]
_faces = [_dat[i] for i in ll] + [_dat[-1]]
print(_faces)
Niter = len(_faces)
Niter = len(set(_faces))
# ===========================================================

Expand All @@ -1154,7 +1154,7 @@ def faces_array(
for ii in range(
len(_faces)
): # Niter count total faces. _faces can have repeated faces
nix, niy = fill_path(nX0, nY0, _faces, ii, face_connections)
nix, niy = fill_path(nX0, nY0, _faces, ii, face_connections, _N)
inface += [_faces[ii]] * len(list(nix))
inX += list(nix)
inY += list(niy)
Expand Down Expand Up @@ -1222,7 +1222,7 @@ def faces_array(
inX, inY, inface = [], [], []
# for ii in range(Niter):
for ii in range(len(_faces)):
nix, niy = fill_path(nX0, nY0, _faces, ii, face_connections)
nix, niy = fill_path(nX0, nY0, _faces, ii, face_connections, _N)
inface += [_faces[ii]] * len(list(nix))
inX += list(nix)
inY += list(niy)
Expand Down
Loading