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
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.3.tar.gz
(42.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file psarps-0.1.3.tar.gz.
File metadata
- Download URL: psarps-0.1.3.tar.gz
- Upload date:
- Size: 42.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1518464401bd703da4863a62b444a2f2b3223f5ec63e57ef1d82cf7cac7edbde
|
|
| MD5 |
91ed71aa31a0498b56652fb698733d57
|
|
| BLAKE2b-256 |
d80dbe11214ae3e91befebbf4bc0802c31b1819e3294542c13c53670166eea72
|
File details
Details for the file psarps-0.1.3-py3-none-any.whl.
File metadata
- Download URL: psarps-0.1.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
656d97df9d5644bd772dfedcfcd68b4050092c92ac325fd87f0b45f99c5a9bab
|
|
| MD5 |
c03c4976eab92e7e6a0006e7c92e3a61
|
|
| BLAKE2b-256 |
81764efe0551c80becadabe3ea21b3cf2836e7ee4240bdaddfcf4068d2a06fda
|