Skip to content

Commit aa4f6c1

Browse files
authored
Merge branch 'main' into zedwick/bilinear-remapping
2 parents c17dbe7 + d9f7bc4 commit aa4f6c1

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

uxarray/grid/arcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,6 @@ def compute_arc_length(pt_a, pt_b):
366366
rho = np.sqrt(1.0 - z1 * z2)
367367
cross_2d = x1 * y2 - y1 * x2
368368
dot_2d = x1 * x2 + y1 * y2
369-
delta_theta = np.atan2(cross_2d, dot_2d)
369+
delta_theta = np.arctan2(cross_2d, dot_2d)
370370

371371
return rho * abs(delta_theta)

uxarray/grid/coordinates.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def _xyz_to_lonlat_rad_no_norm(
5353
Latitude in radians
5454
"""
5555

56-
lon = np.atan2(y, x)
56+
lon = np.arctan2(y, x)
5757
lat = np.asin(z)
5858

5959
# set longitude range to [0, pi]
@@ -76,7 +76,7 @@ def _xyz_to_lonlat_rad_scalar(x, y, z, normalize=True):
7676
y /= denom
7777
z /= denom
7878

79-
lon = np.atan2(y, x)
79+
lon = np.arctan2(y, x)
8080
lat = np.asin(z)
8181

8282
# Set longitude range to [0, 2*pi]
@@ -778,7 +778,7 @@ def _xyz_to_lonlat_rad_no_norm(
778778
Latitude in radians
779779
"""
780780

781-
lon = np.atan2(y, x)
781+
lon = np.arctan2(y, x)
782782
lat = np.asin(z)
783783

784784
# set longitude range to [0, pi]

uxarray/grid/neighbors.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -822,9 +822,6 @@ def __init__(
822822
self._xmax = lon_max + self._dh
823823
self._ymax = lat_max + self._dh
824824

825-
print(self._xmin, self._xmax)
826-
print(self._ymin, self._ymax)
827-
828825
# Number of x points in the hash grid; used for
829826
# array flattening
830827
Lx = self._xmax - self._xmin

0 commit comments

Comments
 (0)