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.0.tar.gz (23.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.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: psarps-0.1.0.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.12

File hashes

Hashes for psarps-0.1.0.tar.gz
Algorithm Hash digest
SHA256 33cc9d468c5e15cdf37aa9e248f102efd62a2d6cdb1e595952733f3c7195beb0
MD5 47d10ea7378d8720302729319c617f9f
BLAKE2b-256 bb9a4f9e53607b16421e1822d1fbd27cd83c17f8a013b75b6549b8f82f78bdef

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for psarps-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e48b96be244d23168eb440ebbafbcb143b9f6b5f367a14a9882e45b53dfd2797
MD5 0db9e160ea71284e5a7b8bb87b8f95c4
BLAKE2b-256 93265eb2a472bf04f4231d1ff40d319b27fff8876036487ee048d7e9f378c66d

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