קובץ:SN 2002cx Spectra.svg
תוכן הדף אינו נתמך בשפות אחרות.
מראה
מתוך ויקיפדיה, האנציקלופדיה החופשית
גודל התצוגה המקדימה הזאת מסוג PNG של קובץ ה־SVG הזה: 748 × 505 פיקסלים. רזולוציות אחרות: 320 × 216 פיקסלים | 640 × 432 פיקסלים | 1,024 × 691 פיקסלים | 1,280 × 864 פיקסלים | 2,560 × 1,728 פיקסלים.
לקובץ המקורי (קובץ SVG, הגודל המקורי: 748 × 505 פיקסלים, גודל הקובץ: 232 ק"ב)
זהו קובץ שמקורו במיזם ויקישיתוף. תיאורו בדף תיאור הקובץ המקורי (בעברית) מוצג למטה. |
תקציר
תיאורSN 2002cx Spectra.svg |
English: Supernova 2002cx Spectra. It contains four spectra, one taken 2002-05-17 (Blue), one taken 2002-05-20 (Green), one taken 2002-06-02 (yellow) and one taken 2002-06-06 (red). Flux is normalized so that the area under each spectrum is 1000. Spectra are offset from 0 by an integer in order to separate them. The key lists the date the spectrum was taken. Wavelength is in angstroms. Some of the 2002-05-17 spectrum is obscured by the key, but it is relatively featureless there.
Data is from: Li, Weidong; Filippenko, Alexei V.; Chornock, Ryan et al. (04/2003). "SN 2002cx: The Most Peculiar Known Type Ia Supernova". Publications of the Astronomical Society of the Pacific 115 (806): 453-473. Chicago, Illinois: University of Chicago Press. DOI:10.1086/374200. Retrieved on 2009-06-19. |
||
תאריך יצירה | |||
מקור | נוצר על־ידי מעלה היצירה | ||
יוצר | Falcorian | ||
גרסאות אחרות | |||
SVGהתפתחות InfoField | Matplotlib עם נוצרה ה גרפיקה וקטורית | ||
קוד מקור InfoField | Python code# coding: utf-8
from numpy import array
import matplotlib.pyplot as plt
import seaborn as sns
# Set plotting style
sns.set_style("ticks")
# Constants
labels = ['May 17', 'May 20', 'June 02', 'June 06']
files = [
"sn2002cx-20020517-fast.flm",
"sn2002cx-20020520-fast.flm",
"sn2002cx-20020602-fast.flm",
"sn2002cx-20020606-fast.flm",
]
def normalize_area(wavelengths, fluxes):
"""Takes a binned spectrum as two arrays and returns the flux normalized to
an area of 1000.
Args:
wavelengths (array): The wavelengths of the center of each bin of the
spectrum.
fluxes (array): The flux value for each bin.
Returns:
array: The flux values normalized to have a total area of 1000.
"""
desired_area = 1000
bin_width = wavelengths[1] - wavelengths[0]
area = sum(fluxes) * bin_width
normed_fluxes = (fluxes / area) * desired_area
return normed_fluxes
# Work on spectra
fig, ax = plt.subplots(figsize=(10, 6))
for i, file in enumerate(files):
offset = len(files) - i
# Open data
with open(file) as f:
cont = f.read()
cont = cont.splitlines()
# Process data
wavelengths = []
fluxes = []
for line in cont:
if line.startswith('#'):
continue
sline = line.split()
wavelengths.append(float(sline[0]))
fluxes.append(float(sline[1]))
# Normalize the area of the flux
fluxes = array(fluxes)
fluxes = normalize_area(wavelengths, fluxes)
fluxes = fluxes + offset
# Plot
plot = plt.plot(wavelengths, fluxes, label=labels[i])
text_y = 4.4 - i
ax.text(6900, text_y, labels[i], fontsize=20, color=plot[0].get_color())
# Remove y ticks
plt.ylim(.5, 5)
plt.yticks([])
sns.despine()
plt.xlabel(r'Wavelength (Å)', fontsize=18)
plt.ylabel('Normalized Flux + Offset', fontsize=18)
plt.title('SN 2002cx Spectra', fontsize=22)
plt.savefig("SN_2002cx_Spectra.svg", bbox_inches="tight")
plt.show()
|
רישיון
אני, בעל זכויות היוצרים על היצירה הזאת, מפרסם אותה בזאת תחת הרישיונות הבאים: הקובץ הזה מתפרסם לפי תנאי רישיונות קריאייטיב קומונז ייחוס–שיתוף זהה 4.0 בין־לאומי, 3.0 לא מותאם, 2.5 כללי, 2.0 כללי ו־1.0 Generic.
הנכם מוזמנים לבחור את הרישיון הרצוי בעיניכם. |
|||
|
פריטים שמוצגים בקובץ הזה
מוצג
ערך כלשהו ללא פריט ויקינתונים
21 ביוני 2009
היסטוריית הקובץ
ניתן ללחוץ על תאריך/שעה כדי לראות את הקובץ כפי שנראה באותו זמן.
תאריך/שעה | תמונה ממוזערת | ממדים | משתמש | הערה | |
---|---|---|---|---|---|
נוכחית | 06:42, 5 באפריל 2018 | 505 × 748 (232 ק"ב) | Falcorian | Update plot to be more readable, more aesthetic. | |
01:52, 22 ביוני 2009 | 540 × 720 (262 ק"ב) | Falcorian | Remove phase, not exactly correct because supernova frame is not exactly our frame. | ||
01:42, 22 ביוני 2009 | 540 × 720 (265 ק"ב) | Falcorian | == Summary == {{Information |Description={{en|1=Supernova 2002cx Spectra. It contains four spectra, one taken 2002-05-17 (Blue), one taken 2002-05-20 (Green), one taken 2002-06-02 (yellow) and one taken 2002-06-06 (red). Data is from: {{cite journal|last= |
שימוש בקובץ
אין בוויקיפדיה דפים המשתמשים בקובץ זה.
שימוש גלובלי בקובץ
אתרי הוויקי השונים הבאים משתמשים בקובץ זה:
- שימוש באתר en.wikipedia.org
מטא־נתונים
קובץ זה מכיל מידע נוסף, שכנראה הגיע ממצלמה דיגיטלית או מסורק שבהם הקובץ נוצר או עבר דיגיטציה.
אם הקובץ שונה ממצבו הראשוני, כמה מהנתונים להלן עלולים שלא לשקף באופן מלא את הקובץ הנוכחי.
רוחב | 598pt |
---|---|
גובה | 404pt |