breidablik


Namebreidablik JSON
Version 1.5.1 PyPI version JSON
download
home_pageNone
SummaryInterpolate lithium spectra and predict lithium abundance for most main sequence stars
upload_time2024-10-08 20:46:57
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseNone
keywords lithium stellar spectroscopy
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Breidablik
An interpolation routine and abundance predictor wrapper around stellar spectra for lithium generated from Balder (Amarsi et al. 2016) and the Stagger-grid (Magic et al. 2013). The raw synthetic spectra and models can be found at https://zenodo.org/records/10428804. We use radial basis functions (Bertran de Lis et al. 2022) to interpolate between stellar parameters and lithium abundance inputs to generate interpolated 3D NLTE stellar line profiles; and feedforward neural networks to interpolate between stellar parameters and stellar line strengths, these interpolation models are provided as part of the package. Using the interpolation routine, we can predict the lithium profile given any stellar parameters and lithium abundance input, we can also predict the lithium abundance given an observed spectrum and stellar parameters.

## Installation
### Install with pip
#### Automatic
If you are using linux/macOS, you can install using:
```
wget https://raw.githubusercontent.com/ellawang44/Breidablik/master/install_pip
./install_pip
```
Once the installation is done, you can delete the installation script.

#### Manual
If the above automatic installation did not work for you, then to install with `pip`, there are 3 steps:
1. Install Breidablik through `pip`. This will install Breidablik _without_ the raw synthetic spectra.  
2. Optional, download the raw data. Whilst Breidablik will happily interpolate and predict lithium abundances without the raw synthetic spectra, the raw spectra can be found in `balder.zip` on https://zenodo.org/records/10428804. There are functions under `breidablik.analysis` which interact with the raw synthetic spectra.
3. Optional, put the raw data in the breidablik folder. The functions in `breidablik.analysis.read` have a `data_path` parameter which is the path to the folder containing the raw spectra. By default, this path is set to a folder named `Balder` inside the `breidablik` package. Therefore, I recommend putting the data inside the `Balder` folder inside the `breidablik` package; however, this is not a requirement.  

### Install without pip
#### Automatic
If you are using linux/macOS, you can navigate to where you want this repository and run:
```
git clone https://github.com/ellawang44/Breidablik
cd Breidablik
./install
```

#### Manual
If the above automatic installation did not work for you, then to install without using `pip`, there are 5 steps:
1. Navigate to where you want this repository and clone this git repository.
2. Navigate into `Breidablik/breidablik`.
3. Download the models from `models_vX.X.X.zip` on https://zenodo.org/records/10428804 and unzip it. Pick the latest model, i.e. the model with the highest version number. If you are running an older version of Breidablik, pick the model based on the version of Breidablik you want to run. The model version number will be just lower than your Breidablik version number. e.g. running Breidablik v1.1.0 will require models v1.0.0. 
4. Optional, download the raw data from `balder.zip` on https://zenodo.org/records/10428804 and unzip it.
5. Optional, add this directory to the python path. This makes the directory findable by python no matter where it is launched.

### Check that your installation is correct
Optional, to check that the installation was successful, in the `Breidablik` folder, you can run:
```
python -m pytest
```
If all tests pass with no warnings, then the installation was successful. If you have installed this package through `pip`, you can still run the tests, but instead this will need to be done in the `breidablik` folder installed by `pip`.

## Updating the code
The easiest way to update the code is by doing a clean install. 

There are 3 components to Breidablik: synthetic spectra from Balder, trained models for interpolation, the code itself. 

The synthetic spectra from Balder is downloaded once upon install, if there were updates to this, reinstall is recommended. Note that old versions of Breidablik installed spectra as separate files (~2000 files), new versions of Breidablik have one numpy file per grid. This change was made because pip takes a while to delete a lot of small files. If you are uninstalling an old version of Breidablik, be aware that it might take a while. 

The trained models for interpolation is downloaded upon manual install, but comes with the package if installed through pip. If you've installed the code manually, you will need to update the trained models manually.

The code itself can be updated both through pip and git if you installed manually. 

## Getting Started
See the examples at https://breidablik.readthedocs.io/en/latest/Getting%20Started.html#examples

## License and Citation
If you use this package for any academic purpose, please cite Wang et al. 2020 (arXiv:2010.15248) and Wang et al. 2024 (arXiv:2402.02669).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "breidablik",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "lithium, stellar, spectroscopy",
    "author": null,
    "author_email": "Ella Xi Wang <xi.wang3@anu.edu.au>",
    "download_url": "https://files.pythonhosted.org/packages/7e/52/bbd851f1bb8b0ba460946ce582d47de79b2c9342017aa0fb4f77c7ff9572/breidablik-1.5.1.tar.gz",
    "platform": null,
    "description": "# Breidablik\nAn interpolation routine and abundance predictor wrapper around stellar spectra for lithium generated from Balder (Amarsi et al. 2016) and the Stagger-grid (Magic et al. 2013). The raw synthetic spectra and models can be found at https://zenodo.org/records/10428804. We use radial basis functions (Bertran de Lis et al. 2022) to interpolate between stellar parameters and lithium abundance inputs to generate interpolated 3D NLTE stellar line profiles; and feedforward neural networks to interpolate between stellar parameters and stellar line strengths, these interpolation models are provided as part of the package. Using the interpolation routine, we can predict the lithium profile given any stellar parameters and lithium abundance input, we can also predict the lithium abundance given an observed spectrum and stellar parameters.\n\n## Installation\n### Install with pip\n#### Automatic\nIf you are using linux/macOS, you can install using:\n```\nwget https://raw.githubusercontent.com/ellawang44/Breidablik/master/install_pip\n./install_pip\n```\nOnce the installation is done, you can delete the installation script.\n\n#### Manual\nIf the above automatic installation did not work for you, then to install with `pip`, there are 3 steps:\n1. Install Breidablik through `pip`. This will install Breidablik _without_ the raw synthetic spectra.  \n2. Optional, download the raw data. Whilst Breidablik will happily interpolate and predict lithium abundances without the raw synthetic spectra, the raw spectra can be found in `balder.zip` on https://zenodo.org/records/10428804. There are functions under `breidablik.analysis` which interact with the raw synthetic spectra.\n3. Optional, put the raw data in the breidablik folder. The functions in `breidablik.analysis.read` have a `data_path` parameter which is the path to the folder containing the raw spectra. By default, this path is set to a folder named `Balder` inside the `breidablik` package. Therefore, I recommend putting the data inside the `Balder` folder inside the `breidablik` package; however, this is not a requirement.  \n\n### Install without pip\n#### Automatic\nIf you are using linux/macOS, you can navigate to where you want this repository and run:\n```\ngit clone https://github.com/ellawang44/Breidablik\ncd Breidablik\n./install\n```\n\n#### Manual\nIf the above automatic installation did not work for you, then to install without using `pip`, there are 5 steps:\n1. Navigate to where you want this repository and clone this git repository.\n2. Navigate into `Breidablik/breidablik`.\n3. Download the models from `models_vX.X.X.zip` on https://zenodo.org/records/10428804 and unzip it. Pick the latest model, i.e. the model with the highest version number. If you are running an older version of Breidablik, pick the model based on the version of Breidablik you want to run. The model version number will be just lower than your Breidablik version number. e.g. running Breidablik v1.1.0 will require models v1.0.0. \n4. Optional, download the raw data from `balder.zip` on https://zenodo.org/records/10428804 and unzip it.\n5. Optional, add this directory to the python path. This makes the directory findable by python no matter where it is launched.\n\n### Check that your installation is correct\nOptional, to check that the installation was successful, in the `Breidablik` folder, you can run:\n```\npython -m pytest\n```\nIf all tests pass with no warnings, then the installation was successful. If you have installed this package through `pip`, you can still run the tests, but instead this will need to be done in the `breidablik` folder installed by `pip`.\n\n## Updating the code\nThe easiest way to update the code is by doing a clean install. \n\nThere are 3 components to Breidablik: synthetic spectra from Balder, trained models for interpolation, the code itself. \n\nThe synthetic spectra from Balder is downloaded once upon install, if there were updates to this, reinstall is recommended. Note that old versions of Breidablik installed spectra as separate files (~2000 files), new versions of Breidablik have one numpy file per grid. This change was made because pip takes a while to delete a lot of small files. If you are uninstalling an old version of Breidablik, be aware that it might take a while. \n\nThe trained models for interpolation is downloaded upon manual install, but comes with the package if installed through pip. If you've installed the code manually, you will need to update the trained models manually.\n\nThe code itself can be updated both through pip and git if you installed manually. \n\n## Getting Started\nSee the examples at https://breidablik.readthedocs.io/en/latest/Getting%20Started.html#examples\n\n## License and Citation\nIf you use this package for any academic purpose, please cite Wang et al. 2020 (arXiv:2010.15248) and Wang et al. 2024 (arXiv:2402.02669).\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Interpolate lithium spectra and predict lithium abundance for most main sequence stars",
    "version": "1.5.1",
    "project_urls": {
        "Documentation": "https://breidablik.readthedocs.io/en/latest/index.html",
        "Homepage": "https://github.com/ellawang44/Breidablik",
        "Issues": "https://github.com/ellawang44/Breidablik/issues",
        "Repository": "https://github.com/ellawang44/Breidablik.git"
    },
    "split_keywords": [
        "lithium",
        " stellar",
        " spectroscopy"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "248117792aa5618005954c0ffdb79c3b59f637b07fbe7014fb5d8b14614501c3",
                "md5": "b5f591fa635817d5dd1a0cb5980d3679",
                "sha256": "a4d03004221fd2b67fb1905c225fd5b4b7cbee9c06fb153d2d44be1591cbffa3"
            },
            "downloads": -1,
            "filename": "breidablik-1.5.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b5f591fa635817d5dd1a0cb5980d3679",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 40144328,
            "upload_time": "2024-10-08T20:46:52",
            "upload_time_iso_8601": "2024-10-08T20:46:52.634639Z",
            "url": "https://files.pythonhosted.org/packages/24/81/17792aa5618005954c0ffdb79c3b59f637b07fbe7014fb5d8b14614501c3/breidablik-1.5.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7e52bbd851f1bb8b0ba460946ce582d47de79b2c9342017aa0fb4f77c7ff9572",
                "md5": "72650f0f618a4bc68cc49d2d14d81c67",
                "sha256": "ddb77844f962073e9b0670b02e7b3f024e2f0d684fc66f40a93955097ece10b2"
            },
            "downloads": -1,
            "filename": "breidablik-1.5.1.tar.gz",
            "has_sig": false,
            "md5_digest": "72650f0f618a4bc68cc49d2d14d81c67",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 39853297,
            "upload_time": "2024-10-08T20:46:57",
            "upload_time_iso_8601": "2024-10-08T20:46:57.065190Z",
            "url": "https://files.pythonhosted.org/packages/7e/52/bbd851f1bb8b0ba460946ce582d47de79b2c9342017aa0fb4f77c7ff9572/breidablik-1.5.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-08 20:46:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ellawang44",
    "github_project": "Breidablik",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "breidablik"
}
        
Elapsed time: 4.87936s