xseof
Overview
I/O library for the ESA EOF files.
This package provides a set of “dataclasses”, comapible with the xsdata Python library, to access and make I/O operation on the XML files in the ESA Earth Observation Ground Segment File Format (EOF) [1].
In particular, this package supports all the XML based orbit and attitude products described in [1].
Project links
- Home Page:
- Download:
Installation
Standard installation via pip:
$ pip install xseof
Installation via conda:
$ conda install -c avalentino xseof
Testing
Move to the the source directory root and run the following command:
$ python3 -m pytest
Basic usage
Load a generic orbit file:
>>> import xseof
>>> orbit = xseof.load(
"MA1_TEST_AUX_ORBRES_20210610T045753_20210610T065853_0001.EOF")
Access and print loaded data:
>>> import pprint
>>> orbit.earth_observation_header.fixed_header.notes = ""
>>> pprint.pprint(orbit.earth_observation_header.fixed_header)
FixedHeaderType(
file_name='MA1_TEST_AUX_ORBRES_20210610T045753_20210610T065853_0001',
file_description='FOS Orbit File',
notes='',
mission='MetOpSGA1',
file_class='TEST',
file_type='AUX_ORBRES',
validity_period=ValidityPeriodType(
validity_start='UTC=2021-06-10T04:57:53',
validity_stop='UTC=2021-06-10T05:02:23'),
file_version='0001',
eoffs_version='3.0',
source=SourceType(system='System Identification as per Ground '
'Segment File Format Standard '
'(PE-TN-ESA-GS-0001)',
creator='Creator Identification as per '
'Ground Segment File Format Standard '
'(PE-TN-ESA-GS-0001)',
creator_version='Creator Version '
'Identification as per '
'Ground Segment File Format '
'Standard '
'(PE-TN-ESA-GS-0001)',
creation_date='UTC=2022-06-23T10:06:43'))
>>> print(orbit.data_block.list_of_osvs.count)
10
>>> pprint.pprint(orbit.data_block.list_of_osvs.osv[0])
OsvType(tai='TAI=2021-06-10T04:57:17.817060',
utc='UTC=2021-06-10T04:57:52.817060',
ut1='UT1=2021-06-10T04:57:53.117059',
absolute_orbit=999,
x=PositionComponentType(value=Decimal('-1606749.988'), unit='m'),
y=PositionComponentType(value=Decimal('-5677008.966'), unit='m'),
z=PositionComponentType(value=Decimal('-4135675.595'), unit='m'),
vx=VelocityComponentType(value=Decimal('-2876.652288'), unit='m/s'),
vy=VelocityComponentType(value=Decimal('-3541.028256'), unit='m/s'),
vz=VelocityComponentType(value=Decimal('5985.303441'), unit='m/s'),
quality='0000000000000')
Load an EOF file of a specific type:
>>> from xseof import int_attref
>>> quaternions = int_attref.load(
"MA1_TEST_INT_ATTREF_20210610T045753_20210610T065853_0001.EOF")
Load data form string:
>>> from xseof import aux_orbres >>> filename = "MA1_TEST_AUX_ORBRES_20210610T045753_20210610T065853_0001.EOF" >>> with open(filename) as fd: ... data = fd.read() >>> orbit = aux_orbres.from_string(data)
Licanse
Copyright 2022 Antonio Valentino
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific langua
Version history
xseof v1.1.1 (27/12/2022)
Improve robustness in EOF files detection.
Improve support for element-tree imputs.
xseof v1.1.0 (23/12/2022)
Fix loading of Sentine-1 orbit form string.
New strict option (default: False) to enforce strict XML namespaces checking in xseof.load and xseof.from_string.
Improve docstrings to clarify that lxml is needed to use an ElementTree as source for the xseof.load and xseof.*.load functions. A dedicated unit test has been added also.
Test coverage improved.
xseof v1.0.0 (20/11/2022)
Initial release.
Metadata
Release files for xseof 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xseof-1.1.1.tar.gz | 48.7 kB | Without provenance | Details for xseof-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xseof-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for xseof-1.1.1-py3-none-any.whl |
Total release size: 218.0 kB
Release files / xseof-1.1.1.tar.gz
| Download URL | xseof-1.1.1.tar.gz |
|---|---|
| Size | 48.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de2eeb9c5e9512cf0c76c557392d91bbf8e8999aa27e987bc08af9ab35040e1a
|
|
BLAKE2b-256 checksum How to use checksums |
173f32b8b37914e8848329d94194a00ae205e9e0a90ce71b2f65282b1327c154
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Release files / xseof-1.1.1-py3-none-any.whl
| Download URL | xseof-1.1.1-py3-none-any.whl |
|---|---|
| Size | 169.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
797035e8a9bf17931b090bc3dbee3b3e4c4a13a23a750531f6638c509e82dd0a
|
|
BLAKE2b-256 checksum How to use checksums |
dc276518d55653b45b6283737ae572df24fb119dc497cae8a2523e25add38206
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Security for xseof 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.