Closed david-i-berry closed 2 years ago
Hi, @david-i-berry
the code lists and schemas are downloaded when you run python3 setup.py build
. I am not sure if we use the most authoritative sources, but it works for me. It outputs something like:
Downloading WMO ISO XML Schemas and Codelists.xml to /home/jano/.pywcmp running build running build_py
and as the result of the first step, it populates $HOME/.pywcmp
with about 115 files and folders.
@david-i-berry does this work for you given @josusky 's comments?
Apologies for the delay in replying. I've just tried again and it work so I'll close the issue. I expect I missed the setup step before.
External files referenced from util.py are missing:
https://github.com/wmo-im/pywcmp/blob/4cd02de0f5217bc739db9da301ab95710175453b/pywcmp/util.py#L98-L101 https://github.com/wmo-im/pywcmp/blob/4cd02de0f5217bc739db9da301ab95710175453b/pywcmp/util.py#L345
One of these is available from https://wis.wmo.int/2012/codelists/WMOCodeLists.xml but it is unclear where to get the others from. Without these pywcmp returns an error message, e.g.