# Spyctral: Astronomical spectral data analyser


[](https://spyctral.readthedocs.io/en/latest/?badge=latest)
[](https://opensource.org/licenses/MIT)

[](https://github.com/leliel12/diseno_sci_sfw)
Spyctral is a python package that allows to determine fundamental parameters of compact stellar systems from the analysis of their spectral synthesis and/or templates fitting.
## Description
Spyctral is a set of tools to represent, load, manipulate and analyze astronomical spectroscopic data from spectral synthesis code results and templates fitting ones. The package provides a python toolbox to organize the outputs files and calculate astronomical parameters in a fast and accurate way giving to the astronomical community the spectra analysis more user-friendly.
## Motivation
Star clusters stand as a pivotal yardstick in modern astrophysics. They are excellent targets to determine stellar ages and metallicities providing rich information on the star formation and chemical histories of their host galaxies (e.g., Greggio & Renzini 2011; Adamo et al. 2020; Berek et al. 2023). Ages, metallicities, radial velocities and reddening of star clusters can be obtained using the integrated spectrum fitting technique both in the Local Group and in more distant galaxies (e.g., Asa’d et al. 2013; Ahumada et al. 2016; Clariá et al. 2017; Colucci et al. 2017; Chilingarian & Asa’d 2018; Ahumada et al. 2019; Bastian et al. 2019; Moura et al. 2019; Sakari et al. 2021; Simondi-Romero et al. 2022). Several automated tools have been developed to apply this powerful technique and they are widely used in the literature. STARLIGHT (Cid Fernandes et al. 2005), NBursts (Chilingarian et al. 2007), EZ_age (Graves & Schiavon 2008), FISA (Benítez-Llambay et al. 2012), and Analyzer of Spectra for Age Determination (A.S.A.D) (Asa’d 2014) are some examples.
STARLIGHT apply the integrated spectrum of the star clusters to estimate the age, reddening and radial velocity, however the two tools use different approaches. STARLIGHT provides the results of the best simple stellar populations (SSP) mixture that match the observed integrated spectrum along with the final synthetic spectrum which represents the combined contributions of the different SSP population mixtures. However, the outputfile does not give the final object parameters so Spyctral was developed to could explore the results and finally
obtain ages, reddenings, radial velocities and abundances.
FISA: “Fast Integrated Spectra Analyzer” permits fast and reasonably accurate age and reddening determinations for star clusters by using their integrated spectra and currently available template spectrum libraries. This algorithm and its implementation gives a results file with the astrophysical information in differents blocks. To look at the parameters in shorter times rather than looking case by case or file by file, Spyctral take the FISA outfile and give you the object parameters in a easy way.
The Spyctral code receives files (text files with all the spectroscopic info) related to the observed object, extracts the necessary information and offers the necessary methods to determine the astrophysical parameters of the object. This approach will save processing time and help to achieve astrophysical results in shorter times than from other methods. In this way the focus of analysis can be quickly redirected to the astrophysical results in a timely manner.
## Features
Spyctral needs a minimum of one text file and you need to know the source code of the file to be analysed to use the library correctly.
## Requeriments
You will need Python 3.9 or higher to run Sypctral.
## Basic install
You could find Spyctral at PyPI. The standar instalation via pip:
``` bash
$ pip install spyctral
```
## Development install
Clone this repo and then inside the local directory execute
``` bash
$ git clone https://github.com/candelac/Spyctral.git
$ cd Spyctral
$ pip install -e .
```
## Tutorial
The following link leads to Spyctral's tutorial, which shows step by step how to get started and the main available options.
[📖 Link to the tutorial on GitHub](https://github.com/candelac/Spyctral/blob/main/docs/notebook/Tutorial_new.ipynb)
## Future upgrades
This is the first version of Spyctral code and we hope to add functionality so that the package will support output files from other synthesis codes, the next one to be included is A.S.A.D.
## Authors
* Tapia-Reina Martina (martina.tapia@mi.unc.edu.ar)
* Cerdosino Candela (candelacerdosino@mi.unc.edu.ar)
* Fiore J.Manuel (juanmfiore@mi.unc.edu.ar)
* Martinez J.Luis (jmartinez@frc.utn.edu.ar)
* Cabral Juan (jbcabral@unc.edu.ar)
Raw data
{
"_id": null,
"home_page": null,
"name": "spyctral-tools",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "spyctral, spectra, spectral-synthesis, template-fitting",
"author": null,
"author_email": "\"Tapia Reina et al.\" <martina.tapia@mi.unc.edu.ar>",
"download_url": "https://files.pythonhosted.org/packages/de/83/4c9a3e5c1a2eba921ffdb03814e787d3fac137e5d879bb3709069e898cdf/spyctral_tools-0.0.1rc0.tar.gz",
"platform": null,
"description": "# Spyctral: Astronomical spectral data analyser\n\n\n\n\n\n\n[](https://spyctral.readthedocs.io/en/latest/?badge=latest)\n[](https://opensource.org/licenses/MIT)\n\n[](https://github.com/leliel12/diseno_sci_sfw)\n\nSpyctral is a python package that allows to determine fundamental parameters of compact stellar systems from the analysis of their spectral synthesis and/or templates fitting. \n\n## Description \n\nSpyctral is a set of tools to represent, load, manipulate and analyze astronomical spectroscopic data from spectral synthesis code results and templates fitting ones. The package provides a python toolbox to organize the outputs files and calculate astronomical parameters in a fast and accurate way giving to the astronomical community the spectra analysis more user-friendly.\n\n## Motivation\n\nStar clusters stand as a pivotal yardstick in modern astrophysics. They are excellent targets to determine stellar ages and metallicities providing rich information on the star formation and chemical histories of their host galaxies (e.g., Greggio & Renzini 2011; Adamo et al. 2020; Berek et al. 2023). Ages, metallicities, radial velocities and reddening of star clusters can be obtained using the integrated spectrum fitting technique both in the Local Group and in more distant galaxies (e.g., Asa\u2019d et al. 2013; Ahumada et al. 2016; Clari\u00e1 et al. 2017; Colucci et al. 2017; Chilingarian & Asa\u2019d 2018; Ahumada et al. 2019; Bastian et al. 2019; Moura et al. 2019; Sakari et al. 2021; Simondi-Romero et al. 2022). Several automated tools have been developed to apply this powerful technique and they are widely used in the literature. STARLIGHT (Cid Fernandes et al. 2005), NBursts (Chilingarian et al. 2007), EZ_age (Graves & Schiavon 2008), FISA (Ben\u00edtez-Llambay et al. 2012), and Analyzer of Spectra for Age Determination (A.S.A.D) (Asa\u2019d 2014) are some examples.\n\nSTARLIGHT apply the integrated spectrum of the star clusters to estimate the age, reddening and radial velocity, however the two tools use different approaches. STARLIGHT provides the results of the best simple stellar populations (SSP) mixture that match the observed integrated spectrum along with the final synthetic spectrum which represents the combined contributions of the different SSP population mixtures. However, the outputfile does not give the final object parameters so Spyctral was developed to could explore the results and finally \nobtain ages, reddenings, radial velocities and abundances. \n\nFISA: \u201cFast Integrated Spectra Analyzer\u201d permits fast and reasonably accurate age and reddening determinations for star clusters by using their integrated spectra and currently available template spectrum libraries. This algorithm and its implementation gives a results file with the astrophysical information in differents blocks. To look at the parameters in shorter times rather than looking case by case or file by file, Spyctral take the FISA outfile and give you the object parameters in a easy way. \n\nThe Spyctral code receives files (text files with all the spectroscopic info) related to the observed object, extracts the necessary information and offers the necessary methods to determine the astrophysical parameters of the object. This approach will save processing time and help to achieve astrophysical results in shorter times than from other methods. In this way the focus of analysis can be quickly redirected to the astrophysical results in a timely manner. \n\n## Features\nSpyctral needs a minimum of one text file and you need to know the source code of the file to be analysed to use the library correctly. \n\n## Requeriments\nYou will need Python 3.9 or higher to run Sypctral.\n\n## Basic install\nYou could find Spyctral at PyPI. The standar instalation via pip:\n``` bash\n$ pip install spyctral\n```\n## Development install\nClone this repo and then inside the local directory execute\n``` bash\n$ git clone https://github.com/candelac/Spyctral.git\n$ cd Spyctral\n$ pip install -e .\n```\n## Tutorial\nThe following link leads to Spyctral's tutorial, which shows step by step how to get started and the main available options.\n\n[\ud83d\udcd6 Link to the tutorial on GitHub](https://github.com/candelac/Spyctral/blob/main/docs/notebook/Tutorial_new.ipynb)\n\n\n## Future upgrades \nThis is the first version of Spyctral code and we hope to add functionality so that the package will support output files from other synthesis codes, the next one to be included is A.S.A.D. \n\n## Authors\n\n* Tapia-Reina Martina (martina.tapia@mi.unc.edu.ar)\n* Cerdosino Candela (candelacerdosino@mi.unc.edu.ar)\n* Fiore J.Manuel (juanmfiore@mi.unc.edu.ar)\n* Martinez J.Luis (jmartinez@frc.utn.edu.ar)\n* Cabral Juan (jbcabral@unc.edu.ar)\n",
"bugtrack_url": null,
"license": "The MIT License",
"summary": "Implementation of astronomical objects spectral analisys",
"version": "0.0.1rc0",
"project_urls": {
"Homepage": "https://github.com/candelac/Spyctral"
},
"split_keywords": [
"spyctral",
" spectra",
" spectral-synthesis",
" template-fitting"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "c4d4e11e6132690908631985be020fb2cbfe91d3c0faa631be7bbd74659298cc",
"md5": "f2822b2a598c379000306d98f343ffbe",
"sha256": "9e6843d330307a0c76fe153e4acc6920f15476aba7943a12aa1fe876b8e353c7"
},
"downloads": -1,
"filename": "spyctral_tools-0.0.1rc0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f2822b2a598c379000306d98f343ffbe",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 21889,
"upload_time": "2025-02-25T20:06:06",
"upload_time_iso_8601": "2025-02-25T20:06:06.896349Z",
"url": "https://files.pythonhosted.org/packages/c4/d4/e11e6132690908631985be020fb2cbfe91d3c0faa631be7bbd74659298cc/spyctral_tools-0.0.1rc0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "de834c9a3e5c1a2eba921ffdb03814e787d3fac137e5d879bb3709069e898cdf",
"md5": "ca9788eeaf21e875d0da71ec41111517",
"sha256": "2e920e7495026471592850ecf27a50863d4e77955b2c122dec7655578782fae0"
},
"downloads": -1,
"filename": "spyctral_tools-0.0.1rc0.tar.gz",
"has_sig": false,
"md5_digest": "ca9788eeaf21e875d0da71ec41111517",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 21056,
"upload_time": "2025-02-25T20:06:09",
"upload_time_iso_8601": "2025-02-25T20:06:09.619765Z",
"url": "https://files.pythonhosted.org/packages/de/83/4c9a3e5c1a2eba921ffdb03814e787d3fac137e5d879bb3709069e898cdf/spyctral_tools-0.0.1rc0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-25 20:06:09",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "candelac",
"github_project": "Spyctral",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "spyctral-tools"
}