Closed jordi-domingo closed 5 years ago
Maybe related to this other issue in the past...? https://github.com/SeisComP3/seiscomp3/issues/116
Can you please upload an example to reproduce and fix it?
I can't provide it right now, but if you create an inventory file with the following datalogger, you can reproduce it:
Nanometrics Centaur High Gain 1Vpp (gain 40) http://ds.iris.edu/NRL/dataloggers/nanometrics/centaur/RESP.XX.NN391..BHZ.CENTAUR.40.40.OFF.LP
I don't have tools at hand to do that. If possible provide me with an example XML file whenever it is convenient for you.
This should work (I hope...) NL.TERZ.00.BH.zip
Yes, that shows the issue but it is already SC3 XML. Can you provide the input StationXML file?
I have tried to create a similar StationXML file (see attached) and both conversions look OK. Which SC3 version have you used?
I'll provide the StationXML when I'm able to.
However, I think the problem is the output StationXML. If you export that inventory via fdsnws (StationXML), then the extra stage+gain is added.
(I closed the issue by mistake...)
I've tried it with both version 2017.124 and 2018.327.
However, I think the problem is the output StationXML. If you export that inventory via fdsnws (StationXML), then the extra stage+gain is added.
That is only a problem because the SC3 data is already wrong. The conversion from StationXML to SC3 XML introduced that extra stage. You can try the XML that I added above with the latest SC3 version and some older version, e.g. the one you are running on the server which converted your StationXML. The output should be different. SC3 XML to StationXML conversion cannot be fixed. The input (StationXML -> SC3) must updated and then it should work.
Ok, thanks for the clarification! I'll try it when I'm back at the office.
Hi @gempa-jabe You were right, the problem was on the conversion StationXML -> SC3. With a newer version of SC3 (2018.327) it works well, and the output of FDSNws in StationXML format doesn't have the doubled gain. Thanks!
If the Datalogger gain is different than 1 (i.e.: pre-amplifier), the conversion from SC3's inventory to FDSNXML duplicates that gain when adding the extra VOLTS to COUNTS stage.
It is likely due to this part: https://github.com/SeisComP3/seiscomp3/blob/master/src/trunk/apps/tools/inventory/fdsnxml2inv/convert2fdsnxml.cpp#L1030
For instance, if I have an input FDSNXML file with this response:
And I add it to SC3, and then get the inventory back in FDSNXML, I got this other response:
The most important issue is that the gain of 40 is duplicated.
Additionally, I don't understand why an extra stage is added. When the gain is 1, there are no relevant consequences, but it would be nice that the conversion FDSNXML -> SC3ML -> FDSNXML was transparent...