User Tools

Site Tools


operations:db_ncedc:dart_error

DART failed with error code 2 (due to sample rate change):

  • Ssh to dip as dcmgr.
  • Do a tail on the appropriate log file in /data/dart/logs/ to find out more about the error.
  • Create a temporary directory:
dip% mkdir /tmp/stephane/
  • Find all the faulty miniSEED files:
dip% cd /data/dart/data/NP/1846.NP/HNE..D/
dip% qmerge -n -m 1846.NP.HNE..D.2017.170
1846.NP.HNE. rate=200 (2017.170 00:00:00.0000 to 2017.171 00:00:01.7700) : 17280354 points, 0.0 msec correction, (min,max,max_step = 0.0,0.0,0.0 msec)
dip% qmerge -n -m 1846.NP.HNE..D.2017.171
1846.NP.HNE. rate=200 (2017.171 00:00:01.7700 to 2017.171 03:32:20.1800) : 2547682 points, 0.0 msec correction, (min,max,max_step = 0.0,0.0,0.0 msec)
1846.NP.HNE. rate=200 (2017.171 03:33:21.0000 to 2017.171 03:33:56.6700) : 7134 points, 0.0 msec correction, (min,max,max_step = 0.0,0.0,0.0 msec)
1846.NP.HNE. rate=250 (2017.171 03:34:00.9350 to 2017.171 03:34:04.5030) : 892 points, 0.0 msec correction, (min,max,max_step = 0.0,0.0,0.0 msec)
1846.NP.HNE. rate=200 (2017.171 03:34:05.3950 to 2017.171 03:34:17.1050) : 2342 points, 0.0 msec correction, (min,max,max_step = 0.0,0.0,0.0 msec)
1846.NP.HNE. rate=200 (2017.171 03:34:21.4600 to 2017.172 00:00:00.0000) : 14707708 points, 0.0 msec correction, (min,max,max_step = 0.0,0.0,0.0 msec)
dip% qmerge -n -m 1846.NP.HNE..D.2017.172
1846.NP.HNE. rate=200 (2017.172 00:00:00.0000 to 2017.173 00:00:01.3850) : 17280277 points, 0.0 msec correction, (min,max,max_step = 0.0,0.0,0.0 msec)
dip% qmerge -n -m 1846.NP.HNE..D.2017.173
1846.NP.HNE. rate=200 (2017.173 00:00:01.3850 to 2017.173 17:27:11.8800) : 12566099 points, 0.0 msec correction, (min,max,max_step = 0.0,0.0,0.0 msec)
dip% 

In this case, channels HNE, HNN & HNZ all have issues on day 2017.171.

  • Copy the faulty files in the temporary directory:
dip% cd /data/dart/data/NP/1846.NP/
dip% cp HNE..D/1846.NP.HNE..D.2017.171 /tmp/stephane
dip% cp HNN..D/1846.NP.HNN..D.2017.171 /tmp/stephane
dip% cp HNZ..D/1846.NP.HNZ..D.2017.171 /tmp/stephane
  • Edit the files with qedit:
  • One way to do it:
dip% qedit 1846.NP.HNE..D.2017.171 
qedit> help [Shows help]
qedit> disp [Shows current record]
qedit> find tear 10 [Find gap of 10 ticks (1/10,000 sec) - record sps is 200]
qedit> find tear 10 [record sps is 250]
qedit> back [Go back one record - record sps is 200]
qedit> for [Go forward one record - record sps is 250]
qedit> del [delete current record]
.... [delete records until current sps is 200]
qedit> file [Save and quit]

dip% qmerge -n -m 1846.NP.HNE..D.2017.171 
1846.NP.HNE. rate=200 (2017.171 00:00:01.7700 to 2017.171 03:32:20.1800) : 2547682 points, 0.0 msec correction, (min,max,max_step = 0.0,0.0,0.0 msec)
1846.NP.HNE. rate=200 (2017.171 03:33:21.0000 to 2017.171 03:33:56.6700) : 7134 points, 0.0 msec correction, (min,max,max_step = 0.0,0.0,0.0 msec)
1846.NP.HNE. rate=200 (2017.171 03:34:05.3950 to 2017.171 03:34:17.1050) : 2342 points, 0.0 msec correction, (min,max,max_step = 0.0,0.0,0.0 msec)
1846.NP.HNE. rate=200 (2017.171 03:34:21.4600 to 2017.172 00:00:00.0000) : 14707708 points, 0.0 msec correction, (min,max,max_step = 0.0,0.0,0.0 msec)
dip% 
  • Another way to do it:
dip% qedit 1846.NP.HNN..D.2017.171
qedit> find tear 10 [sps is 200]
qedit> find tear 10 [sps is 250]
qedit> find tear 10 [sps is 200 again]
qedit> from prev to cur del [Delete from previous record up 'to' current record - using 'thru' would include the current record. Also could use 'first' and 'last']
qedit> file

dip% qmerge -n -m 1846.NP.HNN..D.2017.171 
1846.NP.HNN. rate=200 (2017.171 00:00:01.4650 to 2017.171 03:32:20.7600) : 2547859 points, 0.0 msec correction, (min,max,max_step = 0.0,0.0,0.0 msec)
1846.NP.HNN. rate=200 (2017.171 03:33:21.0000 to 2017.171 03:33:56.6700) : 7134 points, 0.0 msec correction, (min,max,max_step = 0.0,0.0,0.0 msec)
1846.NP.HNN. rate=200 (2017.171 03:34:05.3850 to 2017.171 03:34:17.1050) : 2344 points, 0.0 msec correction, (min,max,max_step = 0.0,0.0,0.0 msec)
1846.NP.HNN. rate=200 (2017.171 03:34:21.4600 to 2017.172 00:00:01.7850) : 14708065 points, 0.0 msec correction, (min,max,max_step = 0.0,0.0,0.0 msec)
dip% 
  • Move the updated files back into the DART:
dip% mv -i 1846.NP.HNE..D.2017.171 $DARTHOME/data/NP/1846.NP/HNE..D/
dip% mv -i 1846.NP.HNN..D.2017.171 $DARTHOME/data/NP/1846.NP/HNN..D/
dip% mv -i 1846.NP.HNZ..D.2017.171 $DARTHOME/data/NP/1846.NP/HNZ..D/
  • Eventually, re-schedule an archive cron job or wait until the next day for the regular cron job to run.
operations/db_ncedc/dart_error.txt · Last modified: 2021/08/07 23:06 by stephane