A Python utility for downloading Sentinel-1 Orbit files from the Registry of Open Data on AWS
Project description
s1-orbits
A Python utility for downloading Sentinel-1 Orbit files from the Registry of Open Data on AWS.
>>> import s1_orbits
>>> orbit_file = s1_orbits.fetch_for_scene('S1A_IW_SLC__1SDV_20230727T075102_20230727T075131_049606_05F70A_AE0A')
>>> orbit_file
PosixPath('S1A_OPER_AUX_POEORB_OPOD_20230816T080815_V20230726T225942_20230728T005942.EOF')
Installation
In order to easily manage dependencies, we recommend using dedicated project environments via Anaconda/Miniconda or Python virtual environments.
s1_orbits can be installed into a conda environment with:
conda install -c conda-forge s1_orbits
or into a virtual environment with:
python -m pip install s1_orbits
Usage
s1-orbits provides one function - fetch_for_scene - to download the "best available" orbit file for a given scene. This means it will download the AUX_POEORB file if it exists; otherwise, it will download the AUX_RESORB file. For a more full-featured API, see sentineleof or CDSE's APIs.
fetch_for_scene(scene: str, dir: Union[pathlib.Path, str] = '.') -> pathlib.Path
"""
For the given scene, downloads the AUX_POEORB file if available, otherwise downloads the AUX_RESORB file.
Args:
scene: The scene name for which to download the orbit file.
dir: The directory that the orbit file should download into.
Raises:
InvalidSceneError: Thrown if the scene name is not a proper Sentinel-1 scene name.
OrbitNotFoundError: Thrown if an orbit cannot be found for the provided scene.
Returns:
download_path: The path to the downloaded file.
"""
Development
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
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 s1_orbits-0.2.0.tar.gz.
File metadata
- Download URL: s1_orbits-0.2.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ff7561c7fb76490b6a0c232e61f64226899c8424f49ddd05825eb166d0daeb3
|
|
| MD5 |
ace0e699a1357a0ceaf830f6eda3861e
|
|
| BLAKE2b-256 |
a98b3ba0f9f8d5bf760e8a649516dfde46183b3f4649fabe1d71c1a5596cdc87
|
File details
Details for the file s1_orbits-0.2.0-py3-none-any.whl.
File metadata
- Download URL: s1_orbits-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1d2c42f8d99628efd21b5445fa8d0c9f9d2f575c28d30a29dd42ff305df99c5
|
|
| MD5 |
c4585fbd76267c66ec1336db4c211460
|
|
| BLAKE2b-256 |
9d0a0e7d9741406a044f01a918894b850067c9c7b7e92e17c533cf5fdcac4fb4
|