{"id":9464,"date":"2021-04-19T08:32:45","date_gmt":"2021-04-19T12:32:45","guid":{"rendered":"https:\/\/starlightcascade.ca\/blog\/?p=9464"},"modified":"2021-04-19T08:43:31","modified_gmt":"2021-04-19T12:43:31","slug":"supersid-update","status":"publish","type":"post","link":"https:\/\/starlightcascade.ca\/blog\/2021\/04\/supersid-update\/","title":{"rendered":"Supersid update"},"content":{"rendered":"<p><a href=\"https:\/\/starlightcascade.ca\/blog\/wp-content\/uploads\/2019\/04\/IMG_20190411_063557-800.jpg\"><img decoding=\"async\" src=\"https:\/\/starlightcascade.ca\/blog\/wp-content\/uploads\/2019\/04\/IMG_20190411_063557-800.jpg\" alt=\"\" height=\"200\" class=\"alignright size-full wp-image-8628\" \/><\/a><\/p>\n<p>The <a href=\"\/supersid\/\">SuperSID radio telescope system<\/a> has had some coding updates.  As of yesterday:<br \/>\nThe supersidpi data logger copies its data every hour to the file server<br \/>\nevery hour the file server strips the header from the CSV file, changes commas to spaces and then takes that data file and feeds it to gnuplot, which creates a graph.  After that annotations are made to add a date and timestamp when generated, a few static indicators as to when sunrise sunset are generally, and then uploads it to this website.<br \/>\nwe&#8217;ll post the code  a little later down.<br \/>\n<a href=\"https:\/\/starlightcascade.ca\/supersid\/NAA.png\"><img decoding=\"async\" src=\"https:\/\/starlightcascade.ca\/supersid\/NAA.png\">NAA.png<\/A><br \/>\nAt the moment we are only monitoring the NAA station in Maine, mainly as we always get a good signal from it, less so the station in Washington state and north dakota.<br \/>\nIn the future we hope to add NOAA data points as well, ie when *they* detect SIDs.<br \/>\nOn our own <a href=\"\/supersid\/\">Supersid page<\/a> we have our live data as well as that of the \tUniversity Louisville SID system, which we use as a reference.<\/p>\n<p>This is running on a linux fedora server<br \/>\n#\/bin\/bash<br \/>\n#2021april18<br \/>\n#process supsidpi data hourly<br \/>\n#new data arrives on the hour :00, do this on the :01<br \/>\ncd \/web\/supersid\/data<br \/>\ndatestamp=`date +%Y%m%d`<br \/>\ntimestamp=`date +%H%M%S`<br \/>\nyear=`date +%Y`<br \/>\nmonth=`date +%m`<br \/>\ndate=`date +%d`<br \/>\necho datestamp=$datestamp<br \/>\ndatafile=$datestamp&#8217;Ch0.csv&#8217;<br \/>\ncp $datafile ..\/data1.csv<br \/>\ncd \/web\/supersid<br \/>\necho remove headers<br \/>\ntail -n +15 data1.csv > data2.csv<br \/>\necho replace commas<br \/>\n# need to clean up the data, remove the comma, replace with space<br \/>\nsed -i &#8216;s\/,\/ \/&#8217; data2.csv<br \/>\ncp data2.csv supersidpidata.csv<br \/>\necho makeagraph!<br \/>\ngnuplot gnu2<br \/>\necho start png annotation 1600&#215;1200<br \/>\nconvert -fill blue  -pointsize 36 \\<br \/>\n-draw &#8216;text 230,130 &#8220;Sudden Ionospheric Disturbance Radio Telescope System&#8221;&#8216; \\<br \/>\n-draw &#8216;text  140,160 &#8220;~sunset  night   ~midnight          ~sunrise     daytime                  ~sunset &#8220;&#8216; \\<br \/>\n-draw &#8216;text 400,200 &#8220;Generated: &#8216;$datestamp&#8217;   &#8216;$timestamp&#8217;  Eastern Time&#8221; &#8216; \\<br \/>\nNAA.png NAA1.png<br \/>\ncp NAA1.png NAA.png<br \/>\necho archive NAA<br \/>\ncp NAA.png archive\/NAA-$datestamp.png<\/p>\n<p>the code in the gnuplot file gnu2 looks like this<\/p>\n<p>#!\/usr\/bin\/gnuplot<br \/>\nreset<br \/>\nset terminal png<br \/>\nset terminal pngcairo enhanced font &#8220;arial,12&#8221; fontscale 1.6 size 1600,1200<br \/>\nset output &#8216;NAA.png&#8217;<br \/>\nset xdata time<br \/>\nset timefmt &#8220;%Y-%m-%d %H:%M:%S&#8221;<br \/>\nset format x &#8220;%H:%M&#8221;<br \/>\nset xlabel &#8220;time UTC&#8221;<br \/>\nset ylabel &#8220;relative intensity&#8221;<br \/>\nset yrange [0:6000000]<br \/>\nset title &#8220;SuperSIDpi Starlight Cascade Gardens &#038; Observatory-Yarker Ontario Canada Lat 44.37N Long 76.77W &#8221;<br \/>\nset key reverse Left outside<br \/>\nset grid<br \/>\nset style data linespoints<br \/>\nplot &#8220;supersidpidata.csv&#8221; using 1:3 title &#8220;NAA 24.0KHz&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The SuperSID radio telescope system has had some coding updates. As of yesterday: The supersidpi data logger copies its data every hour to the file server every hour the file server strips the header from the CSV file, changes commas to spaces and then takes that data file and feeds it to gnuplot, which creates [&hellip;]<\/p>\n","protected":false},"author":494,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,15],"tags":[],"class_list":["post-9464","post","type-post","status-publish","format-standard","hentry","category-astronomy","category-tech"],"_links":{"self":[{"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/posts\/9464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/users\/494"}],"replies":[{"embeddable":true,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/comments?post=9464"}],"version-history":[{"count":6,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/posts\/9464\/revisions"}],"predecessor-version":[{"id":9470,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/posts\/9464\/revisions\/9470"}],"wp:attachment":[{"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/media?parent=9464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/categories?post=9464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/tags?post=9464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}