This is not from a "graded assignment" I have trimmed the mean data and finally I need to calcuate and plot the residuals.  So the trimmed mean (minus) the flux data. The final plot should look "dumbell" in shape (see attached plot). This is the code so far. mean_ccf = np.mean(fluxs, axis=0) # New figure for the mean plot fig_mean, ax_mean = plt.subplots(figsize=(7, 7)) # Mean data plot ax_mean.plot(lams[0], mean_ccf, linewidth=1) ax_mean.set_xlim(15,35) # Set labels and title for the mean plot ax_mean.set_xlabel('RV [km/s]') ax_mean.set_ylabel('') ax_mean.set_title('Mean CCF') plt.show() # Calculate residuals #fluxs = np.array(fluxs)   check whether I need this line (maybe not) residuals = fluxs - mean_ccf  # I have replaced "fluxs" with "mask" - i get an empty plot?" # Residuals data plot fig_res, ax_res=plt.subplots(figsize=(7, 7)) for i in range(len(lams)):     ax_res.plot(lams[i], residuals[i], linewidth=1)      # Set labels and title for the residuals plot ax_res.set_xlabel('RV [km/s]') ax_res.set_ylabel('') ax_res.set_title('CCF Residuals') plt.show()

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

This is not from a "graded assignment"

I have trimmed the mean data and finally I need to calcuate and plot the residuals.  So the trimmed mean (minus) the flux data.

The final plot should look "dumbell" in shape (see attached plot).

This is the code so far.

mean_ccf = np.mean(fluxs, axis=0)

# New figure for the mean plot
fig_mean, ax_mean = plt.subplots(figsize=(7, 7))

# Mean data plot
ax_mean.plot(lams[0], mean_ccf, linewidth=1)
ax_mean.set_xlim(15,35)

# Set labels and title for the mean plot
ax_mean.set_xlabel('RV [km/s]')
ax_mean.set_ylabel('')
ax_mean.set_title('Mean CCF')
plt.show()

# Calculate residuals
#fluxs = np.array(fluxs)   check whether I need this line (maybe not)
residuals = fluxs - mean_ccf  # I have replaced "fluxs" with "mask" - i get an empty plot?"

# Residuals data plot
fig_res, ax_res=plt.subplots(figsize=(7, 7))

for i in range(len(lams)):
    ax_res.plot(lams[i], residuals[i], linewidth=1)

    
# Set labels and title for the residuals plot
ax_res.set_xlabel('RV [km/s]')
ax_res.set_ylabel('')
ax_res.set_title('CCF Residuals')
plt.show()

30
35
40
45
50
MATI AR R2021 pondomin un
Transcribed Image Text:30 35 40 45 50 MATI AR R2021 pondomin un
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Analysis of Performance Measurement
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education