X-Received: by 10.31.14.135 with SMTP id 129mr544223vko.24.1503413860937; Tue, 22 Aug 2017 07:57:40 -0700 (PDT) X-Received: by 10.36.6.7 with SMTP id 7mr18638itv.5.1503413860783; Tue, 22 Aug 2017 07:57:40 -0700 (PDT) Path: csiph.com!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!e2no1726577qta.1!news-out.google.com!c139ni2962itb.0!nntp.google.com!x187no741822ite.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Tue, 22 Aug 2017 07:57:40 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=81.246.21.212; posting-account=6Yi6UAoAAAAPa9I7jpXT9nwJvAd0_-hC NNTP-Posting-Host: 81.246.21.212 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <09265b97-7ca8-4f2d-baa2-7e9ff9abf37e@googlegroups.com> Subject: Re: Ephemerides data From: robertvanpass@gmail.com Injection-Date: Tue, 22 Aug 2017 14:57:40 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Lines: 90 Xref: csiph.com comp.graphics.apps.gnuplot:3722 On Tuesday, August 22, 2017 at 3:59:32 AM UTC+2, Karl Ratzsch wrote: > > On Monday, August 21, 2017 at 4:59:16 AM UTC+2, Karl Ratzsch wrote: >=20 > >>> $dat << EOD > >>> 8/20/2017;12:00:00 UTC+1.0;10h 35m 50.60s;+03=C2=B0 47' 15.38"; > >>> 8/21/2017;12:00:00 UTC+1.0;10h 33m 13.63s;+04=C2=B0 02' 23.70"; > >>> 8/22/2017;12:00:00 UTC+1.0;10h 30m 23.99s;+04=C2=B0 20' 34.64"; > >>> EOD > >>> > >> set dataf sep "; " # the backslash was nonsense > >> set table > >> > >> plot $dat us \ > >> (timecolumn(1,"%d/%m/%Y")):\ > >> (timecolumn(2,"%H:%M:%S")+strcol(3)[4:8]*3600):\ > >> (timecolumn(4,"%Hh %Mm %Ss")/3600):\ > >> (($7+$8/60+$9/3600)) w table > >> >=20 >=20 > > However I still have an issue: > >=20 > > When I add the code for the timezone specifier ( +strcol(3)[4:8]*3600) = ) > > I get the errormessage "Non-numeric string found where a numeric expres= sion was expected" > >=20 >=20 > gnuplot automatically converts strings to numberic variables in > expressions (i.e. if you do math like *1.0) if possible. >=20 > Can you make an example like the one above that I can directly copy > into gnuplot to reproduce your problem? No problem: 1. Putting these lines in a CSV file will give the errormessage: Date;Time;Local R.A.;Local Dec.; 8/20/2017;12:00:00 UTC+1.0;10h 35m 50.60s;+03=C2=B0 47' 15.38"; 8/21/2017;12:00:00 UTC+1.0;10h 33m 13.63s;+04=C2=B0 02' 23.70"; 8/22/2017;12:00:00 UTC+1.0;10h 30m 23.99s;+04=C2=B0 20' 34.64"; 2. I saw another strange behaviour: when values go negative they show strange jumps. sample data below: Date;Time;Local R.A.;Local Dec.; 9/15/2016;12:00:00 UTC+1.0;12h 06m 27.95s;+00=C2=B0 29' 21.10"; 9/16/2016;12:00:00 UTC+1.0;12h 07m 15.28s;+00=C2=B0 24' 12.97"; 9/17/2016;12:00:00 UTC+1.0;12h 08m 02.66s;+00=C2=B0 19' 04.67"; 9/18/2016;12:00:00 UTC+1.0;12h 08m 50.08s;+00=C2=B0 13' 56.25"; 9/19/2016;12:00:00 UTC+1.0;12h 09m 37.55s;+00=C2=B0 08' 47.73"; 9/20/2016;12:00:00 UTC+1.0;12h 10m 25.06s;+00=C2=B0 03' 39.15"; 9/21/2016;12:00:00 UTC+1.0;12h 11m 12.60s;-00=C2=B0 01' 29.46"; 9/22/2016;12:00:00 UTC+1.0;12h 12m 00.17s;-00=C2=B0 06' 38.07"; 9/23/2016;12:00:00 UTC+1.0;12h 12m 47.76s;-00=C2=B0 11' 46.64"; 9/24/2016;12:00:00 UTC+1.0;12h 13m 35.38s;-00=C2=B0 16' 55.14"; 9/25/2016;12:00:00 UTC+1.0;12h 14m 23.01s;-00=C2=B0 22' 03.55"; 9/26/2016;12:00:00 UTC+1.0;12h 15m 10.65s;-00=C2=B0 27' 11.81"; 9/27/2016;12:00:00 UTC+1.0;12h 15m 58.31s;-00=C2=B0 32' 19.91"; 9/28/2016;12:00:00 UTC+1.0;12h 16m 45.96s;-00=C2=B0 37' 27.81"; 9/29/2016;12:00:00 UTC+1.0;12h 17m 33.62s;-00=C2=B0 42' 35.48"; 9/30/2016;12:00:00 UTC+1.0;12h 18m 21.27s;-00=C2=B0 47' 42.88"; 10/1/2016;12:00:00 UTC+1.0;12h 19m 08.92s;-00=C2=B0 52' 49.97"; 10/2/2016;12:00:00 UTC+1.0;12h 19m 56.55s;-00=C2=B0 57' 56.74"; 10/3/2016;12:00:00 UTC+1.0;12h 20m 44.16s;-01=C2=B0 03' 03.13"; 10/4/2016;12:00:00 UTC+1.0;12h 21m 31.75s;-01=C2=B0 08' 09.13"; 10/5/2016;12:00:00 UTC+1.0;12h 22m 19.31s;-01=C2=B0 13' 14.69"; 10/6/2016;12:00:00 UTC+1.0;12h 23m 06.84s;-01=C2=B0 18' 19.78"; 10/7/2016;12:00:00 UTC+1.0;12h 23m 54.34s;-01=C2=B0 23' 24.38"; 10/8/2016;12:00:00 UTC+1.0;12h 24m 41.80s;-01=C2=B0 28' 28.43"; 10/9/2016;12:00:00 UTC+1.0;12h 25m 29.21s;-01=C2=B0 33' 31.92"; 10/10/2016;12:00:00 UTC+1.0;12h 26m 16.58s;-01=C2=B0 38' 34.80"; 10/11/2016;12:00:00 UTC+1.0;12h 27m 03.89s;-01=C2=B0 43' 37.05"; 10/12/2016;12:00:00 UTC+1.0;12h 27m 51.14s;-01=C2=B0 48' 38.62"; 10/13/2016;12:00:00 UTC+1.0;12h 28m 38.33s;-01=C2=B0 53' 39.49"; 10/14/2016;12:00:00 UTC+1.0;12h 29m 25.45s;-01=C2=B0 58' 39.62"; 10/15/2016;12:00:00 UTC+1.0;12h 30m 12.50s;-02=C2=B0 03' 38.98"; 10/16/2016;12:00:00 UTC+1.0;12h 30m 59.48s;-02=C2=B0 08' 37.53"; 10/17/2016;12:00:00 UTC+1.0;12h 31m 46.37s;-02=C2=B0 13' 35.23"; 10/18/2016;12:00:00 UTC+1.0;12h 32m 33.18s;-02=C2=B0 18' 32.06"; 10/19/2016;12:00:00 UTC+1.0;12h 33m 19.90s;-02=C2=B0 23' 27.98"; 10/20/2016;12:00:00 UTC+1.0;12h 34m 06.52s;-02=C2=B0 28' 22.95"; 10/21/2016;12:00:00 UTC+1.0;12h 34m 53.04s;-02=C2=B0 33' 16.94"; 10/22/2016;12:00:00 UTC+1.0;12h 35m 39.45s;-02=C2=B0 38' 09.91"; 10/23/2016;12:00:00 UTC+1.0;12h 36m 25.76s;-02=C2=B0 43' 01.84"; Thanks for your help.