Answered step by step
Verified Expert Solution
Question
1 Approved Answer
need to write in python spyder In the on-line resources you will find a file called sunspots.txt, which contains the observed number of sunspots on
need to write in python spyder
In the on-line resources you will find a file called sunspots.txt, which contains the observed number of sunspots on the Sun for each month since January 1749. The file contains two columns of numbers, the first being the month and the second being the sunspot number. a) Write a program that reads in the data and makes a graph of sunspots as a function of time. b) Modify your program to display only the first 1000 data points on the graph. c) Modify your program further to calculate and plot the running average of the data, de- fined by yk+m, where r 5 in this case (and the yk are the sunspot numbers). Have the program plot both the original data and the running average on the same graph, again over the range covered by the first 1000 data points. In the on-line resources you will find a file called sunspots.txt, which contains the observed number of sunspots on the Sun for each month since January 1749. The file contains two columns of numbers, the first being the month and the second being the sunspot number. a) Write a program that reads in the data and makes a graph of sunspots as a function of time. b) Modify your program to display only the first 1000 data points on the graph. c) Modify your program further to calculate and plot the running average of the data, de- fined by yk+m, where r 5 in this case (and the yk are the sunspot numbers). Have the program plot both the original data and the running average on the same graph, again over the range covered by the first 1000 data pointsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started