8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9984fe commit 5ce3637Copy full SHA for 5ce3637
examples/scales/scales.py
@@ -78,14 +78,7 @@ def inverse(x):
78
# Function Mercator transform
79
def forward(a):
80
a = np.deg2rad(a)
81
- # mask values too close to +/- 90, which are ill-defined.
82
- masked = np.ma.masked_where((a <= -np.pi/2 + 0.02) |
83
- (a >= np.pi/2 - 0.02), a)
84
- if masked.mask.any():
85
- return np.rad2deg(
86
- np.ma.log(np.abs(np.ma.tan(masked) + 1.0 / np.ma.cos(masked))))
87
- else:
88
- return np.rad2deg(np.log(np.abs(np.tan(a) + 1.0 / np.cos(a))))
+ return np.rad2deg(np.log(np.abs(np.tan(a) + 1.0 / np.cos(a))))
89
90
91
def inverse(a):
0 commit comments