- Notifications
You must be signed in to change notification settings - Fork0
cioos-siooc/swob-to-json
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
ConvertsEnvironment and Climate Change Canada'sSWOB-ML XML files to JSON.
SWOB is Surface Weather and Marine Observation Markup Language, the format is described in docshere
- Create a new python environment if required. eg
python -m venv venv && source venv/bin/activate
pip install --upgrade https://github.com/cioos-siooc/swob_to_json/tarball/main
- python -m swob_to_json/test_files/input_xml/2023-02-01-0615-46036-AUTO-swob.xml
- See example output file -/test_files/output_json/2023-02-01-0615-46036-AUTO-swob.xml.json
fromswob_to_jsonimportswob_to_jsonswob_json=swob_to_json.parseFile(filename)# orswob_json=swob_to_json.parseText(xml_string)