Python interface to PROJ.4 library. Performs cartographic transformations and geodetic computations.
Questions tagged [pyproj]
184 questions
1
vote
0 answers
CRS for HS2 snakegrid plotting in wrong location on Folium and Leaflet
I've been trying to plot some geographical date which is the HS2 snakegrid co-ordinate system
According to ESPG HS2 ESPG Geodetic Parameters Page I should be using CRS 9300 (although have also tried 9306)
When used, the location is not plotting…

geotech
- 11
- 2
1
vote
1 answer
reproject IMERG using rioxarray
I would like to make reprojected array using rioxarray.
My data is IMERG from NASA and GK-2A weather satellite image. I want to convert Imerg data to a projection of an image in gk-2a.
IMRG files can be obtained from NASA, but an account is…

singsung
- 27
- 3
1
vote
2 answers
Get clean Array output from pyproj
(if you don't need all details, please see short explanation below...)
What I want to do: I'm currently trying to convert a bunch of coordinates from epsg:4326 to epsg: 25832. The conversion part works perfectly fine and I was able to save my array…

duxt3r__
- 17
- 5
1
vote
0 answers
How to convert osmium.osm.location cordinates to normal format coordinates
I have extracted the coordinates data from nodes using pyosmium. Though I was successful in extracting the data but the coordinates which osmium is giving is not in normal format, I tried to convert the one of the coordinates using pyproj but the…

data en
- 431
- 1
- 2
- 9
1
vote
0 answers
ModuleNotFoundError: No module named 'pyproj._network'
I am trying to run Python Code on Spyder for scientific computing. I use geometric information from shape files using geopandas. Installing geopandas was already difficult but I finally managed. However now I have another issue, that a module called…

Stefano
- 27
- 2
1
vote
1 answer
to_crs("epsg:4326") retruns different coordinate
I am trying to change coordinates system on my geopandas dataframe from epsg:5179 to epsg:4236.
BUT, .to_crs("epsg:4326") retruns different coordinates... How can I get true cordinates?
geo[geometry].set_crs("epsg:5179", inplace = True)
geo_df =…
user6650157
1
vote
2 answers
input must be an array, list, tuple or scalar pyproj
I Have a DF in which I am trying to convert the eastings/northings to long/lats. My df looks like this:
import pandas as pd
import numpy as np
import pyproj
Postcode Eastings Northings
0 AB101AB 394235 806529
1 AB101AF …

Amen_90
- 310
- 2
- 9
1
vote
1 answer
Remap data from Polar Stereographic projection to Lat-Lon
I have a NetCDF file with storm track density data over south polar stereographic projection. Both X and Y coordinates range from -1.924274 to 1.88504 (I don't know the units here). The link for the .nc file is here.
When I open the file with Xarray…

Maartaud
- 45
- 4
1
vote
0 answers
ProjError: Error creating Transformer from CRS.:
I am having an issue with Geopandas and PyProj.
I am loading a premade shp file from GeoPandas
borough = gpd.read_file(gpd.datasets.get_path('nybb'))
When trying to do a crs transformation with the following code:
borough =…

Mads
- 11
- 2
1
vote
0 answers
RuntimeError: b'no arguments in initialization list' with pyproj geopandas
I'm running into an issue that seems to share with many posts. I have tried a couple of solutions:
conda uninstall pyproj and then pip install pyproj
edited the pyproj_datadir
But I'm still getting the same error. The answer to this post…

Huy Tran
- 11
- 2
1
vote
1 answer
ModuleNotFoundError: No module named 'pyproj.crs.crs'; 'pyproj.crs' is not a package
I am trying to import a networkx graph object as a pickle using nx.read_gpickle, and am getting an error that pyproj.crs package does not exist. Heads up that I am using GOSTnets, a package developed for network analysis using networkx, geopandas,…

jblng
- 13
- 1
- 4
1
vote
0 answers
Convertion between compound CRS with pyproj
I'm trying to convert the (x,y,z) coordinate from a compound CRS to another one. I came across this example online, and it does work for me.
import pyproj
cmpd_crs = pyproj.crs.CompoundCRS(name="WGS 84 + EGM96 height", components=["EPSG:4326",…

Erin Li
- 185
- 1
- 1
- 6
1
vote
1 answer
Pandas - Compare 2 dataframes and find nearest values
I have 2 dataframes in Pandas that contain longitude and latitude. I am trying to loop through each of the rows in the first and find the closest matching longitude and latitude in the second dataframe.
I have this in python so far which I found in…

fightstarr20
- 11,682
- 40
- 154
- 278
1
vote
0 answers
Quickly re-projecting spatial data in python
I have a geodataframe with a local projection (EPSG:2263) that I want to transform to WGS84(global) in order to add basemap interactivity within python. However, when transforming this data, the runtime for this block of code is hours long and…

sTonystork
- 137
- 8
1
vote
1 answer
Shapely/Pyproj transformation throws OverflowError - determining length of LineString
I'm working in a Jupyter Notebook and deleted code I thought I didn't need the other. Now I get an overflow error, when running the notebook. I'm pretty sure the code used to work just fine and the problem is caused by me stupidly deleting…

johajippijupp
- 25
- 3