Mars Coordinate Finder
Contents
- Description
- Installation
- Usage
- Generating a JSON file that bounds a required location
Description
-
This package allows the user to generate equidistant latitude and longitude coordinates within a region defined by the user.
-
As most of the work done within Mars is not concerned with locations within the ocean, this package limits the coordinates to those that are on land and ensures the equidistant locations are only over land mass.
-
There are two methods within this package:
- The first can find equidistant coordinates within a region bounded by North, South, East and West coordinates.
- The second can take a JSON file that defines the boundary coordinates of given region and creates equidistant points within this region
-
The result of either of these methods can be stored as a JSON for use using the createJSON method
Installation
Use the package manager pip to install coordinate_finder
pip install coordinate-finder
Usage
To use this package you can reference the following commands as an example:
from coordinate_finder import Marscoordfinder
coords = Marscoordfinder()
# Code to generate equidistant points within a boxed region
# land_points are points within the region on land
# equidistant_points are the number of coordinates (in this case 40) equidistant across the land in this region
# n & s are the North and South Latitudes you wish to use as the boundaries
# e & w are the East and West longitudes you wish to use as Boundaries
# fidelity is the granularity of the defined grid, a smaller fidelity will give a finer granularity
land_points, equidistant_points = coords.getNPointsInRegion(40, n=30, s=26, e=86.9, w=83.3, fidelity = 0.08)
# Code to generate equidistant points within a custom defined boundary
land_points, equidistant_points = coords.pointsInRegion(40,'BRA_Shape_Points.json')
# Code to write the calculated coordinates to a JSON file
coords.createJson(equidistant_points, 'C:/Users/smithjoh/Documents/output_coords.json')
Generating a JSON file that bounds a required location
- Go to https://gadm.org/download_country_v3.html and search for the country you want a region within
- Download the shapefile for this country
- Go to https://mapshaper.org/ and upload all the files at the _0 level (this will give the country outline)
- Export the GeoJSON files which will give a JSON file of all the cooridnates of the country outlines
- This can now be used with the package
Metadata
Release files for coordinate-finder 1.2.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 | Provenance | |
|---|---|---|---|---|
| coordinate_finder-1.2.1.tar.gz | 2.0 MB | Without provenance | Details |
Release files / coordinate_finder-1.2.1.tar.gz
| Download URL | coordinate_finder-1.2.1.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60b4b510c9b4e48c0ee4dbd0b1b065390eedc45c0cd92a1e2d25f42c2e6051f2
|
|
BLAKE2b-256 checksum How to use checksums |
c2d710d2a76c687bf134b0c3edb9b947a9989ade8ad33ab650e71e9406ea137b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.3
|
Security for coordinate-finder 1.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.