Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lipkowski.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, SPF_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 X-Spam-DCC: EATSERVER: mailn 1166; Body=3 Fuz1=3 Fuz2=3 Received: from post.thorcom.com (post.thorcom.com [195.171.43.25]) by lipkowski.org (8.14.4/8.14.4/Debian-8+deb8u2) with ESMTP id v78J2QUj025548 for ; Tue, 8 Aug 2017 21:02:27 +0200 Received: from majordom by post.thorcom.com with local (Exim 4.14) id 1df9gJ-0001XW-2s for rs_out_1@blacksheep.org; Tue, 08 Aug 2017 19:56:43 +0100 Received: from [195.171.43.32] (helo=relay1.thorcom.net) by post.thorcom.com with esmtp (Exim 4.14) id 1df9gI-0001XN-De for rsgb_lf_group@blacksheep.org; Tue, 08 Aug 2017 19:56:42 +0100 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 1df9gE-0004GU-Oy for rsgb_lf_group@blacksheep.org; Tue, 08 Aug 2017 19:56:41 +0100 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:From:References:To:Subject:Sender:Reply-To: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=XH2sELx9YBYtpFn7qiqCrTFnshNtyAGsPyCAqQM4j1I=; b=E5C3CuKIV3hVH7wVxXHRicWqxu BF/IvHkqJsXNfZEeKSTe3TeXDOGNLPVoPWUzCaG3XDkvYRnh1vN++qiQLyW7O+xen92KgLyFVTb8m IjoYlS/r2jpOK5YfPvE5ji2bGxdpAIqcpp6th5YgdkzudbX1704ow8d0+eXr78NzdiUQ=; Received: from i-194-106-52-83.freedom2surf.net ([194.106.52.83]:49532 helo=pn.abelian.org) by porthos.netcom.co.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1df9gD-00054U-6y for rsgb_lf_group@blacksheep.org; Tue, 08 Aug 2017 19:56:37 +0100 Received: from [127.0.0.1] (localhost [127.0.0.1]) by pn.abelian.org (Postfix) with ESMTP id 8CBB14000E9 for ; Tue, 8 Aug 2017 18:56:36 +0000 (UTC) To: rsgb_lf_group@blacksheep.org References: <15db2643c6f-5f13-23c2@webprd-m101.mail.aol.com> <5986259C.8020409@posteo.de> <59864218.1030605@posteo.de> <75b1b001-f17e-35b0-bcb4-6535fe67fc38@sky.com> <59886FDE.20509@posteo.de> <983eafc2-82df-d307-07d8-0070762b99bb@sky.com> From: Paul Nicholson Message-ID: Date: Tue, 8 Aug 2017 18:56:36 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <983eafc2-82df-d307-07d8-0070762b99bb@sky.com> 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-Scan-Signature: 8556389a5ea14fbbf9b9d801ab70c592 Subject: Re: LF: vlfrx tools question Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 X-Scanned-By: MIMEDefang 2.75 Status: RO X-Status: X-Keywords: X-UID: 12348 Stefan wrote: > http://abelian.org/vlf/tmp/170211b.png > How can one produce such a plot from data files produced by > vtwrite? Can you advice a command line? First use vtread to extract the signal, vtfilter and vtblank to clean it up, and vtnspec to produce the spectrum. vtread -T2017-02-11_13:30,+7h /raw | # Extract signal vtmix -c 0.866/-20,-0.5/-35,-0.65 | # Antenna mixing coefficients vtfilter -h bp,f=8270,w=3000 | # Band limit before blanker vtblank -a 25 -d0 -t100 | # Daytime blanker settings vtnspec -f 8270 -r 39.68e-6 -w 0.02 > /tmp/170211b.dat You get 4-columns of ASCII numeric data, column 1 is the frequency and column 4 the bin RMS amplitude. I use gnuplot for plotting, because it's easy to script and is something of an industry standard. You have to mess about a bit to get the different colours... I found filed away the command I used for that 170211b plot: echo " set terminal png large size 1000,340 background 0x303030 set title 'Todmorden 2017-02-11 13:30 to 20:30 UT in 40uHz' textcolor rgb 0xffffff unset key set border lw 2 lc rgb 0x202020 set xtics textcolor rgb 0xffffff font 'Fixed,8' set ytics textcolor rgb 0xffffff font 'Fixed,8' set style data lines set grid set xrange [-0.01:0.01] set xlabel 'Frequency, Hz - 8270' textcolor rgb 0xffffff set ylabel 'Flux density, fT' textcolor rgb 0xffffff set label 'DF6NM' at 0.0027,0.11 textcolor rgb 0xffffff set label 'DJ8WX' at -0.0051,0.10 textcolor rgb 0xffffff set label 'DK7FC' at 0.0052,0.35 textcolor rgb 0xffffff plot '/tmp/170211b.dat' using (\$1 - 8270):(\$4 * 1275000/2/0.9) lc 2 " | gnuplot > /pan/vlf/web/tmp/170211b.png The field numbers such as $1 and $4 need the dollar to be escaped with backslash otherwise the shell picks them up. The magic number 1275000/2/0.9 is the coefficient to convert stream amplitude to fT. For anything but the simplest plot, I put the gnuplot commands into a script to echo them into gnuplot. You always have to run it several times to get it right so the script saves work. Long ago gave up finding names for plots and scripts, there are so many, now I just number them with the date and it makes them quite easy to track down in the filesystem, even decades later - so long as I know the approximate date. The above script was named plot170211b. Well worth having some sort of system - you end up after several years with many thousands of data files, scripts and images. -- Paul Nicholson --