# 5.8.1.6. eqcorrscan.utils.mag_calc.pick_db

`eqcorrscan.utils.mag_calc.``pick_db`(indir, outdir, calpath, startdate, enddate, wavepath=None)

  Wrapper to loop through a SEISAN database and make a lot of magnitude picks.

  Parameters: | indir (str) Path to the seisan REA directory (not including yyyy/mm) outdir (str) Path to output seisan REA directory (not including yyyy/mm) calpath (str) Path to the directory containing the response files startdate (datetime.datetime) Date to start looking for S-files enddate (datetime.datetime) Date to stop looking for S-files wavepath (str) Path to the seisan WAV directory (not including yyyy/mm)