Skip to main content

coorblimey is an open source Python3 library to transform geocentric coordinates to geographic, and vice versa.

Project description

Code Climate https://circleci.com/gh/lo-ise/coorblimey.png?style=shield

What is it?

coorblimey is an open source Python3 library to transform geocentric coordinates to geographic, and vice versa.

Formulas for the calculations have been taken from:

Datums and Map Projections: For Remote Sensing, GIS and Surveying, Second Edition, by Jonathan IIiffe (Editor), Roger Lott.

Results were checked against this handy tool.

In it’s present state…

… it only does the geocentric to geographic bit, and only has the ability to do this with either GRS80 or WGS84 ellipsoids.

It outputs latitude, longitude and height above ellipsoid. The precision of this for latitude and longitude is 10 decimal places. For height, to the millimetre.

Installation

Easy hopefully, just…

pip install coorblimey

Usage

You can either use this as a command line tool, or you can import it into your python programs…

… as a command line tool

coorblimey -t to_geographic -x 1418595 -y -689557 -z -6159338 -e GRS80

This will give:

Geographic coordinates (GRS80)
lat: -75.7283616724, lon: -25.9236668699, h: 30.705

… in Python programs

from coorblimey.geocentrics import Geocentrics

geo      = Geocentrics(1418595, -689557, -6159338, ellipsoid='GRS80')
latlongs = geo.make_geographic()

latlongs with be a list [lat, lon, z]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coorblimey-0.1.2.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file coorblimey-0.1.2.tar.gz.

File metadata

  • Download URL: coorblimey-0.1.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for coorblimey-0.1.2.tar.gz
Algorithm Hash digest
SHA256 70a94fb44fd2ea7b2bf15e50d5a5e8b383f66d91d3085d382889e0d6d0e27cc4
MD5 f8fe7294dd58c446f4ecf111216a1479
BLAKE2b-256 00e925234b54fb4a16b61ec1304dce8ccae5cc9dff43bdaa94f27b23f419b16f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page