Trouble Parsing Station Metadata File in SourceSpec #52
-
I'm new to seismic data analysis and currently working on a project using SourceSpec v1.8. I'm encountering an issue when trying to parse a station metadata file (station_metadata.xml). Despite editing the file according to the provided specifications and ensuring that the path in the configuration file is correct, I'm still getting an error indicating that the file cannot be parsed. Here's the error message I'm receiving:
As a newcomer to this field, I'm not entirely sure what might be causing this issue. I've checked the file path, file permissions, and the content of the station_metadata.xml file, and everything seems to be in order. Is there anything specific I might be missing or any other troubleshooting steps I should try to resolve this issue? Any insights or suggestions would be greatly appreciated.** |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 14 replies
-
Dear Sadia, could you please share your config file? |
Beta Was this translation helpful? Give feedback.
-
I note there's a backslash missing between |
Beta Was this translation helpful? Give feedback.
-
Yes, I tried different paths, but none of them worked. In the Python shell, it indicates: |
Beta Was this translation helpful? Give feedback.
-
I am confused because in the README.md file, you mentioned, "Edit the config file variable station_metadata to point to the paz directory," and later stated, "Note that SEED RESP and PAZ formats do not contain station coordinates, which should therefore be in the trace header (traces in SAC format)." There are two subdirectories: "sac_data," where I placed SAC files (trace files), and "paz," where I placed poles and zeroes files in PAZ format. Do I need to point station_metadata in the config file to the "paz" folder that contains poles and zeroes, or to "sac_data," where SAC files contain station information in the headers? |
Beta Was this translation helpful? Give feedback.
-
Hi @sadia145, could you please tell us if your problem is fixed? Thanks 😉 |
Beta Was this translation helpful? Give feedback.
Hi @sadia145,
I got your metadata file via email, but I cannot find it here, so let me put it again for reference:
station_metadata.txt
Your file is a mix of PAZ (first 42 lines) and StationXML (next lines), which is not standard.
However, this is not the problem here.
The problem is that SourceSpec tries to read the metadata file as a PAZ file, and PAZ file reading has a bug in SourceSpec v1.8.
This is the output on macOS: