Can I recover the wfdisc table from waveform data alone?
From BRTT
Question:
I accidentally deleted the wfdisc file. Can I recover the waveforms?
Answer:
If you still have the waveform files and are using the default output datatype (miniseed), you should be able to recreate a wfdisc file using miniseed2db(1) The idea would be to run miniseed2db against every waveform file, with a command something like this:
miniseed2db `find 200? -type f` recoverdb
However, the new wfdisc table recoverdb.wfdisc will not have certain fields like calib, calper, segtype and chanid filled in. You need to fill these in yourself, probably using dbset(1) and dbfixchanids(1).
If you used cdorb2db(1) to write out the waveform files, you could run recover_cdorb2db_wfdisc against all waveform files:
recover_cdorb2db_wfdisc 2011/*/* recoverdb
Jennifer Eakins 16:39, 1 June 2011 (CDT)