High level tools for reading Sentinel-1 auxiliary data produced by the ESA SAR Mission Performance Cluster (SAR-MPC).
s1aux exploits the xsdata Python package to read the XML files included in the data folder of the Sentinel-1 Auxiliary Products.
Usage
The recommended way to load S1 AUX files is to use the s1aux.load function:
>>> import s1aux
>>> filename = (
"S1A_AUX_INS_V20190228T092500_G20211103T111906.SAFE/data/s1a-aux-ins.xml"
)
>>> auxins_data = s1aux.load(filename)
The s1aux.load function automatically detects the version of the relevant auxiliary product specification returns a dataclasses.dataclass instance generated by the underling xsdata package.
The information can be accessed through the attributes of the returned object:
>>> import pprint
>>> pprint.pprint(
auxins.timeline_list.timeline[0].swath_map_list
)
SwathMapListType(swath_map=(SwathMapType(swath_number=0,
swath=<SwathType.S1: 'S1'>),
SwathMapType(swath_number=50,
swath=<SwathType.S1: 'S1'>),
SwathMapType(swath_number=36,
swath=<SwathType.S1: 'S1'>),
SwathMapType(swath_number=86,
swath=<SwathType.S1: 'S1'>)),
count=4)
It is also possie to use the xsdata API to read the AUX data for a specific version of the auxiliary product specification:
>>> from xsdata.formats.dataclass.parsers import XmlParser >>> auxins = parser.parse(filename, AuxiliaryInstrument)
Download
The s1aux source code can be downloaded from the Git repository on GitHub at https://github.com/avalentino/s1aux or from PyPI: https://pypi.org/project/s1aux.
Installation
The pip tool can be used to install the package:
$ python3 -m pip install s1aux
Testing
s1aux includes a quite complete test suite. It is recommended to use the pytest tool to run the tests:
$ python3 -m pytest tests
License
Copyright (c) 2024-2025 Antonio Valentino
The s1aux package is distributed under the Apache-2.0 License (see the LICENSE file).
The package also include test data that are distributed under the terms of use of the Copernicus Sentinel Data and Service Information legal notice as described in https://sentinels.copernicus.eu/documents/247904/690755/Sentinel_Data_Legal_Notice
The text of the Copernicus Sentinel Data and Service Information legal notice is also reported in tests/data/LICENSE.txt.
Release files for s1aux 0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| s1aux-0.9.tar.gz | 1.0 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| s1aux-0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.1 MB
Release files / s1aux-0.9.tar.gz
| Download URL | s1aux-0.9.tar.gz |
|---|---|
| Size | 1.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8785dc3ffca54e873fc2d72c28e2710580f777c52dc71b38cc502a979519561a
|
|
BLAKE2b-256 checksum How to use checksums |
9d80f868afa00f88eab05e3aa4c5f43694348dad99a26e6c3cb3e3d6a1c6ed6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / s1aux-0.9-py3-none-any.whl
| Download URL | s1aux-0.9-py3-none-any.whl |
|---|---|
| Size | 119.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
855b49df639bd5bc55e09f72809099b13a54d969477c06d2ad5bcbdad2e3d24a
|
|
BLAKE2b-256 checksum How to use checksums |
9440bf08b5e5093789278cd211bf0008964accd366c8bb11f6d4a8c3f0a797a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|