Skip to content

Commit

Permalink
remove the south pole from reduced ll grid
Browse files Browse the repository at this point in the history
  • Loading branch information
mathleur committed Jan 27, 2025
1 parent 254b116 commit ce488a8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __init__(self, base_axis, mapped_axes, resolution, md5_hash=None, local_area

def first_axis_vals(self):
resolution = 180 / (self._resolution - 1)
vals = [-90 + i * resolution for i in range(self._resolution)]
vals = [round(90 - i * resolution, 12) for i in range(self._resolution)]
return vals

def map_first_axis(self, lower, upper):
Expand Down Expand Up @@ -5088,7 +5088,7 @@ def second_axis_vals(self, first_val):
second_spacing = 360 / Ny
return [i * second_spacing for i in range(Ny)]
else:
raise ValueError("Requested longitude vvalue is not within reduced latitude-longitude grid bounds")
raise ValueError("Requested latitude value is not within reduced latitude-longitude grid bounds")

def map_second_axis(self, first_val, lower, upper):
axis_lines = self.second_axis_vals(first_val)
Expand Down

0 comments on commit ce488a8

Please sign in to comment.