Questions tagged [pyproj]

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

See also:

184 questions
1
vote
1 answer

pyproj returning inf for UTM

I am gettin x = [inf inf inf.....] and y = [inf inf inf...]. Has anyone encountered this error before? I am attempting to convert lon and lat into x y values. I have the following code but I cannot figure out what is incorrect. This is San Diego…
1
vote
0 answers

Shapely linestring list transformation - best practices?

Shapely question: Given a list of linestrings (as coordinate arrays) to be reprojected - what is best way to reproject just using pyproj and shapely? If I cast as an array of linestrings, and apply the transform on each in a list, I seem to be…
kuanb
  • 1,618
  • 2
  • 20
  • 42
1
vote
1 answer

Running using Python command: python , ImportError: No module named pyproj

Hi, it is my first time asking question on StackOverflow. First, I am trying to use openSFM but it is really hard. As in the picture I wrote command bin/opensfm_run_all data/berlin but the error keeps coming out like this: Running using Python…
Yang JaeWon
  • 51
  • 1
  • 5
1
vote
2 answers

Calculationg Lat/Lon from Geostationary Projection

I am analyzing GOES-16 Satelite data and need to calculate the underlying lat, lon of each grid coordinate as part of further analysis. I am currently attempting to use pyproj to do this and am running into longitude values outside of the expected…
skuzmier
  • 23
  • 5
1
vote
1 answer

How to define a geographic datum transformation using pyproj

I originally wrote a script to project x, y coordinates. I shared this code with colleagues and we appear to be getting different results using the same script with the same files. We have different versions on python and pyproj installed on our…
avail
  • 11
  • 1
1
vote
1 answer

GeoPandas .to_crs running into errors

I'm trying to import a shape file and change its crs in order to get a map with the correct projection. map_sh = gpd.read_file(r'C:\PATH\VG250_Gemeindegrenzen_2018.shp') map_sh = map_sh.to_crs({'init' :'epsg:25832'}) When I try executing it, I…
Xzatar
  • 67
  • 1
  • 6
1
vote
0 answers

how to set x_0,y_0 (false easting / false northing) of LCC in basemap

I'm using matplotlib-basemap with LCC projection. after using .proj4string, I found x_0, y_0 in map data with default value I want to set x_0, y_0 to 0. but I can't find variable about false easting and false northing how can I set x_0,y_0 value to…
GS Moon
  • 23
  • 6
1
vote
1 answer

Can't Transform Matplotlib Basemap Projection

Cylindrical Projection Lambert Conformal Conic Projection I am attempting to plot a GOES-16 satellite image and transform it from the GEOS projection to the LCC projection. Initially, I was able to transform it to the CYL without issue and it…
WxJack
  • 21
  • 6
1
vote
1 answer

Reprojecting GOES16 Satellite Data with Cartopy and Pyproj

I'm trying to reproject GOES16 Full Disk imagery using cartopy or pyproj. I'd like to get it into a different projection. For this example, I try to reproject it to Mercator. However, when I run the code I get a full globe image of the data not in…
James
  • 149
  • 1
  • 10
1
vote
2 answers

Calculating zenith and elevation angles for satellite as seen from the ground

I have the latitude, longitude, and height for a satellite and for a ground observer. I am trying to calculate the satellite zenith angle and satellite azimuth angle, for the satellite, as seen from the ground. I'm currently trying to solve this…
gerrit
  • 24,025
  • 17
  • 97
  • 170
1
vote
1 answer

Converting latitude and longitude to UTM coordinates in pyspark

I have dataframe contain longitude and latitude coordinates for each point. I want to convert the geographical coordinates for each point to UTM coordinates. I tried to use utm module (https://pypi.org/project/utm/) import…
Ahmad Senousi
  • 613
  • 2
  • 12
  • 24
1
vote
1 answer

Distance between great circle and point

I have three points: A, B and C (lat,long coords in WGS84) I'd like to calculate the distance between C and the smallest path between A, B. (This have to work with any lat,long so I can't make projections) Can pyproj or geographiclib.geodesic can do…
Neabfi
  • 4,411
  • 3
  • 32
  • 42
1
vote
0 answers

Least Squares gives wrong altitude with LLA to ECEF to LLA in Python

The goal is to find the location of a mobile unit from ground stations at known GPS locations, reporting ranges to the mobile unit that are fuzzy or have noise. To do this, I want the script to convert Latitude Longitude Altitude (LLA) taken from…
1
vote
1 answer

PyProj transformation from CA state plane coordinates to Lat, Long not as expected

I am trying to use pyproj to transform the Calfornia State Plane Zone 5 X-Y coordinates to Latitude, Longitude. For validation, I kniow that CA Zone 5 X-Y coordinates (6559361.78613, 1834842.95456) is the address 13422 Ankerton St, Bassett, CA. The…
1
vote
1 answer

geodjango query format coordinates- convert lat lon , open street map

I have a polygon in my model citys but in my map for example bogota has the coordinate -8243997.66798 , 517864.86656 -> open street maps; but i need make query with coordinates like (4.697857, -74.144554) -> google maps. pnt = 'POINT(%d %d)'%(lon,…
user5975488