Commit 9f4ccdf6 authored by Pierre Cazenave's avatar Pierre Cazenave

Simplify this a bit.

parent a93c48ec
Pipeline #789 failed with stage
......@@ -483,17 +483,16 @@ class OpenBoundary:
if predict == 'zeta':
amplitude_var, phase_var = 'ha', 'hp'
x, y = self.grid.lon, self.grid.lat
obc = self.nodes
xdim = self.nodes
elif predict == 'u':
amplitude_var, phase_var = 'ua', 'up'
x, y = self.grid.lonc, self.grid.latc
obc = self.elements
xdim = self.elements
elif predict == 'v':
amplitude_var, phase_var = 'va', 'vp'
x, y = self.grid.lonc, self.grid.latc
obc = self.elements
xdim = self.elements
xdim = len(obc)
latitudes = y
with Dataset(str(tpxo_harmonics), 'r') as tides:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment