In StationXML, the Country element gets written as a list for no good reason
Closed this issue · 2 comments
This seems like a relatively new issue, but in the StationXML the Site gets written as, e.g.,
Hualapai Valley, AZ, USA ['USA']There's no reason for the Country to be a list. I've tried to fix/change this but couldn't. In metadata.py, the function from_dict() copies the (str) country element from meta_dict into the (str) country element in the Survey class (self) and this initiates a list. It doesn't happen with any of the other string elements in the Survey class.
I'm about to resubmit a large number of StationXMLs to EarthScope (updating some of the filters, declination and elevation values) and I would prefer to create StationXMLs that don't have obvious issues. If you could help me fix this soon enough, that will result in better StationXMLs. Thanks a lot!
<Site> <Name>Hualapai Valley, AZ, USA</Name> <Country>['USA']</Country> </Site>
(example above)