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 Feb 10, 2019
1 parent d109351 commit 5332f54
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 @@ -196,8 +196,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 5332f54

Please sign in to comment.