Questions tagged [pyproj]

Python interface to PROJ.4 library. Performs cartographic transformations and geodetic computations.

See also:

184 questions
0
votes
2 answers

Installing pyproj in Anaconda python (Ubuntu)

I am trying to install pyproj on a remote server running anaconda python 2.7.15 on Ubuntu 16.04. After running conda install -c conda-forge pyproj (first listed option at https://anaconda.org/conda-forge/pyproj), the package installs successfully…
pjw
  • 2,133
  • 3
  • 27
  • 44
0
votes
1 answer

With max/min lat and lon and number of grid points, how to get lat/lon grid?

I'm downloading a netCDF dataset for contour plotting and analysis but cannot get the data projection quite right. The file says that it is a Lambert Conformal Projection and provides the lat/lon min/max: geospatial_lat_min:…
donutwx
  • 63
  • 1
  • 7
0
votes
1 answer

problem with converting coordinates with pyproj, right values

i found another topic where i have found this code: utm15_wgs84 = pp.Proj(init='epsg:3575') df[['wgs_x', 'wgs_y']] = df.apply(lambda row:utm15_wgs84(row['Lat'], row['Long'], inverse=True), axis=1).apply(pd.Series) my df (INPUT): Lat,…
sygneto
  • 1,761
  • 1
  • 13
  • 26
0
votes
0 answers

Geospatial Conda Environment Setup in Python

I just started a new job and I have to set up my geospatial environment in Windows (I was a mac user before). I am having trouble navigating around geopandas bug #830. Based on the comments for the bug, it looks like if I can downgrade pyproj to…
jtam
  • 814
  • 1
  • 8
  • 24
0
votes
2 answers

Increase the columns of numpy 2D array

I have this toy example that uses numpy and an external package called PyProj. Lat and lon are 2D arrays that contain coordinates of some domain specific information. What I want to do is to calculate distance on a sphere from a central point that…
gansub
  • 1,164
  • 3
  • 20
  • 47
0
votes
1 answer

What is the different between datum and ellps in pyproj?

I am converting from ECEF to lla using def ecef_to_lla(x, y, z): lla = pyproj.Proj(proj='latlong', ellps='WGS84', datum='WGS84') ecef = pyproj.Proj(proj='geocent', ellps='WGS84', datum='WGS84') lon, lat, alt = pyproj.transform(ecef, lla,…
nickponline
  • 25,354
  • 32
  • 99
  • 167
0
votes
0 answers

Creating a python package with dependency

I created a python package with a dependency that fails to install using pip due to some missing wheels and non pure-pythonic code (needs a Microsoft Visuals Compiler). Other dependencies are installed normally using pip. the problematic dependency…
Rutger Hofste
  • 4,073
  • 3
  • 33
  • 44
0
votes
1 answer

Speed up pandas iterrows (xy to lat long coordinate pyproj)

I have been using iterrows to transform XY coordinates to Lat, Long using the pyProj module. I know that using iterrows in pandas is slow but I am having trouble finding another way to code this. I have a dataframe with wellnames and each wells X…
brandog
  • 1,497
  • 5
  • 20
  • 28
0
votes
1 answer

How to get Lat/Lon from x,y Cartesian Coordinates tmerc projection?

I am trying to convert data from OpenDrive Cartesian coordinates to Lat/Lon values. For pt = [6.714150516498e+05, 5.434880530093e+06] on the German A9 Highway, I want to know what the Lat/Lon Coordinates are. I have been trying to solve it this way…
0
votes
1 answer

Dysfunctioning of pip in installing python packages on Windows

I am trying to install a Python module - pyproj-1.9.5.1-cp27-cp27m-win32.whl using the Python package installer - pip. Since I use a version of Python 2.7.10, which comes bundled with ArcGIS 10.4.1, it is already preloaded with pip, as all versions…
Sujai Banerji
  • 27
  • 1
  • 9
0
votes
1 answer

Lat/lon distance calculation by converting to utm gives different results than using approximate method

I've got two methods for calculating the distance between georeferenced coordinates in python: from pyproj import Proj import math def calc_distance(lat1, lon1, lat2, lon2): """ Calculate the great circle distance between two points on…
M F
  • 323
  • 1
  • 3
  • 15
0
votes
1 answer

Intersect two shapely polygons on the Earth projection

as i know, shapely use only cartesian coordinate system. I have two point on the earth with lat and lon coordinates. I need create buffer with 1km radius around this two points and find polygon, where this buffers intersect. But construstion…
0
votes
1 answer

lat lon coordinates (WGS84) conversion to local x, y plane

Currently I'm trying the following: I have points from google earth (WGS84) which I want to transform to a local x,y coordinate system: a tangential plane with y positive from south to north and x positive from west to east. There is no need for the…
Yorian
  • 2,002
  • 5
  • 34
  • 60
0
votes
0 answers

Convert cartesian coordinates to geography coordinate

i have a Canvas where i get the position of the pixel when i draw. Example, X=1, Y=5. So, i have to project that on a real wall. I know the geography coordinate of each lower corner of the wall and the width and height as well. How can i convert…
-1
votes
1 answer

Reproject geo data and save to NetCDF4

I need to reproject geodetic point data from Gauß-Krüger coord system with discrete data values into a UTM coord system and finally write that data into a netCDF raster file. I was recommended to use python to do this. I tried with PyProj4 which…
Tobias
  • 33
  • 5
1 2 3
12
13