Skip to main content

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

Release files for PSARPS 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PSARPS 0.1.3
File Size Uploaded
psarps-0.1.3.tar.gz 42.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PSARPS 0.1.3
File Interpreter ABI Platform
psarps-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 47.3 kB

Release files / psarps-0.1.3.tar.gz

Download URL psarps-0.1.3.tar.gz
Size 42.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1518464401bd703da4863a62b444a2f2b3223f5ec63e57ef1d82cf7cac7edbde
BLAKE2b-256 checksum
How to use checksums
d80dbe11214ae3e91befebbf4bc0802c31b1819e3294542c13c53670166eea72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.7.3

Release files / psarps-0.1.3-py3-none-any.whl

Download URL psarps-0.1.3-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
656d97df9d5644bd772dfedcfcd68b4050092c92ac325fd87f0b45f99c5a9bab
BLAKE2b-256 checksum
How to use checksums
81764efe0551c80becadabe3ea21b3cf2836e7ee4240bdaddfcf4068d2a06fda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.7.3

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page