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

* Examples
Writing a new XML file for an embargo starting 2 years from now, on the 1 of january:
: eida_embargo_roller Z3.A190A.xml > result.xml

Changing an existing XML file:
: eida_embargo_roller -i Z3.A190A.xml

Using standard input :
: wget -qO- "ws.resif.fr/fdsnws/station/1/query?net=Z3&level=channel&sta=A190A" | eida_embargo_roller - > result.xml

* 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.1.tar.gz (14.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: eida_embargo_roller-0.1.1.tar.gz
  • Upload date:
  • Size: 14.5 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.1.tar.gz
Algorithm Hash digest
SHA256 765e8ed8a9880c906c19c3f36ce9bea23f380bf7af67209e369be16faba43aad
MD5 5c875e4d6cba2c4c7bdda5b43b9db459
BLAKE2b-256 945d783ac0ea76979957919be384e15fbe0a7f46c56453981698821db8c1d9d9

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