You're welcome! I interpreted it as an accelerometer because I've seen A-code used for that in our system, and because I think the response plot for the GSE file gave the same output compared to Seisan FAP when I input it as accelerometern but not for seismometer... but I may have easily made a typo that caused that. Cheers, Felix --
Thank you Felix for the comprehensive answer. Very useful.
Yes, the MBRY station is a seismometer and the ILI resampled the data at the observatory at a weird rate of 75.19 Hz. I’ll draft a script to automate this after hand testing some examples. The LOC and CHAN codes are odd for this dataset. I have a Python code to fix those.
Cheers,
Glenn
From: [email protected] <[email protected]>
On Behalf Of Felix Halpaap
Hi, I think there's no fully automatic tool to convert from Seisan FAP to any other format yet, unfortunately. Here's the general workflow that I used for converting from Seisan responses to stationXML is as follows: 1. For Seisan FAP files: use program RESP and manually enter the parameters of the seismometer described in the Seisan file to create a GSE2-file. (For Seisan PAZ files, use program GSERESP to convert from Seisan to GSE). For your example in MBRY_A_JN.1996-10-01-0000, the commands would be:
*** if instrument is seismometer and not accelerometer, these 2 steps are required as 3rd + 4th answer in list above:
2. Check the plot that now opens, and compare it to a plot of the response for the Seisan FAP-file (use PRESP to plot, with input file MBRY_A_JN.1996-10-01-0000). They should look exactly the same. 3. Manually enter response end time (e.g. 1997-10-01) into the newly created GSE file (MBRY_A__N.1996-10-01-0000_GSE), so that it looks like: 3. Once you have converted all Seisan files for a station, use program GSERESP2SEED to convert from GSE2 to dataless SEED. It will do some checks and enter some metadata from Seisan's 4. Read SEED file straight into Obspy and write to stationXML, or use IRIS's stationXML-seed-converter as a standalone tool to convert to stationXML.
The steps under 1) can probably be scripted in a shell to read the values from FAP file and send as inputs to the program. But if you want to include the correct information on the sampling rate you may have to query the waveform database, and for the correct seismometer and digitizer models you need to check that all comment lines are written in the same format (has free formatting in Seisan FAP files). So depending on the number of files that you want to convert doing it manually gives you some extra QC. Cheers,
On 09/07/2021 16.25, Glenn Thompson wrote:
-- Felix Halpaap| Postdoctoral Research Fellow | Dep. of Earth Science | University of Bergen Allégaten 41, 5007 Bergen, Norway | Office 2B18 | [email protected] | +47 55 58 34 11 [EXTERNAL EMAIL] DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe. | |||
_______________________________________________ seisan mailing list [email protected] https://mailman.uib.no/listinfo/seisan
