Skip to main content

Sentinel-1 auxiliary (AUX) products reader.

Project description

PyPI Status GitHub Actions Status Supported Python versions License

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.

Project details


Release history Release notifications | RSS feed

This version

0.9

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

s1aux-0.9.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

s1aux-0.9-py3-none-any.whl (119.6 kB view details)

Uploaded Python 3

File details

Details for the file s1aux-0.9.tar.gz.

File metadata

  • Download URL: s1aux-0.9.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for s1aux-0.9.tar.gz
Algorithm Hash digest
SHA256 8785dc3ffca54e873fc2d72c28e2710580f777c52dc71b38cc502a979519561a
MD5 9d48712089ea32e4087b440d0d1c075e
BLAKE2b-256 9d80f868afa00f88eab05e3aa4c5f43694348dad99a26e6c3cb3e3d6a1c6ed6c

See more details on using hashes here.

File details

Details for the file s1aux-0.9-py3-none-any.whl.

File metadata

  • Download URL: s1aux-0.9-py3-none-any.whl
  • Upload date:
  • Size: 119.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for s1aux-0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 855b49df639bd5bc55e09f72809099b13a54d969477c06d2ad5bcbdad2e3d24a
MD5 da0b45b4153cd1c0ae61eada5e7b3326
BLAKE2b-256 9440bf08b5e5093789278cd211bf0008964accd366c8bb11f6d4a8c3f0a797a2

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