From 9a1b9e344aefad4ed222bd8d10eb6b9000c9c7d0 Mon Sep 17 00:00:00 2001 From: Mike Taves Date: Mon, 30 Mar 2020 03:20:03 +1300 Subject: [PATCH] fix(pyproj): pyproj.Proj's errcheck keyword option not reliable (#837) --- flopy/export/netcdf.py | 2 +- flopy/utils/reference.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/flopy/export/netcdf.py b/flopy/export/netcdf.py index f0996c7ad0..042855ffc0 100644 --- a/flopy/export/netcdf.py +++ b/flopy/export/netcdf.py @@ -633,7 +633,7 @@ def initialize_geometry(self): self.log("building grid crs using proj4 string: {}".format(proj4_str)) try: - self.grid_crs = Proj(proj4_str, preserve_units=True, errcheck=True) + self.grid_crs = Proj(proj4_str, preserve_units=True) except Exception as e: self.log("error building grid crs:\n{0}".format(str(e))) diff --git a/flopy/utils/reference.py b/flopy/utils/reference.py index 0d1ccf30a5..5fb2a965c3 100755 --- a/flopy/utils/reference.py +++ b/flopy/utils/reference.py @@ -261,9 +261,7 @@ def _parse_units_from_proj4(self): if "EPSG" in self.proj4_str.upper(): import pyproj - crs = pyproj.Proj(self.proj4_str, - preserve_units=True, - errcheck=True) + crs = pyproj.Proj(self.proj4_str, preserve_units=True) proj_str = crs.srs else: proj_str = self.proj4_str