Skip to content

Commit

Permalink
Removes todo comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MoseleyS committed Aug 2, 2024
1 parent 78a49dd commit 22bc899
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions improver/utilities/spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,8 @@ def _get_x_distances(self) -> Cube:
lon_diffs = np.diff(longs)

x_distances = (
self.sphere_radius
* np.cos(np.deg2rad(lats_as_col.astype(np.float64)))
* np.deg2rad(lon_diffs.astype(np.float64))
) # Using 64 bit floats for this calculation improves precision by 0.1% TODO: check this.
self.sphere_radius * np.cos(np.deg2rad(lats_as_col)) * np.deg2rad(lon_diffs)
)

dims = [(self.cube.coord(axis="y"), 0), (self.x_separations_axis, 1)]
return self.build_distances_cube(x_distances, dims, "x")
Expand Down

0 comments on commit 22bc899

Please sign in to comment.