Deprecated use of pyproj.transform
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 385
- Forks
- 102
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 9
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with CoordinateDefinition.geocentric_resolution() and SwathDefinition._do_transform() in pyresample.geometry, then run pytest pyresample/test/test_geometry.py to observe the current deprecation warnings. Update the deprecated transformation usage to the pyproj.Transformer approach and confirm the geometry tests pass without those warnings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100