File:SN 2002cx Lightcurve.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 720 × 540 pixels. Other resolutions: 320 × 240 pixels | 640 × 480 pixels | 1,024 × 768 pixels | 1,280 × 960 pixels | 2,560 × 1,920 pixels.
Original file (SVG file, nominally 720 × 540 pixels, file size: 162 KB)
File information
Structured data
Captions
Contents
Summary
[edit]DescriptionSN 2002cx Lightcurve.svg |
English: Supernova 2002cx light curve. It contains B-band (blue points), V-band (green points), R-band (yellow points), and I-band (red points) from two telescopes, KAIT (circles) and Nickel (Triangles). |
Date | |
Source | Own work using: data 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. |
Author | Falcorian |
SVG development InfoField | This plot was created with Matplotlib. |
Source code InfoField | Python codeimport pylab as pl
# Define files
file = 'ltcv.dat'
outplot = 'SN_2002cx_Lightcurve.svg'
## Will store out data for ploting
points = {'KAIT':{},'Nickel':{}}
## Column ---> Band
map = {0:'B',1:'V',2:'R',3:'I'}
## Color for each band on the plot
colors = {0:'b',1:'g',2:'y',3:'r'}
## Marker shape for each telescope on the plot
types = {'KAIT':'o','Nickel':'^'}
# Open data
f = open(file)
cont = f.read()
f.close()
cont = cont.splitlines()
# Prase the file
for line in cont:
if line.startswith('#'): continue
sline = line.split(',')
date = float(sline[0])
tele = sline[-1]
pdic = points[tele]
for i in range(4):
mag = sline[i+1].strip()
if mag:
smag = mag.split('(')
fmag = float(smag[0])
emag = float('.'+smag[1].strip(')'))
print fmag,emag
try:
pdic[i].append((date,fmag,emag))
except KeyError:
pdic[i] = [(date,fmag,emag)]
# Make a plot
for tele in points:
for key in points[tele]:
band = map[key]
dates = [tup[0] for tup in points[tele][key]]
fmags = [tup[1] for tup in points[tele][key]]
emags = [tup[2] for tup in points[tele][key]]
color = colors[key]
type = types[tele]
pl.errorbar(dates,fmags,yerr=emags,fmt='%s%s'%(type,color),ms=5.,label='%s %s'%(tele,map[key]))
ax = pl.axis()
pl.axis((ax[0],ax[1],ax[3],ax[2]))
pl.xlabel('JD - 2450000')
pl.ylabel('Magnitude')
pl.title('SN 2002cx Lightcurve')
pl.legend(loc=0,numpoints=1,columnspacing=1.)
pl.savefig(outplot)
DataSaved as ltcv.dat
# JD − B V R I Tel.
#2450000 (mag) (mag) (mag) (mag)
2411.78,17.81(03),17.81(03),17.70(02),17.70(04),Nickel
2412.78,17.77(03),17.73(04),17.64(04),17.53(04),KAIT
2413.81,17.69(04), , , ,KAIT
2419.81,17.85(12),17.45(10),17.53(07),17.30(08),KAIT
2421.77,18.06(05),17.69(04),17.48(03),17.39(04),KAIT
2422.75,18.10(09),17.70(03),17.50(03),17.40(03),KAIT
2423.73,18.22(03),17.80(03),17.47(02),17.42(03),KAIT
2424.75,18.35(04),17.82(03),17.53(03),17.38(03),KAIT
2425.76,18.47(06),17.87(06),17.53(05),17.42(06),KAIT
2426.72,18.61(04),17.88(03),17.54(04),17.37(03),KAIT
2427.72,18.68(05),17.99(04),17.54(03),17.40(04),KAIT
2428.76,18.83(04),18.05(04),17.61(03),17.46(04),KAIT
2429.75,18.73(10),18.16(03),17.61(03),17.45(03),KAIT
2430.71,19.02(04),18.20(04),17.69(03),17.50(03),KAIT
2431.78,19.12(04),18.27(04),17.71(04),17.44(04),KAIT
2432.69,19.24(07),18.34(03),17.73(03),17.46(05),KAIT
2433.74,19.45(08),18.36(04),17.80(04),17.40(05),Nickel
2434.70, ,18.31(07),17.75(07),17.52(07),KAIT
2435.70, ,18.45(06),17.84(04),17.67(05),KAIT
2435.75,19.49(08),18.46(03),17.89(03),17.47(06),Nickel
2436.75, ,18.52(05),17.89(05),17.60(04),KAIT
2436.77,19.61(08),18.54(03),17.93(02),17.64(03),Nickel
2437.69, ,18.57(04),17.99(03),17.64(06),KAIT
2437.70,19.65(06),18.59(02),17.97(02),17.71(02),Nickel
2438.73, ,18.66(05), ,17.66(05),KAIT
2440.69, ,18.75(06),18.07(04),17.82(05),KAIT
2442.69, ,18.81(04),18.11(04),17.84(05),KAIT
2443.73, , ,18.19(06),17.90(06),KAIT
2447.70, , ,18.30(08),17.97(08),KAIT
2451.74, ,18.94(07),18.40(08),18.06(05),KAIT
2455.70, ,19.11(05),18.45(04),18.16(04),KAIT
2456.70, , ,18.45(07),18.17(04),KAIT
2465.70,20.36(21),19.33(07),18.75(06),18.27(08),Nickel
|
Licensing
[edit]
I, the copyright holder of this work, hereby publish it under the following licenses: This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International, 3.0 Unported, 2.5 Generic, 2.0 Generic and 1.0 Generic license.
You may select the license of your choice. |
|||
|
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 19:21, 21 June 2009 | 720 × 540 (162 KB) | Falcorian (talk | contribs) | Lightcurve --> light curve | |
19:02, 21 June 2009 | 720 × 540 (162 KB) | Falcorian (talk | contribs) | {{Information |Description={{en|1=Supernova 2002cx light curve. It contains B-band (blue points), V-band (green points), R-band (yellow points), and I-band (red points) from two telescopes, KAIT (circles) and Nickel (Triangles). Data is from: {{cite journ |
You cannot overwrite this file.
File usage on Commons
The following page uses this file:
File usage on other wikis
The following other wikis use this file:
- Usage on en.wikipedia.org
- Usage on ja.wikipedia.org
- Usage on nl.wikipedia.org
- Usage on pl.wikipedia.org
- Usage on sv.wikipedia.org
- Usage on uk.wikipedia.org