Demo entry 6783806

sdrsplit script

   

Submitted by anonymous on Feb 22, 2019 at 08:33
Language: Bash. Code size: 392 Bytes.

#!/bin/bash

if [ "$#" -lt 3 ]; then
  echo "Usage: $0 Year Month Day"
  exit
fi

YEAR=$1
MONTH=$2
DAY=$3

IMON=`echo ${MONTH} | awk '{printf "%02d", $1}'`
IDAY=`echo ${DAY} | awk '{printf "%02d", $1}'`

## Q330 Download Miniseed file
## JU-JNUA1_4-20190217001548

for MFILE in `ls -1x JU-JNUA1_4-${YEAR}${IMON}${IDAY}*`
do
    echo ${MFILE}
    sdrsplit -D ${MFILE}
done

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).