Skip to content
Snippets Groups Projects
Commit b7f5d33b authored by Stefan Hendricks's avatar Stefan Hendricks :office:
Browse files

bugfix: origin uncertainty was not stored correctly

parent f15a3322
No related branches found
No related tags found
No related merge requests found
......@@ -1038,10 +1038,10 @@ class FloeNaviGridSolution(object):
# Compute the average deviation (uncertainty) of the origin
origin_xc_delta = origins_xc[1]-origins_xc[0]
origin_yc_delta = origins_yc[1]-origins_yc[0]
self._origin_uncertainty_m = np.sqrt(origin_xc_delta**2.0 + origin_yc_delta**2.0)
invalid = np.where(self._origin_uncertainty_m > 1.0e10)[0]
self._origin_uncertainty_m[invalid] = np.nan
logger.debug("Average origin uncertainty: %.1fm" % np.nanmean(self._origin_uncertainty_m))
self.origin_uncertainty_m = np.sqrt(origin_xc_delta**2.0 + origin_yc_delta**2.0)
invalid = np.where(self.origin_uncertainty_m > 1.0e10)[0]
self.origin_uncertainty_m[invalid] = np.nan
logger.debug("Average origin uncertainty: %.1fm" % np.nanmean(self.origin_uncertainty_m))
# Compute the origin in geographical coordinates
logger.info("Compute FloeNavi origin in lon/lat")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment