-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from MJWeberg/main
Added eis_explore_raster GUI tool
- Loading branch information
Showing
14 changed files
with
1,452 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
eispac data | ||
============= | ||
|
||
This subpackage contains all of the fitting templates used by EISPAC as well | ||
as a few helper functions. | ||
|
||
.. automodapi:: eispac.data | ||
:no-heading: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ API Reference | |
:maxdepth: 1 | ||
|
||
eispac_core | ||
eispac_data | ||
eispac_download | ||
eispac_extern | ||
eispac_instr | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
from .ref import * | ||
from .templates import * | ||
from .test import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
""" | ||
Template files for fitting EIS spectra | ||
""" | ||
import os | ||
import pathlib | ||
import numpy as np | ||
|
||
import eispac | ||
|
||
__all__ = ['load_chianti_lines'] | ||
|
||
def load_chianti_lines(sort='wave'): | ||
"""Load reference list of spectral lines from CHIANTI | ||
Parameters | ||
---------- | ||
sort : str, optional | ||
Array column to sort by. Choose from "wave" or "id". Default is "Wave". | ||
Returns | ||
------- | ||
line_arr : numpy recarray | ||
Array containing spectral lines in both EIS wavebands as computed using | ||
CHIANTI (version 8?). The array has two columns, "wave" which contains | ||
the rest wavelength of the line (in units of [angstrom]) and "id" | ||
which gives the spectral line ID (e.g. Fe XII). | ||
""" | ||
|
||
ref_dir = pathlib.Path(os.path.dirname(eispac.__file__)) / "data" / "ref" | ||
line_id_filepath = ref_dir / 'eis_chianti_lookup_table.txt' | ||
line_arr = np.genfromtxt(line_id_filepath, delimiter=' ', | ||
dtype=['float', 'U8'], names=['wave', 'id']) | ||
if sort.lower().startswith('wave'): | ||
line_arr = np.sort(line_arr, order=['wave']) | ||
elif sort.lower().startswith('id'): | ||
line_arr = np.sort(line_arr, order=['id']) | ||
|
||
return line_arr |
Oops, something went wrong.