Skip to main content

Transform stationXML files to update embargo policy

Project description

#+TITLE: EIDA embargo roller

* Description
This program takes a stationXML file in input and updates channels epochs to reflect the embargo start date specified.

1. If the channel epoch ends before embargo, it does not do anything
2. If the channel epoch ends after embargo:
- if the channel epoch starts before embargo and the restiction policy is closed then the epoch is split at the embargo date.
1. The epoch's restriction policy before the embargo is forced to be open
2. The other epoch's restiction policy is left closed

* Usage

#+begin_example
eida_embargo_roller [-i] [-d YYYY-MM-DD] station.xml
-i transform stationXML file provided in place
-d embargo start date. All channels before this date will get unrestricted policy
#+end_example

* Installation
As a python package:

: python -m pip install --user eida_embargo_roller

From sources:

#+begin_example
git clone
cd eida_embargo_roller
pyhton3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install .
#+end_example


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

eida_embargo_roller-0.1.0.tar.gz (14.4 kB view details)

Uploaded Source

File details

Details for the file eida_embargo_roller-0.1.0.tar.gz.

File metadata

  • Download URL: eida_embargo_roller-0.1.0.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.4.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for eida_embargo_roller-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c46f9f38ea38a81105e7abfd9933cde1b2407d87a550765f80b65e23bab9c1c0
MD5 0ac99ec7e4e8a677d5756b64c41f848d
BLAKE2b-256 6beb322b004e13f90bb9d51225eff7da09f8af31419f9846de37bde66615bda3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page