Skip to content

Commit

Permalink
fix typo in angle calculation (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored and ahuang11 committed Jul 6, 2023
1 parent b68bebb commit af15bd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geoviews/operation/projection.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ def _process_element(self, element):
new_data[xdim.name] = coordinates[mask, 0]
new_data[ydim.name] = coordinates[mask, 1]
datatype = [element.interface.datatype]+element.datatype
us = np.sin(ang) * ms
vs = np.cos(ang) * ms
us = np.cos(ang) * ms
vs = np.sin(ang) * ms
ut, vt = self.p.projection.transform_vectors(element.crs, xs, ys, us, vs)
with np.errstate(divide='ignore', invalid='ignore'):
angle = np.arctan2(vt, ut)
Expand Down

0 comments on commit af15bd1

Please sign in to comment.