Skip to content

Instantly share code, notes, and snippets.

@andrewgiessel
Created November 21, 2014 01:15
Show Gist options
  • Select an option

  • Save andrewgiessel/08e5cb531b5bbd24cf6a to your computer and use it in GitHub Desktop.

Select an option

Save andrewgiessel/08e5cb531b5bbd24cf6a to your computer and use it in GitHub Desktop.

Revisions

  1. andrewgiessel created this gist Nov 21, 2014.
    7 changes: 7 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    import pyproj

    wgs84 = pyproj.Proj('+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs')##4326
    geocentric= pyproj.Proj('+proj=geocent +datum=WGS84 +units=m +no_defs') ##4978

    for x, y in coords:
    x2, y2, z2 = pyproj.transform( wgs84, geocentric, x, y, 0)