Skip to main content

Package for exploring and downloading data from the FIR API service.

Project description

FIR API CLI

FIR API CLI is a command line interface tool for exploring and downloading Sentinel satellite images from the FIR API service.

The tool can be used to explore and download dataset based on product id or metadata filtering.

In order to use the package, users must have a valid FIR eFöld registration.

More information at: https://efold.gov.hu/

Installation

pip install fir-api-cli

Usage

Get some help:

fir-cli --help

Save username and password to config file (if executed, no need to support username and password to commands):

fir-cli config <username> <password>

Get information about individual product based on product id:

fir-cli -u <username> -pw <password> query-id -i <product_id>

Download individual product based on product id:

fir-cli -u <username> -pw <password> query-id -i <product_id> -d <path/to/folder>

Get information about products based on query:

fir-cli -u <username> -pw <password> query -p Sentinel-2 -dt 2021-01-01 2021-01-05 -c 1

Download products based on query and save product list to csv:

fir-cli -u <username> -pw <password> query -p Sentinel-2 -dt 2021-01-01 2021-01-05 -c 1 -d <path/to/folder> -o <path/to/csv_file.csv>

Note: username and password can be automatically supplied by setting the FIR_API_USERNAME and FIR_API_PASSWORD environment variables or by running the config command.

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

fir-api-cli-0.4.4.tar.gz (9.5 kB view hashes)

Uploaded Source

Built Distribution

fir_api_cli-0.4.4-py3-none-any.whl (10.9 kB view hashes)

Uploaded Python 3

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