<reponame>mmiesch/CIMP<filename>PlotSnapshot.py<gh_stars>0

import matplotlib.pyplot as plt
import numpy as np
import sunpy.map
import sunpy.io

from CIMP import Snapshot as snap

#dir = '/home/mark.miesch/data/lasco_monthly/c3/2012_04/'
#file = dir+'03/32295364.fts'

dir = '/home/mark.miesch/data/anny/CME0/pos-30/dcmer_030W_bang_0000_fits/tB/'
file = dir+'frame_0050.fits'

x = snap.snapshot(file = file)

x.nrgf()

dmap = x.map()

dmap.plot()

#try:
#    dmap = sunpy.map.Map(data, header)
#    dmap.plot()
#except:
#    plt.imshow(data)
#
plt.show()
import matplotlib.pyplot as plt
import numpy as np
import sunpy.map
import sunpy.io

from CIMP import Snapshot as snap

#dir = '/home/mark.miesch/data/lasco_monthly/c3/2012_04/'
#file = dir+'03/32295364.fts'

dir = '/home/mark.miesch/data/anny/CME0/pos-30/dcmer_030W_bang_0000_fits/tB/'
file = dir+'frame_0050.fits'

x = snap.snapshot(file = file)

x.nrgf()

dmap = x.map()

dmap.plot()

#try:
#    dmap = sunpy.map.Map(data, header)
#    dmap.plot()
#except:
#    plt.imshow(data)
#
plt.show()
#dir = '/home/mark.miesch/data/lasco_monthly/c3/2012_04/' #file = dir+'03/32295364.fts' #try: #    dmap = sunpy.map.Map(data, header) #    dmap.plot() #except: #    plt.imshow(data) #