NuSTAR pysolar API
- nustar_pysolar.map.make_sunpy(evtdata, hdr, exp_time=0, on_time=0, norm_map=False, shevt_xy=<Quantity [0., 0.] arcsec>, ssw_legacy=False)
Make a sunpy map based on the NuSTAR data.
- Parameters:
evtdata (FITS data structure) – This should be an hdu.data structure from a NuSTAR FITS file.
hdr (FITS header containing the astrometric information) –
keywords (Optional) –
exp_time (The exposure time (i.e. livetime, not on-time) no units.) – If not given then taken from hdr
on_time (The on-time (i.e. dwell) no units.) – If not given then taken from hdr
norm_map (Normalise the map data by the exposure time (i.e. livetime),) – giving map in units of DN/s. Defaults to “False” and units of DN
shevt_xy (2 element array of x and y shift to apply to) – evtdata before making the map (does to nearest pixel), defaults to [0,0], so no shift
ssw_legacy (Using evt converted to S/C via older sswidl code,) – which might need to specify CUNIT1 and CUNIT2. Defaults to “False”
- Returns:
A sunpy map object
- Return type:
nustar_map
—