-
Notifications
You must be signed in to change notification settings - Fork 308
Preserve dtype for wrap_lons #4119
Copy link
Copy link
Open
Rohansjamadagni/iris
#1Labels
Good First IssueA good issue to take on if you're just getting started with Iris developmentA good issue to take on if you're just getting started with Iris development
Metadata
Metadata
Assignees
Labels
Good First IssueA good issue to take on if you're just getting started with Iris developmentA good issue to take on if you're just getting started with Iris development
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
No status
📰 Custom Issue
Currently,
iris.analysis.cartography.wrap_lonspromotes dtype tonp.float64. This is causing some users to have to manually change the dtype back to its original version.iris/lib/iris/analysis/cartography.py
Lines 70 to 73 in 98baee2
I believe this is done to avoid rounding errors within the calculation. If this is the case, It may be worth converting back to the original dtype after the calculation with something like the following code: