Testing SunPy .genx Reader


In [13]:
import os

import numpy as np
from sunpy.io.special import read_genx
import astropy.units as u

In [2]:
aia_data = read_genx('/Users/willbarnes/Documents/Rice/Research/ssw/sdo/aia/response/aia_V6_all_fullinst.genx')

In [4]:
'A171_FULL' in aia_data.keys()


Out[4]:
True

In [5]:
channel171_data = aia_data['a171_full'.upper()]

In [9]:
channel171_data['geoarea']


---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-9-6a2ae91f8a7b> in <module>()
----> 1 channel171_data['geoarea']

KeyError: 'geoarea'

In [10]:
channel171_data['platescale'.upper()]


Out[10]:
8.461580394691914e-12

In [12]:
(0.6)**2/(4.25e10)


Out[12]:
8.470588235294118e-12

In [14]:
u.steradian


Out[14]:
$\mathrm{sr}$

In [15]:
u.pixel


Out[15]:
$\mathrm{pix}$

In [ ]: