You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Via @tjlang, "You had a bug in the attached script, which caused the projections to fail in the southern hemisphere (everything was erroneously rotated 180 degrees around the projection center). The specific issue was the definition of localy in the TangentPlaneCartesianSystem class. I fixed it with a simple if-then statement (see lines 277-280) and now the projections essentially match what Basemap does."
localy = dot(P, northCenterECEF[:,newaxis] )
if ctrLat >= 0:
localy = -localy / norm(localy) # negation gets x and y pointing in the right direction
else:
localy = localy / norm(localy) # No negation in southern hemisphere
The text was updated successfully, but these errors were encountered:
Via @tjlang, "You had a bug in the attached script, which caused the projections to fail in the southern hemisphere (everything was erroneously rotated 180 degrees around the projection center). The specific issue was the definition of localy in the TangentPlaneCartesianSystem class. I fixed it with a simple if-then statement (see lines 277-280) and now the projections essentially match what Basemap does."
The text was updated successfully, but these errors were encountered: