Air or vacuum wavelengths.
gully
February 29, 2015


In [1]:
import Starfish

In [4]:
Starfish.data["instruments"]


Out[4]:
['IGRINS_K']

In [6]:
from Starfish.grid_tools import HDF5Creator

In [9]:
instrument = Starfish.grid_tools.IGRINS_K()

In [11]:
print(instrument)


Instrument Name: IGRINS_K, FWHM: 7.5, oversampling: 4.0, wl_range: (18500, 25200)

In [13]:
Starfish.data["grid_name"]


Out[13]:
'PHOENIX'

In [14]:
mygrid = Starfish.grid_tools.PHOENIXGridInterfaceNoAlpha()


---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
/Users/gully/GitHub/Starfish/Starfish/grid_tools.py in __init__(self, air, norm, wl_range, base)
    202         try:
--> 203             wl_file = fits.open(self.base + "WAVE_PHOENIX-ACES-AGSS-COND-2011.fits")
    204         except OSError:

//anaconda/lib/python3.4/site-packages/astropy/io/fits/hdu/hdulist.py in fitsopen(name, mode, memmap, save_backup, cache, **kwargs)
    137 
--> 138     return HDUList.fromfile(name, mode, memmap, save_backup, cache, **kwargs)
    139 

//anaconda/lib/python3.4/site-packages/astropy/io/fits/hdu/hdulist.py in fromfile(cls, fileobj, mode, memmap, save_backup, cache, **kwargs)
    279         return cls._readfrom(fileobj=fileobj, mode=mode, memmap=memmap,
--> 280                              save_backup=save_backup, cache=cache, **kwargs)
    281 

//anaconda/lib/python3.4/site-packages/astropy/io/fits/hdu/hdulist.py in _readfrom(cls, fileobj, data, mode, memmap, save_backup, cache, **kwargs)
    800                 # instantiate a FITS file object (ffo)
--> 801                 ffo = _File(fileobj, mode=mode, memmap=memmap, cache=cache)
    802             else:

//anaconda/lib/python3.4/site-packages/astropy/io/fits/file.py in __init__(self, fileobj, mode, memmap, clobber, cache)
    140         elif isinstance(fileobj, string_types):
--> 141             self._open_filename(fileobj, mode, clobber)
    142         else:

//anaconda/lib/python3.4/site-packages/astropy/io/fits/file.py in _open_filename(self, filename, mode, clobber)
    492         else:
--> 493             self._file = fileobj_open(self.name, PYFITS_MODES[mode])
    494 

//anaconda/lib/python3.4/site-packages/astropy/io/fits/util.py in fileobj_open(filename, mode)
    400 
--> 401         return open(filename, mode, buffering=0)
    402 elif six.PY2:

FileNotFoundError: [Errno 2] No such file or directory: '/home/gully/GitHub/Starfish/libraries/raw/PHOENIX/WAVE_PHOENIX-ACES-AGSS-COND-2011.fits'

During handling of the above exception, another exception occurred:

GridError                                 Traceback (most recent call last)
<ipython-input-14-8f67e767265d> in <module>()
----> 1 mygrid = Starfish.grid_tools.PHOENIXGridInterfaceNoAlpha()

/Users/gully/GitHub/Starfish/Starfish/grid_tools.py in __init__(self, air, norm, wl_range, base)
    283 
    284             # Initialize according to the regular PHOENIX values
--> 285             super().__init__(air=air, norm=norm, wl_range=wl_range, base=base)
    286 
    287             # Now override parameters to exclude alpha

/Users/gully/GitHub/Starfish/Starfish/grid_tools.py in __init__(self, air, norm, wl_range, base)
    203             wl_file = fits.open(self.base + "WAVE_PHOENIX-ACES-AGSS-COND-2011.fits")
    204         except OSError:
--> 205             raise C.GridError("Wavelength file improperly specified.")
    206 
    207         w_full = wl_file[0].data

GridError: Wavelength file improperly specified.

In [ ]: