Skip to main content

Get metadata about Planet Scope ARPS satellite imagery

Project description

PSARPS - Planet Scope ARPS Satellite Imagery Metadata Tool

A Python library and CLI tool for retrieving tide metadata for Planet Scope ARPS (Automated Rapid Preprocessing System) satellite imagery.

Features

  • Extract acquisition time from ARPS QA raster images
  • Find the closest tide station to the image location
  • Get the tide height at the time of image acquisition
  • Simple command-line interface

Installation

From PyPI

pip install psarps

From GitHub

pip install git+https://github.com/tayden/psarps.git

Usage

Command Line Interface

Get tide information for a Planet Scope ARPS QA raster image:

arps info path/to/your_image_qa.tif

Example output:

Acquisition Time: 2023-05-01 14:30:45
Tide Height (m): 2.34
Station Name: Victoria
Station Distance (m): 5432

Python API

import psarps

# Get tide information
tide_info = psarps.get_tide_height("path/to/your_image_qa.tif")

# Access the tide data
acquisition_time = tide_info['acquisition_time']
tide_height = tide_info['tide_height']
station_name = tide_info['station_name']
station_distance = tide_info['station_distance']

# Get just the acquisition time
acq_time = psarps.get_acquisition_time("path/to/your_image_qa.tif")

# Get the closest tide station
closest_station = psarps.get_closest_tide_station("path/to/your_image_qa.tif")

Development

Setup Development Environment

# Clone the repository
git clone https://github.com/tayden/psarps.git
cd psarps

# Install with development dependencies
uv pip install ".[dev]"

Common Development Commands

  • Run tests: pytest
  • Lint code: ruff check src/ tests/
  • Format code: ruff format src/ tests/

Requirements

  • Python 3.13+
  • See pyproject.toml for dependencies

License

MIT

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

psarps-0.1.1.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

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

psarps-0.1.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file psarps-0.1.1.tar.gz.

File metadata

  • Download URL: psarps-0.1.1.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.3

File hashes

Hashes for psarps-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8193653a47b2d07399a0c02d100ce4b6c041e747725489f779a2886a00ed9d21
MD5 26d4fa791d46bd6b17962fd549da74f1
BLAKE2b-256 075bc96a9796579cb6947be2c37c32d371c465e25ac08484b89385f25cee9f80

See more details on using hashes here.

File details

Details for the file psarps-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: psarps-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.3

File hashes

Hashes for psarps-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 107d4b75a1a1461b1c43c68a7654aa8d5159c52ee50ba1a98d805df2358fca39
MD5 188d5dde1cac83e95c6345889c224cf5
BLAKE2b-256 2708c4d94c81b641d19d32784be5a8c1c9aed1b96858186f58edda1feb2b7cba

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