__hash__
method
do DataArray accessors get created every time you access them?
They should be retained for the life of the data array after it is first accessed (unless it is modified with another operation that drops/copies things) as far as I can tell.
Proj({'proj': 'eqc', 'lon_0': 0.0, 'lat_0': 0.0})
and it seems to error on Windows with RuntimeError: b'major axis or radius = 0 or not given'
with pyproj 1.9.6 but with pyproj 2.3 it is fine. I would have assumed pyproj/proj to get more strict, not less strict. And I've never seen this error before. FYI this is PROJ 5.2.0 on Windows that fails.
$ conda list proj
# packages in environment at /home/snowal/miniconda3/envs/geocube:
#
# Name Version Build Channel
proj4 5.2.0 he1b5a44_1003 conda-forge
pyproj 1.9.6 py36h516909a_1002 conda-forge
(geocube) snowal@snowal-lx2:~$ python
Python 3.6.7 | packaged by conda-forge | (default, Jul 2 2019, 02:18:42)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyproj import Proj
>>> pj = Proj({'proj': 'eqc', 'lon_0': 0.0, 'lat_0': 0.0})
>>> pj
pyproj.Proj('+units=m +proj=eqc +lon_0=0.0 +lat_0=0.0 ', preserve_units=True)
>>> import pyproj
>>> pyproj.__version__
'1.9.6'
pip install git+https://github.com/pyproj4/pyproj.git
?
@branch-or-tag
Hey all, I'm working on upgrading pyproj from 1.9.4
to a more recent version. But I can't get past a change in output from pyproj.transform
if I go to 2.2.1
and higher.
import pyproj
result = pyproj.transform(pyproj.Proj(init='EPSG:4326'),
pyproj.Proj(init='EPSG:31370'),
-50, -50)
print(result)
# 2.2.1: (-16648000.756625965, -13287157.707139067)
# 1.9.4: (-16647936.738681808, -13287195.77167615)
The outputs are in the comments, and the difference is really too big to ignore.
What exactly is going wrong here?
pyproj.Proj('EPSG:4326')
instead
-50, -50
149372.267141, 175495.954088
vs 149372.214872, 175495.952055
.