pyresample
pyresample copied to clipboard
Deprecated use of pyproj.transform
Code Sample, a minimal, complete, and verifiable piece of code
pytest pyresample/test/test_geometry.py
Problem description
The usage of pyproj.transform has been deprecated. This function is used in pyresample.geometry.CoordinateDefinition.geocentric_resolution() and pyresample.geometry.SwathDefinition._do_transform() methods. The deprecation warning points to https://pyproj4.github.io/pyproj/stable/gotchas.html#upgrading-to-pyproj-2-from-pyproj-1 and the proper way in pyproj2 is to use pyproj.Transformer class.