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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for psarps-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1edb2e047ed885a6b87426e4e582724a4db4bd19ceb41d8c1914aee12e797183
MD5 46a878cd5058cd165ae9bac1876bad1d
BLAKE2b-256 f925652b33864cee59079518dcca90c2925e422084f29a55a45b5c4398104478

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psarps-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a2fdab63afc2456fb70c34763c5c9993c542016d504209f35aeda34158ae6268
MD5 5449e6a93b7625894534b473504e16a9
BLAKE2b-256 5735461249cd5319c98bdcd3fb87e1e29597258d6bbbf4b04d16597698122d93

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