Skip to content
This repository was archived by the owner on Sep 24, 2021. It is now read-only.

Commit adeab0a

Browse files
committed
To match matlab, zero out SAAR on land. Closes #15.
1 parent 8afb0f2 commit adeab0a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

gsw/gibbs/library.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,11 @@ def _delta_SA(self, p, lon, lat):
185185
# Editing options, in case we don't want to use
186186
# values calculated from the wrong pressure, or from
187187
# an incomplete SA table grid square.
188-
mask_out |= self.p_fudge > self.max_p_fudge
189-
mask_out |= self.frac1 < self.min_frac
190-
delta_SA = np.ma.array(delta_SA, mask=mask_out, copy=False)
188+
# mask_out |= self.p_fudge > self.max_p_fudge
189+
# mask_out |= self.frac1 < self.min_frac
190+
# delta_SA = np.ma.array(delta_SA, mask=mask_out, copy=False)
191+
# Later on, it is expected to be a masked array.
192+
delta_SA = np.ma.array(delta_SA, copy=False)
191193
if reshaped:
192194
delta_SA.shape = shape_in
193195
self.p_fudge.shape = shape_in

0 commit comments

Comments
 (0)