Path: csiph.com!feeder.erje.net!1.eu.feeder.erje.net!news.unit0.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Karl Ratzsch Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Ephemerides data Date: Tue, 22 Aug 2017 03:59:24 +0200 Organization: solani.org Lines: 34 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: solani.org 1503367171 14470 eJwNxscBwEAIA7CZKDawTij7j5DTSzAKO5yg43ApK96jrMvIEHS1rCp9CqGhY7dTbU793n4MFhDt (22 Aug 2017 01:59:31 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 22 Aug 2017 01:59:31 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 In-Reply-To: Content-Language: de-DE-1901 X-NNTP-Posting-Host: eJwNyMkRACEMA7CWyGEnWw5jSP8lsHoKQaMqCSYGU7m6eVZdlbYJAfeI0oTj/NMfJfB2zuyyBw07ENo= Cancel-Lock: sha1:BYjheFNREYtE37uPFU/IWG9gMhM= X-User-ID: eJwFwQkBwDAIA0BL5QtEzgrFv4TdhUHQ6Qh4bKzot0DXaxZ8UIbLcplUxCSfknGszPIdXv4L5BAR Xref: csiph.com comp.graphics.apps.gnuplot:3719 Am 22.08.2017 um 00:01 schrieb robertvanpass@gmail.com: > On Monday, August 21, 2017 at 4:59:16 AM UTC+2, Karl Ratzsch wrote: >>> $dat << EOD >>> 8/20/2017;12:00:00 UTC+1.0;10h 35m 50.60s;+03° 47' 15.38"; >>> 8/21/2017;12:00:00 UTC+1.0;10h 33m 13.63s;+04° 02' 23.70"; >>> 8/22/2017;12:00:00 UTC+1.0;10h 30m 23.99s;+04° 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 >> > However I still have an issue: > > 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 expression was expected" > gnuplot automatically converts strings to numberic variables in expressions (i.e. if you do math like *1.0) if possible. Can you make an example like the one above that I can directly copy into gnuplot to reproduce your problem?