Indian Grid Converter
A Python library for converting WGS84 latitude and longitude coordinates to the Indian Grid System and vice versa.
Features
- Convert WGS84 latitude and longitude to the Indian Grid System.
- Convert Indian Grid System coordinates back to WGS84 latitude and longitude.
- Accurate calculations based on the Indian grid system parameters.
Installation
You can install the package using either of the following methods:
Using pip:
pip install indiagrid
Installing from GitHub:
pip install git+https://github.com/goki75/indiagrid.git
Usage
Converting WGS84 to Indian Grid System
from indiagrid import wgs84_to_igs
result = wgs84_to_igs(lat=28.7041, lon=77.1025)
print(result)
Output:
{'Easting': 3632281.67, 'Northing': 531791.54, 'Grid': 'I'}
Converting Indian Grid System to WGS84
from indiagrid import igs_to_wgs84
reverse_result = igs_to_wgs84(3632281.67, Nth=531791.54, grid="I")
print(reverse_result)
Output:
{'latitude': 28.704099993002522, 'longitude': 77.10249995658076}
Parameters
wgs84_to_igs
- lat (float): Latitude in decimal degrees.
- lon (float): Longitude in decimal degrees.
- esterr (float, optional): Easting error adjustment. Default is 0.
- ntherr (float, optional): Northing error adjustment. Default is 0.
igs_to_wgs84
- Eth (float): Easting in the Indian grid system.
- Nth (float): Northing in the Indian grid system.
- grid (str): Grid region (e.g., 'I', 'IIA', etc.).
- esterr (float, optional): Easting error adjustment. Default is 0.
- ntherr (float, optional): Northing error adjustment. Default is 0.
License
This project is licensed under the GPLv2 License.
Release files for indiagrid 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| indiagrid-0.4.1.tar.gz | 13.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| indiagrid-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.3 kB
Release files / indiagrid-0.4.1.tar.gz
| Download URL | indiagrid-0.4.1.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1096ea43913eb88c8b8a6725b753c30a9818ef2b9dfdc4218e00a21013cde1b6
|
|
BLAKE2b-256 checksum How to use checksums |
aed33fc3f2869ef400579c2a2844ac730697c148153a44faeb2614cb09fc0d0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.12
|
Release files / indiagrid-0.4.1-py3-none-any.whl
| Download URL | indiagrid-0.4.1-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8bb62cf9d710adf39d42953289b34156ca3af17ee9c597b2638c1c5321ca15ed
|
|
BLAKE2b-256 checksum How to use checksums |
a38fe145206bd4b67de15e6fa30fabe30728edc11598b1160eff12d8f596f4b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.12
|