コード例 #1
0
ファイル: spectra.py プロジェクト: kajsamp/sunpy-0.4-paper
from sunpy.spectra.sources.callisto import CallistoSpectrogram
tstart, tend = "2011-06-07T06:00:00", "2011-06-07T07:45:00"
callisto = CallistoSpectrogram.from_range("BIR", tstart, tend)
callisto_nobg = callisto.subtract_bg()
callisto_nobg.peek(vmin=0)
コード例 #2
0
import numpy as np
import matplotlib.pyplot as plt
from sunpy import lightcurve as lc
from sunpy.spectra.sources.callisto import CallistoSpectrogram
import scipy
smooth = scipy.ndimage.filters.uniform_filter 
from sunpy.time import parse_time
basetime=parse_time('1979-01-01 00:00:00')

t_start ='2015-11-04 13:00'
t_end ='2015-11-04 14:30'
start_time_day = '2015-11-04 00:00'


g = lc.GOESLightCurve.create(t_start, t_end)
gl = g.data['xrsb']


d = CallistoSpectrogram.from_range('BIR', t_start, t_end)
c = d.subtract_bg()

y = (parse_time(start_time_day) - basetime).total_seconds() + d.t_init
new_time = d.time_axis + y

callisto_times = []
for i in range(len(new_time)):
	callisto_times.append(parse_time(new_time[i]))


c.plot(cmap = 'viridis')