Return-Path: Received: from post.thorcom.com (post.thorcom.com [195.171.43.25]) by klubnl.pl (8.14.4/8.14.4/Debian-8+deb8u2) with ESMTP id w2GFjlK7011017 for ; Fri, 16 Mar 2018 16:45:49 +0100 Received: from majordom by post.thorcom.com with local (Exim 4.14) id 1ewrUM-0001JW-9p for rs_out_1@blacksheep.org; Fri, 16 Mar 2018 15:41:50 +0000 Received: from [195.171.43.32] (helo=relay1.thorcom.net) by post.thorcom.com with esmtp (Exim 4.14) id 1ewrUL-0001JN-WA for rsgb_lf_group@blacksheep.org; Fri, 16 Mar 2018 15:41:49 +0000 Received: from porthos.netcom.co.uk ([217.72.171.73]) by relay1.thorcom.net with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1ewrUJ-0007I7-5w for rsgb_lf_group@blacksheep.org; Fri, 16 Mar 2018 15:41:48 +0000 X-DKIM-Result: Domain=abelian.org Result=Signature OK DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=abelian.org ; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:References:Reply-To:To:From:Subject:Sender:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=RNwwtmlUKW/D4amG/PkoSKavE01xbgH+0ZcuNJ6sY6w=; b=3WXW43K65+LhoT5s/WCsn7FOHw XbJXRiQhZxe7FDbLNx040L2+gt+YTvavEVpIFAwZF8JyPh/cFwMPdUgPlqT48EpDK3RmQQeOGpuSd 9mG6bHCpBN58oC1WDv1Sskp7wB+WiGpT8gvuW7SCds3MP2rtRdy3odgGMERl/akfFafc=; Received: from i-194-106-52-83.freedom2surf.net ([194.106.52.83]:40363 helo=pn.abelian.org) by porthos.netcom.co.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1ewrUI-0005GM-Sw for rsgb_lf_group@blacksheep.org; Fri, 16 Mar 2018 15:41:46 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by pn.abelian.org (Postfix) with ESMTP id 51CCF40070D for ; Fri, 16 Mar 2018 15:41:46 +0000 (UTC) From: Paul Nicholson To: rsgb_lf_group@blacksheep.org References: <1UQOBAX9Wi.5GpBpi86BpG@optiplex980-pc> <5A9335F5.609@posteo.de> <5AA810EF.5090804@posteo.de> <5AA99C63.3070906@posteo.de> <1a856f6b-8f8b-268b-b642-ff0ad5846557@abelian.org> <17dffb96-efc0-ce1b-700c-cd5d08cdf8e9@abelian.org> <5AABC818.4090703@posteo.de> <5AABD266.2050208@posteo.de> <384da502-913f-7eba-3504-3711983106c3@abelian.org> Message-ID: Date: Fri, 16 Mar 2018 15:41:46 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <384da502-913f-7eba-3504-3711983106c3@abelian.org> Content-Language: en-US X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - porthos.netcom.co.uk X-AntiAbuse: Original Domain - blacksheep.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - abelian.org X-Get-Message-Sender-Via: porthos.netcom.co.uk: authenticated_id: catchall@abelian.org X-Authenticated-Sender: porthos.netcom.co.uk: catchall@abelian.org X-Spam-Score: 0.0 (/) X-Spam-Report: Spam detection software, running on the system "relay1.thorcom.net", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Sorry I missed a chunk off the last email! Here's my solution to normalising and stacking: First a little change to the iqnorm script, to change the first field from a timestamp to a record number: [...] Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Scan-Signature: 0cdfd8d5ce44f1724c623c4ac9f44df6 Subject: Re: VLF: DK7FC > W1VD / K3SIW 8.27 kHz EbNaut - We don't give up! Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on post.thorcom.com X-Spam-Level: X-Spam-Status: No, hits=0.9 required=5.0 tests=FROM_ENDS_IN_NUMS autolearn=no version=2.63 X-SA-Exim-Scanned: Yes Sender: owner-rsgb_lf_group@blacksheep.org Precedence: bulk Reply-To: rsgb_lf_group@blacksheep.org X-Listname: rsgb_lf_group X-SA-Exim-Rcpt-To: rs_out_1@blacksheep.org X-SA-Exim-Scanned: No; SAEximRunCond expanded to false Sorry I missed a chunk off the last email! Here's my solution to normalising and stacking: First a little change to the iqnorm script, to change the first field from a timestamp to a record number: #!/usr/bin/awk -f BEGIN{ idx = 0; sum_square = 0 } { stamp[idx] = NR #### Changed to record number NR ival[idx] = $2 qval[idx] = $3 sum_square += $2*$2 + $3*$3 idx++ if( idx == 300) { rms = sqrt( sum_square/idx) for( i = 0; i < idx; i++) printf( "%s %.5e %.5e\n", stamp[i], ival[i]/rms, qval[i]/rms) idx = 0; sum_square = 0 } } I've saved this as iqnorm2 I have the .wav files in a sub-directory, eg: ls -l W1VD -rw-rw-rw- 1 root root 131200 2018-03-01 12:27 01.wav -rw-rw-rw- 1 root root 131200 2018-03-02 13:45 02.wav -rw-rw-rw- 1 root root 131200 2018-03-03 12:26 03.wav -rw-rw-rw- 1 root root 131200 2018-03-04 16:22 04.wav -rw-rw-rw- 1 root root 131200 2018-03-05 14:00 05.wav -rw-rw-rw- 1 root root 131200 2018-03-06 12:40 06.wav -rw-rw-rw- 1 root root 131200 2018-03-07 16:33 07.wav -rw-rw-rw- 1 root root 131200 2018-03-08 14:41 08.wav -rw-rw-rw- 1 root root 131200 2018-03-10 12:53 10.wav -rw-rw-rw- 1 root root 131200 2018-03-11 17:28 11.wav -rw-rw-rw- 1 root root 131200 2018-03-12 21:05 12.wav -rw-rw-rw- 1 root root 131200 2018-03-13 15:08 13.wav -rw-rw-rw- 1 root root 131200 2018-02-26 13:59 26.wav -rw-rw-rw- 1 root root 131200 2018-02-27 14:13 27.wav Now a script to normalise and stack. This uses the standard unix join command instead of vtjoin, since the files are already ASCII and all share the same record number, we can just join on column 1: #!/bin/bash dir=$1 rm -f stack.dat for file in $(ls $dir/*.wav) do vtwavex $file | vtraw -oa | ./iqnorm2 > temp.dat [ ! -f stack.dat ] && { # first file mv temp.dat stack.dat } || { # subsequent files join stack.dat temp.dat | awk '{ printf( "%s %.5e %.5e\n", $1, $2 + $4, $3 + $5) }' > new.dat mv new.dat stack.dat } done Save that as, say, normstack and make executable. Then I run ./normstack W1VD which produces a stack.dat, then cat stack.dat | ebnaut -dp16K21A -r0.4572395 -T 198.3 -F0.1 ... Similarly, ./normstack K3SIW cat stack.dat | ebnaut -dp16K21A -r0.771603 -T 216 -F0.0 ... This works because ebnaut ignores the timestamp (or whatever else) in column 1. -- Paul Nicholson --