Skip to content

Trouble making a map with SOLIS Full-disk Magnetograms #3207

@amunozj

Description

@amunozj

Description

Hi guys! thank you so much for all the work that you do! I'm using SunPy to load a bunch of different full-disk magnetograms and I have been able to make it work in all cases (HMI, MDI, Mt. Wilson, KPVT, SOT) But not for SOLIS. In all cases, the issues I had to tackle were Header fields that were named differently or were missing, but for this one I'm at a loss.

Expected behavior

I'm making the maps by loading the fits files, select the layer/cube slice and header and assembling the maps using the map function. I expect it to work like the other instruments

Actual behavior

I get the error:

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-42-1bfc7962b6e7> in <module>
     11 
     12 # Assemble Sunpy map
---> 13 SOLISmap = sunpy.map.Map(dataSOLIS, SOLIS_fits[0].header)
     14 
     15 # # # Fix instrument rotation

C:\ProgramData\Anaconda3\lib\site-packages\sunpy\map\map_factory.py in __call__(self, composite, sequence, silence_errors, *args, **kwargs)
    297 
    298         if not len(new_maps):
--> 299             raise RuntimeError('No maps loaded')
    300 
    301         # If the list is meant to be a sequence, instantiate a map sequence

RuntimeError: No maps loaded

Steps to Reproduce

Here is what I'm doing for SOLIS:

from astropy.io import fits
import sunpy.map

SOLISfile = 'Data/SOLIS/k4v93110401t161025_FDISK.fts.gz'

SOLIS_fits = fits.open(SOLISfile, cache=False)
SOLIS_fits.verify('fix')
dataSOLIS = SOLIS_fits[0].data[6,:,:]
SOLISmap = sunpy.map.Map(dataSOLIS, SOLIS_fits[0].header)

The file can be donwloaded here:

https://solis.nso.edu/pubkeep/v93/201104/k4v93110401/k4v93110401t161025_FDISK.fts.gz

System Details

  • SunPy Version: 1.0.1
  • Python Version: 3.7
  • OS information: Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions