Question: * * * Second image shows the csv * * * The distance between two radio telescopes on the Earth's surface can be determined using
Second image shows the csv
The distance between two radio telescopes on the Earth's surface can be determined using a technique called "baseline interferometry."
Both telescopes look at the same very distant object in the sky typically quasars From the difference in the arrival times of the radio waves measured using very precise atomic clocks accurate to second in million years the distance between the two telescopes can be determined to millimetre accuracy.
Over the course of years, two radio telescopes, one in Westford, United States, and the other in Wettzell, Germany, performed baseline interferometry to determine the rate at which Europe is moving away from North America.
Write a program to fit a straight line to the data recording the change in distance between Westford, USA and Wettzell, Germany. From the fitted line, calculate the speed at which the two continents are moving in per year.
Specifically, your program should call various functions in the main function to:
Prompt the user for the filename with the prompt "Filename?
You may assume that your program will always be given a valid filename.
For testing, you can find a copy of one of the files here.
Plot the data from the file first and then the fitted line to generate a plot like the one shown below.
The plot should be titled "Change in distance between westford, USA and wettzell, Germany".
It should have x axis label "Time year and y axis label "Distance m
You can choose any colours that you like for your lines.
Use the default x and y ticks for this plot.
Print the following string: "The average speed the continents are moving is: speed to dp mathrmcmmathrmyear where speed to dp is in cmyear and formatted to decimal places. Hint: The speed is the slope of the fitted line. You will need to convert it from mathrmm year to mathrmcm year.
Reminders:
nploadtxt may be helpful.
Don't forget to include the call to your main function in the code that you submit.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
