Skip to main content

Python bindings for Jason Positioning-as-a-Service: Rokubun GNSS processing engine in the cloud.

Project description

Python SDK for Jason GNSS Positioning-as-a-Service

Jason GNSS Positioning-as-a-Service is a cloud-based positioning engine that uses GNSS data. One of the main features of this service is that offers an API so that users can automatize the GNSS data processing without the need to access the front-end.

The online documentation of the service can be found here.

To install the package:

pip3 install jason-gnss

Note that this SDK supports only Python 3.x.

Authentication

It is important that you have the JASON_API_KEY and JASON_SECRET_TOKEN environement variables. These can be fetched by accessing your area in the Jason PaaS and then going to My Account -> API Credentials.

Use the package as an SDK

The package is basically a library that can be embedded into your Python scripts

import jason_gnss as jason

# Submit a process without waiting for it to finish (fetch it later)
jason.submit_process(rover_file)
# ({'message': 'success', 'id': 3505}, 200)

# Get the status of your process. The documentation of the return can 
# be found in the Jason online documentation
process_id = 3505
jason.get_status(process_id)
# ({'process': {'id': 3505, ...}, 200)

# Download the results file for a given process that you own
jason.download_results(process_id)
# '/jason_gnss/rokubun_gnss_id_003505.zip'

Command line tools

The package has also a command line tool so that you can use it out-of-the-box. The following examples illustrate how to use it.

export JASON_API_KEY='<jason-api-key>'
export JASON_SECRET_TOKEN='<your-private-jason-user-token>'

# Get the help
jason -h

# Process a rover file
jason process test/jason_gnss_test_file_rover.txt

# Process a rover file and adding a base station file as well
jason process test/jason_gnss_test_file_rover.txt test/jason_gnss_test_file_base.txt

# Perform a PPK processing specifying a rover, base file as well as the location
# of the base station
jason process test/jason_gnss_test_file_rover.txt \
              test/jason_gnss_test_file_base.txt \
              --base_position 41.809142804  2.163228514  936.01730

# Get the status of a process
jason status process_id

# Fetch the results file for a given process id
jason download process_id

# Convert a file to RINEX 3.03 format
jason convert test/jason_gnss_test_file_smartphone.txt

The arguments of the command line tools follow the docopt

Docker execution/development

It is recommended that you use docker to execute or work with this package. This repository contains both a Dockerfile as well as a docker-compose.yml to help you with this.

Follow these instructions:

# Command to build the image
docker-compose build

# Start the container with the package loaded with the command
docker-compose run jason_gnss

Once inside the container:

# Install the package
python setup.py install

Now, while in the container, you can issue commands in the prompt or within the Python console.

API Key and secret token

If you are using docker-compose, we recommend that you store your authorization keys in a file .env and run the Docker container via the command docker-compose run jason-gnss. With this, your credentials will be loaded in the container and the Jason tools will be ready to use without the need to declare these variables.

JASON_API_KEY='<jason-api-key>'
JASON_SECRET_TOKEN='<your-private-jason-user-token>'

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

jason-gnss-1.8.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jason_gnss-1.8.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file jason-gnss-1.8.0.tar.gz.

File metadata

  • Download URL: jason-gnss-1.8.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for jason-gnss-1.8.0.tar.gz
Algorithm Hash digest
SHA256 6c153500c9caf443bfdc5bc46b379dd38189cf71a700823041d84cf23bf077ff
MD5 69daa104a2f3b5a149789a9f29c5cc56
BLAKE2b-256 b441127672cca95df2d73a0d326851fd4ebb672f75d039b605da328fd90e678b

See more details on using hashes here.

File details

Details for the file jason_gnss-1.8.0-py3-none-any.whl.

File metadata

  • Download URL: jason_gnss-1.8.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for jason_gnss-1.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd3d00bdfac412be07b69437ab9f441897a1a698b58888ae58d9ed0c9d80d144
MD5 f269e3e5b13daf5fc1c4e0f0aa9d5d9b
BLAKE2b-256 1b5c89eadab75417cd5dfe59c9907e513084ccc98de34ea04fdf5e8e3de8540f

See more details on using hashes here.

Supported by

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