# EISPAC - EIS Python Analysis Code
[![eispac CI status](https://github.com/USNavalResearchLaboratory/eispac/workflows/Tests/badge.svg)
](https://github.com/USNavalResearchLaboratory/eispac/actions/workflows/tests.yml)
[![Documentation Status](https://readthedocs.org/projects/eispac/badge/?version=latest)](https://eispac.readthedocs.io/en/latest/?badge=latest)
This software provides a set of tools for analyzing Hinode/EIS data within a
Python environment. The general approach is as follows:
1. Sets of level 1 HDF5 files are processed from the latest EIS level-0 fits files
and made available online by the NRL EIS team at <https://eis.nrl.navy.mil/>.
The HDF5 files come in pairs of "data" and "header" files which contain corrected
count rates, the calibration curve needed to convert counts into intensity,
and all of the associated metadata and pointing information.
2. This package provides Python classes and functions that can read these hdf5
files, perform all of the necessary calibration and pointing adjustments, and
create user-friendly python objects that can be manipulated as needed. Also
included are functions for fitting the intensity profiles using the same
template files and underlying methodology that is used in the IDL SolarSoft
environment.
## Getting Started
* Install using PIP (recommended) or by manually downloading this repo.
* Read through the [Online User's Guide](https://eispac.readthedocs.io/en/latest/guide/index.html)
([PDF download](https://eispac.readthedocs.io/_/downloads/en/latest/pdf/))
* [Quick Guide](https://eispac.readthedocs.io/en/latest/guide/00-quick.html):
A brief overview of the core EISPAC functions and objects.
* [Command Line Tools](https://eispac.readthedocs.io/en/latest/guide/02-scripts.html):
Description of some command line tools available for searching, downloading, and fitting
EIS observations.
* Need help? If you have any questions, bug reports, or feature requests; please open
an issue or email the development team.
* Want to contribute code? Please see the [Community Guidelines](https://eispac.readthedocs.io/en/latest/guidelines.html) section of the online documentation.
## Installation
### Using PIP
EISPAC is now available on PyPI. To install, just use the following command,
```
> python -m pip install eispac
```
To upgrade the package, please use:
```
> python -m pip install --upgrade eispac
```
pip should automatically install all package dependencies. If it does not, please
see the list of required packages below. Note: if you are using conda to manage your
Python packages, you may wish to install or update the dependencies manually first,
before installing eispac using pip (this is by no means required, but it can help
simplify updating packages).
### Manual Install
1. Download or clone "eispac" to a convenient location on your computer (it does not matter where).
```
> git clone https://github.com/USNavalResearchLaboratory/eispac.git
```
2. Open a terminal and navigate to the directory
3. To install:
```
> python -m pip install .
```
4. To upgrade:
```
> python -m pip install --upgrade .
```
The package should then be installed to the correct location for your current Python
environment. You can now import the package using `import eispac`.
### Required Packages
* python >= 3.8
* numpy >= 1.18
* scipy >= 1.4
* matplotlib >= 3.1
* h5py >= 2.9
* astropy >= 4.2.11
* sunpy >= 4.0
* ndcube >= 2.0.0
* parfive >= 1.5
* python-dateutil>=2.8
## Code Organization
There are currently three core directories:
1. **eispac**: main python code directory containing all of the programs required to
read level 1 HDF5 files and fit templates and fit spectra using mpfit.
Notable subdirectories:
* `../eispac/core/`: Main code directory. All functions here are loaded into the
top-level namespace (i.e. eispac.{function name})
* `../eispac/data/`: Contains fitting templates for specific spectral lines. These HDF5
files are direct conversions of the ".genx" files used by some IDL users. Also included
is an example EIS raster from 2021-03-06 at 06:44:44.
2. **scripts**: GUI and command line tools
2. **docs**: Source reStructuredText files used to build the online documentation
It should also be noted that `mpfit.py` was written by Mark Rivers and Sergey Kopsov and
is a direct Python port of the `mpfit.pro` IDL procedure written by Craig Markwardt. As such,
much of the documentation online for the IDL version of the code is still applicable to the
Python version (see also the [mpfit](https://eispac.readthedocs.io/en/latest/guide/07-mpfit_docs.html) section of our docs for more information).
## TODO list
Here, in no particular order, is a list of some things that may be added in future releases.
* Expanded documentation
* More unit and integration tests
* More detailed logging (with option to send all log information to a file)
* Scripts for quickly viewing data and spectra fits
* Scripts and routines for creating new fit templates
* Consider adding a subclass of `NDCubeSequence` which can hold multiple spectral windows
* Consider storing the output fit parameters in another `NDCube`
* Restructure project to use the Sunpy affiliated package template?
Raw data
{
"_id": null,
"home_page": "https://github.com/USNavalResearchLaboratory/eispac",
"name": "eispac",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "solar, sun, physics, spectroscopy, Hinode, EIS",
"author": "NRL EISPAC Development Team",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/00/4c/2a0ca7665a2e319fe7b97619dd3d15f92acfd29e1e4311866cf5dae8d955/eispac-0.97.1.tar.gz",
"platform": null,
"description": "# EISPAC - EIS Python Analysis Code\n\n[![eispac CI status](https://github.com/USNavalResearchLaboratory/eispac/workflows/Tests/badge.svg)\n](https://github.com/USNavalResearchLaboratory/eispac/actions/workflows/tests.yml)\n[![Documentation Status](https://readthedocs.org/projects/eispac/badge/?version=latest)](https://eispac.readthedocs.io/en/latest/?badge=latest)\n\n\nThis software provides a set of tools for analyzing Hinode/EIS data within a\nPython environment. The general approach is as follows:\n\n1. Sets of level 1 HDF5 files are processed from the latest EIS level-0 fits files\n and made available online by the NRL EIS team at <https://eis.nrl.navy.mil/>.\n The HDF5 files come in pairs of \"data\" and \"header\" files which contain corrected\n count rates, the calibration curve needed to convert counts into intensity,\n and all of the associated metadata and pointing information.\n\n2. This package provides Python classes and functions that can read these hdf5\n files, perform all of the necessary calibration and pointing adjustments, and\n create user-friendly python objects that can be manipulated as needed. Also\n included are functions for fitting the intensity profiles using the same\n template files and underlying methodology that is used in the IDL SolarSoft\n environment.\n\n## Getting Started\n\n* Install using PIP (recommended) or by manually downloading this repo.\n\n* Read through the [Online User's Guide](https://eispac.readthedocs.io/en/latest/guide/index.html)\n ([PDF download](https://eispac.readthedocs.io/_/downloads/en/latest/pdf/))\n\n * [Quick Guide](https://eispac.readthedocs.io/en/latest/guide/00-quick.html):\n A brief overview of the core EISPAC functions and objects.\n\n * [Command Line Tools](https://eispac.readthedocs.io/en/latest/guide/02-scripts.html):\n Description of some command line tools available for searching, downloading, and fitting\n EIS observations.\n\n* Need help? If you have any questions, bug reports, or feature requests; please open\nan issue or email the development team.\n\n* Want to contribute code? Please see the [Community Guidelines](https://eispac.readthedocs.io/en/latest/guidelines.html) section of the online documentation.\n\n## Installation\n\n### Using PIP\n\nEISPAC is now available on PyPI. To install, just use the following command,\n```\n\t> python -m pip install eispac\n```\n\nTo upgrade the package, please use:\n```\n\t> python -m pip install --upgrade eispac\n```\n\npip should automatically install all package dependencies. If it does not, please\nsee the list of required packages below. Note: if you are using conda to manage your\nPython packages, you may wish to install or update the dependencies manually first,\nbefore installing eispac using pip (this is by no means required, but it can help\nsimplify updating packages).\n\n### Manual Install\n\n1. Download or clone \"eispac\" to a convenient location on your computer (it does not matter where).\n```\n\t> git clone https://github.com/USNavalResearchLaboratory/eispac.git\n```\n2. Open a terminal and navigate to the directory\n3. To install:\n```\n\t> python -m pip install .\n```\n4. To upgrade:\n```\n\t> python -m pip install --upgrade .\n```\n\nThe package should then be installed to the correct location for your current Python\nenvironment. You can now import the package using `import eispac`.\n\n### Required Packages\n\n* python >= 3.8\n* numpy >= 1.18\n* scipy >= 1.4\n* matplotlib >= 3.1\n* h5py >= 2.9\n* astropy >= 4.2.11\n* sunpy >= 4.0\n* ndcube >= 2.0.0\n* parfive >= 1.5\n* python-dateutil>=2.8\n\n## Code Organization\n\nThere are currently three core directories:\n\n1. **eispac**: main python code directory containing all of the programs required to\n read level 1 HDF5 files and fit templates and fit spectra using mpfit.\n\n Notable subdirectories:\n * `../eispac/core/`: Main code directory. All functions here are loaded into the\n top-level namespace (i.e. eispac.{function name})\n * `../eispac/data/`: Contains fitting templates for specific spectral lines. These HDF5\n files are direct conversions of the \".genx\" files used by some IDL users. Also included\n is an example EIS raster from 2021-03-06 at 06:44:44.\n\n2. **scripts**: GUI and command line tools\n\n2. **docs**: Source reStructuredText files used to build the online documentation\n\nIt should also be noted that `mpfit.py` was written by Mark Rivers and Sergey Kopsov and\nis a direct Python port of the `mpfit.pro` IDL procedure written by Craig Markwardt. As such,\nmuch of the documentation online for the IDL version of the code is still applicable to the\nPython version (see also the [mpfit](https://eispac.readthedocs.io/en/latest/guide/07-mpfit_docs.html) section of our docs for more information).\n\n## TODO list\nHere, in no particular order, is a list of some things that may be added in future releases.\n* Expanded documentation\n* More unit and integration tests\n* More detailed logging (with option to send all log information to a file)\n* Scripts for quickly viewing data and spectra fits\n* Scripts and routines for creating new fit templates\n* Consider adding a subclass of `NDCubeSequence` which can hold multiple spectral windows\n* Consider storing the output fit parameters in another `NDCube`\n* Restructure project to use the Sunpy affiliated package template?",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python analysis tools for Hinode / EIS data",
"version": "0.97.1",
"project_urls": {
"Data": "https://eis.nrl.navy.mil/",
"Documentation": "https://eispac.readthedocs.io/",
"Homepage": "https://github.com/USNavalResearchLaboratory/eispac"
},
"split_keywords": [
"solar",
" sun",
" physics",
" spectroscopy",
" hinode",
" eis"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "004c2a0ca7665a2e319fe7b97619dd3d15f92acfd29e1e4311866cf5dae8d955",
"md5": "75c1f69dd915097757e10971f28812c9",
"sha256": "4bcdba51b7302a7f41d4d18f56aa027567c469ee9ba3957f006214aa3e941ec4"
},
"downloads": -1,
"filename": "eispac-0.97.1.tar.gz",
"has_sig": false,
"md5_digest": "75c1f69dd915097757e10971f28812c9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 13773947,
"upload_time": "2024-11-19T16:34:30",
"upload_time_iso_8601": "2024-11-19T16:34:30.091448Z",
"url": "https://files.pythonhosted.org/packages/00/4c/2a0ca7665a2e319fe7b97619dd3d15f92acfd29e1e4311866cf5dae8d955/eispac-0.97.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-19 16:34:30",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "USNavalResearchLaboratory",
"github_project": "eispac",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "eispac"
}