File:Sweden ufo data sub year 1952-1968 2.png
Summary
| Description |
English: Ufo data of Sweden 1952-1968 |
| Date | |
| Source | Own work |
| Author |
ChatGPT 3 and 4o; Source of data: |
Python3 source code
PNG development
Source code
Python code
import numpy as np
import matplotlib.pyplot as plt
from scipy import interpolate
times1=np.array([1952.02196382429,
1952.08785529716,
1952.15374677003,
1952.26356589147,
1952.35142118863,
1952.35142118863,
1952.46124031008,
1952.50516795866,
1952.68087855297,
1952.68087855297,
1952.76873385013,
1952.81266149871,
1952.92248062016,
1953.01033591731,
1953.0322997416,
1953.12015503876,
1953.20801033592,
1953.2519379845,
1953.33979328165,
1953.38372093023,
1953.42764857881,
1953.49354005168,
1953.58139534884,
1953.71317829457,
1953.73514211886,
1953.77906976744,
1953.82299741602,
1953.8669250646,
1953.99870801034,
1954.04263565892,
1954.21834625323,
1954.21834625323,
1954.26227390181,
1954.41602067183,
1954.41602067183,
1954.52583979328,
1954.59173126615,
1954.65762273902,
1954.74547803618,
1954.83333333333,
1954.92118863049,
1954.98708010336,
1955.09689922481,
1955.16279069767,
1955.29457364341,
1955.33850129199,
1955.38242894057,
1955.42635658915,
1955.53617571059,
1955.55813953488,
1955.66795865633,
1955.75581395349,
1955.75581395349,
1955.88759689923,
1955.97545219638,
1956.04134366925,
1956.12919896641,
1956.21705426357,
1956.28294573643,
1956.3488372093,
1956.37080103359,
1956.48062015504,
1956.59043927649,
1956.74418604651,
1956.7661498708,
1956.94186046512,
1956.9857881137,
1957.07364341085,
1957.13953488372,
1957.22739018088,
1957.29328165375,
1957.33720930233,
1957.44702842377,
1957.71059431525,
1957.66666666667,
1957.71059431525,
1957.82041343669,
1957.93023255814,
1957.95219638243,
1957.99612403101,
1958.0180878553,
1958.14987080103,
1958.23772609819,
1958.30361757106,
1958.36950904393,
1958.45736434109,
1958.47932816537,
1958.54521963824,
1958.65503875969,
1958.80878552972,
1958.85271317829,
1958.89664082687,
1959.00645994832,
1959.0503875969,
1959.13824289406,
1959.20413436693,
1959.29198966408,
1959.33591731266,
1959.44573643411,
1959.4677002584,
1959.70930232558,
1959.77519379845,
1959.84108527132,
1959.95090439276,
1959.99483204134,
1960.12661498708,
1960.21447028424,
1960.28036175711,
1960.41214470284,
1960.47803617571,
1960.65374677003,
1960.67571059432,
1960.76356589147,
1960.87338501292,
1960.9173126615,
1961.02713178295,
1961.09302325581,
1961.29069767442,
1961.37855297158,
1961.48837209302,
1961.51033591731,
1961.62015503876,
1961.62015503876,
1961.70801033592,
1961.77390180879,
1961.92764857881,
1962.08139534884,
1962.14728682171,
1962.23514211886,
1962.30103359173,
1962.38888888889,
1962.52067183463,
1962.60852713178,
1962.69638242894,
1962.76227390181,
1962.80620155039,
1962.89405684755,
1962.9819121447,
1963.13565891473,
1963.22351421189,
1963.37726098191,
1963.42118863049,
1963.53100775194,
1963.59689922481,
1963.68475452196,
1963.77260981912,
1963.86046511628,
1963.97028423773,
1964.01421188631,
1964.12403100775,
1964.21188630491,
1964.34366925065,
1964.34366925065,
1964.45348837209,
1964.58527131783,
1964.6511627907,
1964.73901808786,
1964.82687338501,
1965.02454780362,
1965.13436692506,
1965.22222222222,
1965.33204134367,
1965.37596899225,
1965.4857881137,
1965.31007751938,
1965.52971576227,
1965.57364341085,
1965.77131782946,
1965.85917312662,
1965.96899224806,
1966.12273901809,
1966.18863049096,
1966.25452196382,
1966.27648578811,
1966.38630490956,
1966.49612403101,
1966.60594315245,
1966.62790697674,
1966.73772609819,
1966.89147286822,
1966.9354005168,
1967.06718346253,
1966.97932816537,
1967.04521963824,
1967.26485788114,
1967.41860465116,
1967.37467700258,
1967.63824289406,
1967.5503875969,
1967.70413436693,
1967.79198966408,
1967.83591731266,
1967.92377260982,
1968.05555555556,
1968.07751937985,
1968.20930232558,
1968.29715762274,
1968.34108527132,
1968.47286821705,
1968.97803617571])
cases1=np.array([
4.10810810810811,
2.05405405405405,
1.08108108108108,
2,
1.08108108108108,
9.13513513513514,
12.0540540540541,
5.02702702702702,
16.2162162162162,
1.94594594594594,
3.94594594594594,
0.972972972972972,
2.91891891891892,
0.972972972972972,
1.94594594594594,
0.972972972972972,
1.78378378378378,
-0.162162162162165,
-0.162162162162165,
0.810810810810811,
1.89189189189189,
0.810810810810811,
1.83783783783784,
1.83783783783784,
8.91891891891892,
3.62162162162162,
1.83783783783784,
-0.27027027027027,
-0.27027027027027,
1.78378378378378,
14.1081081081081,
11.0810810810811,
2.86486486486486,
12.0540540540541,
1.78378378378378,
3.78378378378378,
3.78378378378378,
1.72972972972973,
5.78378378378378,
0.756756756756758,
0.756756756756758,
3.78378378378378,
0.702702702702702,
1.67567567567567,
1.72972972972973,
2.7027027027027,
2.81081081081081,
4.86486486486487,
4.81081081081081,
1.78378378378378,
2.59459459459459,
2.7027027027027,
-0.324324324324323,
2.7027027027027,
1.72972972972973,
0.54054054054054,
-0.432432432432435,
1.62162162162162,
0.594594594594593,
0.594594594594593,
4.86486486486487,
0.702702702702702,
0.702702702702702,
14.1621621621622,
-0.432432432432435,
-0.486486486486488,
0.594594594594593,
0.594594594594593,
2.64864864864865,
-0.486486486486488,
2.75675675675676,
3.78378378378378,
2.59459459459459,
17.1891891891892,
5.83783783783784,
3.62162162162162,
1.56756756756757,
1.51351351351351,
3.45945945945946,
4.75675675675675,
-0.54054054054054,
1.51351351351351,
2.7027027027027,
4.81081081081081,
2.75675675675676,
2.59459459459459,
1.67567567567567,
2.64864864864865,
1.72972972972973,
12.2702702702703,
8.05405405405405,
1.56756756756757,
3.72972972972973,
1.62162162162162,
1.67567567567567,
7.94594594594595,
5.94594594594595,
0.594594594594593,
4.91891891891892,
-0.54054054054054,
-0.594594594594597,
3.83783783783784,
0.594594594594593,
2.81081081081081,
0.594594594594593,
0.594594594594593,
1.62162162162162,
-0.432432432432435,
0.594594594594593,
-0.324324324324323,
-0.432432432432435,
3.83783783783784,
0.54054054054054,
2.75675675675676,
-0.54054054054054,
1.72972972972973,
2.75675675675676,
2.97297297297297,
6,
1.78378378378378,
3.89189189189189,
4.05405405405405,
14.3783783783784,
2.64864864864865,
-0.594594594594597,
1.62162162162162,
1.62162162162162,
-0.486486486486488,
0.594594594594593,
6.97297297297297,
2.75675675675676,
0.594594594594593,
1.67567567567567,
2.64864864864865,
2.75675675675676,
4.97297297297297,
1.72972972972973,
-0.54054054054054,
0.594594594594593,
1.78378378378378,
0.702702702702702,
3.78378378378378,
-0.486486486486488,
6.05405405405405,
1.56756756756757,
-0.648648648648649,
2.81081081081081,
-0.486486486486488,
5.02702702702702,
1.72972972972973,
1.72972972972973,
0.648648648648646,
4.91891891891892,
2.86486486486486,
2.75675675675676,
-0.594594594594597,
1.67567567567567,
0.810810810810811,
0.756756756756758,
1.78378378378378,
0.648648648648646,
-0.486486486486488,
1.78378378378378,
1.94594594594594,
13.4054054054054,
5.08108108108108,
11.1891891891892,
-0.54054054054054,
0.594594594594593,
-0.324324324324323,
-0.324324324324323,
0.702702702702702,
1.78378378378378,
2.86486486486486,
4.86486486486487,
4.97297297297297,
1.83783783783784,
2.81081081081081,
0.702702702702702,
0.648648648648646,
1.67567567567567,
0.756756756756758,
10.2162162162162,
12.2702702702703,
-0.486486486486488,
-0.378378378378382,
0.702702702702702,
-0.324324324324323,
7.02702702702703,
2.97297297297297,
4.91891891891892,
3.89189189189189,
2.81081081081081,
0.864864864864863,
3.94594594594594,
2.86486486486486,
1.78378378378378,
2.81081081081081,
-0.324324324324323,
-0.27027027027027])
cases1=np.where(cases1<0,0, cases1)
cases1=np.round(cases1, 0)
# Sort times1 and reorder cases1 accordingly to ensure times are in increasing order
sorted_indices = np.argsort(times1)
times1_sorted = times1[sorted_indices]
cases1_sorted = cases1[sorted_indices]
# Remove duplicate times and corresponding cases
unique_times, unique_indices = np.unique(times1_sorted, return_index=True)
unique_cases = cases1_sorted[unique_indices]
# Use smooth interpolation to create a continuous curve that passes through all points
# Using PCHIP (Piecewise Cubic Hermite Interpolating Polynomial) for smooth but precise interpolation
interpolator = interpolate.PchipInterpolator(unique_times, unique_cases)
# Create fine-grained time values for smoother plotting
times_fine = np.linspace(unique_times.min(), unique_times.max(), 1000)
cases_fine = interpolator(times_fine)
# Plot the data with labels and adjust the x-axis to show full years
plt.figure(figsize=(10, 6))
plt.plot(times_fine, cases_fine, label='Interpolated Cases', color='b', lw=3)
#plt.scatter(unique_times, unique_cases, color='r', zorder=5, label='Original Data')
# Set axis labels
plt.xlabel("Years")
plt.ylabel("Cases")
# Set x-axis ticks to show only integer years
plt.xticks(np.arange(int(unique_times.min()), int(unique_times.max()) + 1, 1))
# Set title
plt.title("Sweden FOA UFO Data")
# Add grid and legend
plt.grid(True)
plt.legend()
# Display the plot
plt.show()
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
| This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
| The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
|
This file is in the public domain because it is the work of a computer algorithm or artificial intelligence and does not contain sufficient human authorship to support a copyright claim.
The United Kingdom (legislation) and Hong Kong (legislation) provide a limited term of copyright protection for computer-generated works of 50 years from creation. |
| Legal disclaimer Most image-generating AI models were trained using works that are protected by copyright. In some cases, such models can output content with major copyrightable image elements which are identical to or derivative of the original training data, making these outputs derivative works. Accordingly, there is a risk that AI-generated media uploaded on Commons may violate the rights of the authors of the original works. See Commons:AI-generated media for additional details. |