]> OzVa Git service - spaceweather/commitdiff
moved files
authorwill <greenwoodw50@gmail.com>
Sun, 19 May 2024 19:41:10 +0000 (20:41 +0100)
committerwill <greenwoodw50@gmail.com>
Sun, 19 May 2024 19:41:10 +0000 (20:41 +0100)
config/last
index.html [new file with mode: 0644]
spaceweather.py
transcript.html

index 0538977419562836a4ca064036324156d5561738..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100755 (executable)
@@ -1,7 +0,0 @@
-Welcome to space weather, issued by XMDV radio at Sun the 19 May 2024 at 00:30:17
-In the last 24 hours Solar activity returned to low levels. Region 3679 developed additional intermediate spots, and wasresponsible for the largest flare of the period, a C7.2 to 1 n flare at 18 to 0538 utc, as well as a few low level C-class flares. Region 3685 continued to show weak development in itsintermediate spots, but was far less active this period. Slight growthwas observed in Region 3674 and Region 3683 . Region 3683 popped off a C3.9 solar flux flare at 18 to 2016 utc, whileRegion 3674 remained inactive. The remaining regions were either stableor slightly decaying. Solar activity is expected to be low with M-class flares likely and a chance for an X-class flare on 19 to 21 may.
-In the last 24 hours The greater than 10 mega electron volt proton flux was slightly elevated, but wellbelow S1 levels. The 2 mega electron volt electron flux was at normal tomoderate levels. There is a slight chance for the greater than 10 mega electron volt protons reaching S1 levels on 19 to 21 may due to the flare potential of Region 3685. The greater than 2 mega electron volt electron flux is expected to remain at normal tomoderate levels, with a chance for high levels, through 21 may.
-In the last 24 hours Solar wind parameters gradually returned to near-background levels aseffects from the 14 may coronal mass ejection arrival relinquished. Total field decreasedfrom a peak of 17 nano tesla to near 6 nano tesla, Bz had a maximum southward deflectionto to 15 nano tesla but has since become positive, and solar wind speeds haveleveled off around 410 kilometers per second. Phi angle was mostly negative untilapproximately 18 to 1100 utc when it switched to a positive orientation. Solar wind parameters are expected to continue near background levelsearly on 19 may. By mid to late day, the solar wind environment isexpected to see the influences of the passing coronal mass ejection from 16 may. Additional enhancements are then expected on 20 may as the coronal mass ejection from 17May scrapes the Earths magnetosphere. Conditions should begin to returnto a more relaxed state on 21 may as coronal mass ejection influence tapers off.
-In the last 24 hours Geomagnetic activity was quiet to unsettled, with an isolated activeperiod. Quiet to unsettled levels are expected early on 19 may before increasingto mostly active conditions, with a chance for isolated G1 levels, asthe coronal mass ejection from 16 may is expected to graze the Earth. By 20 May, unsettledto active levels are expected, with G1 storming likely, due toglancing coronal mass ejection effects from the 17 may coronal mass ejection. Mid to late day on 21 May, active levels are expected to decrease to mostly unsettled levels as coronal mass ejectioneffects gradually diminish.
-This has been space weather, issued by XMDV radio at Sun the 19 May 2024 at 00:30:17
-Space weather was created by William Greenwood with material from the N O double A
\ No newline at end of file
diff --git a/index.html b/index.html
new file mode 100644 (file)
index 0000000..253f459
--- /dev/null
@@ -0,0 +1,70 @@
+<html>
+    <head>
+        <title>Spaceweather</title>
+        <link rel="stylesheet" type="text/css" href="./styles.css" />
+    </head>
+    <body>
+        <div class="header">
+            <h1><em>OzVa <span style="font-family: serif;">XMDV</span></em> &#10038;&#9730;</h1>
+            <p><em>Broadcating the esoteric</em></p>
+        </div>
+        <div class="navigation">
+            <p><a href="http://www.ozva.co.uk">Home</a></p>
+            <p><a href="http://xmdv.ozva.co.uk">XMDV</a></p>
+            <p><a href="https://www.swpc.noaa.gov">SWPC</a></p>
+            <p><a href="http://utter-radio.co.uk/spaceweather/">Utter</a></p>
+        </div>
+        <div class="body">
+            <h1>Spaceweather</h1>
+            <h2>Welcome to Spaceweather, a daily report of current heliospheric conditions, issued by XMDV Radio and supported by Ozone-Value Holdings.</h2>
+            <audio controls src="./spaceweather.wav"></audio>
+            <p>Transcript (<a href="./transcript.html">HTML</a>/<a href="./config/last">plaintext</a>)<p>
+            <p>
+                Spaceweather is generated daily, at time-of-issue of the NOAA's description of the latest solar activity [1]. This data is processed into the spoken portion of the report. In addition, the ambient backing of the report is generated using NOAA X-Ray data from two different satellite sources.
+            </p>
+            <p>
+                This was created by XMDV Radio, supported by OvZa (Ozone-Value Holdings), in recognition of the importance of Spaceweather public services, as well as the great work of the NOAA.
+            </p>
+
+            <div class="left">
+                <h3>Sonification</h3>
+                <p>
+                    Sonification is the process of turning data from an arbitrary source, into sound.
+                </p>
+                <p>
+                    Pictured on the right are the generated graphs used in the production of the reports backing. With the <span style="color: blue;">blue line</span> representing the continuous processed X-ray data and the <span style="color: red;">red line</span> representing the stepped data. The Y-axis represents the number of semitones away from middle-A (440Hz).
+                </p>
+                <p>
+                    This is fed into a SoX-based synthisizer which creates the sound based on some pre-defined parameters. This is an aestetic feature.
+                </p>
+                <h3>Pre-processing</h3>
+                <p>
+                    Due to the nature of the raw signal, extensive pre-processing is performed to get it within opperable limits. The signal is normalized to its mean, before the deviation of the data is reduced via transfer function (below).
+                </p>
+                <p class="maths">
+                    <span>y</span> = arctan( <span>x</span> / 2<span><sup>w</sup></span> )
+                </p>
+                <p>
+                    Where <span class="maths"><span>w</span></span> is the weighting of that particular source, pre-defined based on its stability.
+                </p>
+                <p>
+                    This helps to reduce the significant spikes in the data that would make this particular set both difficult and boring to listen to. Even still, the sources are not weighted as to remove the spikes completely, but instead amplify the "noise" below the signal.
+                </p>
+            </div>
+            <div class="right">
+                <div class='figures'><img src='media/graph.0.png' alt='graph'><img src='media/graph.1.png' alt='graph'><img src='media/graph.2.png' alt='graph'><img src='media/graph.3.png' alt='graph'></div>
+            </div>
+
+            <h2>References</h2>
+            <p id="ref1"><em>[1] Forecast Discussion. <a href="https://services.swpc.noaa.gov/text/discussion.txt">https://services.swpc.noaa.gov/text/discussion.txt</a></em></p>
+            <p id='ref2'><em>[2] Local-maxima of flux reading (6 hours, satellite 18). <a href='https://services.swpc.noaa.gov/json/goes/secondary/xrays-6-hour.json'>https://services.swpc.noaa.gov/json/goes/secondary/xrays-6-hour.json</a></em></p><p id='ref3'><em>[3] Local-minima of flux reading (7 days, satellite 16). <a href='https://services.swpc.noaa.gov/json/goes/primary/xrays-7-day.json'>https://services.swpc.noaa.gov/json/goes/primary/xrays-7-day.json</a></em></p><p id='ref4'><em>[4] Local-minima of electron correction (7 days, satellite 18). <a href='https://services.swpc.noaa.gov/json/goes/secondary/xrays-7-day.json'>https://services.swpc.noaa.gov/json/goes/secondary/xrays-7-day.json</a></em></p><p id='ref5'><em>[5] Local-maxima of electron correction (7 days, satellite 16). <a href='https://services.swpc.noaa.gov/json/goes/primary/xrays-7-day.json'>https://services.swpc.noaa.gov/json/goes/primary/xrays-7-day.json</a></em></p>
+        </div>
+        <div class="footer">
+            <p>
+                <b>Boston:</b> <em>"[...] we are working with the auroral current. How do you receive my writing?"</em><br>
+                <b>Portland:</b> <em>"Better than with our batteries on. – Current comes and goes gradually."</em>
+            </p>
+            <p>&copy; Ozone-Value Holdings 2024</p>
+        </div>
+    </body>
+</html>
index 531bc5f613f620243ae4eac505e15d65b155b243..e17c597b471410b08cd73bdf38c49633d558cbe7 100755 (executable)
@@ -198,14 +198,14 @@ with open("config/last", "r") as f:
 # quit if the transcript is the same as the last
 if last == text:
        print("no change!")
-       #quit()
+       quit()
 else:
        print("proceeding...")
 
 # write the raw transcript to a file
 with open("config/last", "w") as f: f.write(text)
 
-#generate the website
+# generate the website
 generate_html(transcript)
 
 # generate the vox
index 6a1ff87f85d147270202e83097f9d5de8cab570c..99ade9c0cefad1c104a259bc634183ca65ab085f 100644 (file)
@@ -1 +1 @@
-<html><head><link rel='stylesheet' type='text/css' href='./styles.css' /></head><body><div class='body'><p>Welcome to space weather, issued by XMDV radio at Sun the 19 May 2024 at 00:30:17</p><p>In the last 24 hours Solar activity returned to low levels. Region 3679 developed additional intermediate spots, and wasresponsible for the largest flare of the period, a C7.2 to 1 n flare at 18 to 0538 utc, as well as a few low level C-class flares. Region 3685 continued to show weak development in itsintermediate spots, but was far less active this period. Slight growthwas observed in Region 3674 and Region 3683 . Region 3683 popped off a C3.9 solar flux flare at 18 to 2016 utc, whileRegion 3674 remained inactive. The remaining regions were either stableor slightly decaying. Solar activity is expected to be low with M-class flares likely and a chance for an X-class flare on 19 to 21 may.</p><p>In the last 24 hours The greater than 10 mega electron volt proton flux was slightly elevated, but wellbelow S1 levels. The 2 mega electron volt electron flux was at normal tomoderate levels. There is a slight chance for the greater than 10 mega electron volt protons reaching S1 levels on 19 to 21 may due to the flare potential of Region 3685. The greater than 2 mega electron volt electron flux is expected to remain at normal tomoderate levels, with a chance for high levels, through 21 may.</p><p>In the last 24 hours Solar wind parameters gradually returned to near-background levels aseffects from the 14 may coronal mass ejection arrival relinquished. Total field decreasedfrom a peak of 17 nano tesla to near 6 nano tesla, Bz had a maximum southward deflectionto to 15 nano tesla but has since become positive, and solar wind speeds haveleveled off around 410 kilometers per second. Phi angle was mostly negative untilapproximately 18 to 1100 utc when it switched to a positive orientation. Solar wind parameters are expected to continue near background levelsearly on 19 may. By mid to late day, the solar wind environment isexpected to see the influences of the passing coronal mass ejection from 16 may. Additional enhancements are then expected on 20 may as the coronal mass ejection from 17May scrapes the Earths magnetosphere. Conditions should begin to returnto a more relaxed state on 21 may as coronal mass ejection influence tapers off.</p><p>In the last 24 hours Geomagnetic activity was quiet to unsettled, with an isolated activeperiod. Quiet to unsettled levels are expected early on 19 may before increasingto mostly active conditions, with a chance for isolated G1 levels, asthe coronal mass ejection from 16 may is expected to graze the Earth. By 20 May, unsettledto active levels are expected, with G1 storming likely, due toglancing coronal mass ejection effects from the 17 may coronal mass ejection. Mid to late day on 21 May, active levels are expected to decrease to mostly unsettled levels as coronal mass ejectioneffects gradually diminish.</p><p>This has been space weather, issued by XMDV radio at Sun the 19 May 2024 at 00:30:17</p><p>Space weather was created by William Greenwood with material from the N O double A</p></div></body></html>
\ No newline at end of file
+<html><head><link rel='stylesheet' type='text/css' href='./styles.css' /></head><body><div class='body'><p>Welcome to space weather, issued by XMDV radio at Sun the 19 May 2024 at 12:30:07</p><p>In the last 24 hours Solar activity was at low levels. The largest flare of the period was aC4.1 at 18 to 1938 utc from Region 3685 . Slightgrowth was observed in the intermediate spots of Region 3685 and theleader spots of Region 3683 . New Region 3687 was numbered. Other activity included an approximate 60 degreefilament eruption centered near S40E15 that began after 18 to 2125 utc. Anassociated coronal mass ejection was observed off the S limb in SOHO to LASCO C2 imagery at 18 to 2257 utc. Modelling is in progress to determine if there is anEarth-directed component. Solar activity is expected to be low with a chance for M-class flares and a slight chance for an X-class flare on 19 to 21 may.</p><p>In the last 24 hours The greater than 10 mega electron volt proton flux was slightly elevated, but wellbelow S1 levels. The 2 mega electron volt electron flux was at normal tomoderate levels. There is a slight chance for the greater than 10 mega electron volt protons reaching S1 levels on 19 to 21 may due to the flare potential of Region 3685. The greater than 2 mega electron volt electron flux is expected to remain at normal tomoderate levels, with a chanced for high levels, through 21 may.</p><p>In the last 24 hours Solar wind parameters were near nominal levels with solar wind speedranging from 358 to 449 kilometers per second. Total field ranged from 4 to 9 nano tesla while the Bzcomponent was between +2 to to 7 nano tesla. Phi angle was positive. By late on 19 May, the solar wind environment is expected to see theinfluences of the passing coronal mass ejection from 15 may. Additional enhancements arethen expected on 20 may from the coronal mass ejection that left the Sun on 17 may. coronal mass ejectioninfluences are expected to slowly diminish on 21 may.</p><p>In the last 24 hours The geomagnetic field was quiet to unsettled. Unsettled to active levels are expected late on 19 may due to potentialactivity from the 15 may coronal mass ejection. By 20 May, unsettled to active levels areexpected, with G1 storming likely, due to glancing coronal mass ejection effectsfrom the 17 may coronal mass ejection. Mid to late day on 21 May, active levels areexpected to decrease to mostly unsettled levels as coronal mass ejection effects graduallydiminish.</p><p>This has been space weather, issued by XMDV radio at Sun the 19 May 2024 at 12:30:07</p><p>Space weather was created by William Greenwood with material from the N O double A</p></div></body></html>
\ No newline at end of file