Skip to main content

No project description provided

Project description

# Chem-I-Calc

Chem-I-Calc is a python package for evaluating the chemical information content of resolved star spectroscopy. It takes advantage of the Fisher information matrix and the Cramér-Rao inequality to quickly calculate the Cramér-Rao lower bounds (CRLBs), which give the best theoretically achievable precision from a set of observations.

## Installation Chem-I-Calc requires Python 3.5 or later. It and all of its dependencies can be installed from PyPi with ` pip install Chem-I-Calc ` or directly from Github with ` pip install git+https://github.com/NathanSandford/Chem-I-Calc `

## Getting Started ### Initial file downloads These calculations require high-resolution (R~100,000) spectra in order to calculate spectral gradients for a wide variety of instrumental configurations. The files that include this data are too large to host on either Github or PyPi, instead, the first time the app looks for this data, the data is downloaded from a Google Drive, which may take 2-10 minutes depending on your internet connectivity. As chunks of the data are downloaded, it will display in the terminal/notebook output. The label file is about 50 chunks and the spectra file is about 26,600 chunks.

### Interactive GUI Chem-I-Calc will eventually include a web-hosted applet for quick and easy CRLB calculations for the broader astronomical community. The large files required for these calculations, however, have complicated deploying this application. As an intermediate stop-gap, the Chem-I-Calc package includes the code necessary to run the applet locally.

If you have installed Chem-I-Calc with pip you can start up the applet by running the command ` run_chemicalc ` in the python environmnent that Chem-I-Calc was installed in. If you have installed Chem-I-Calc by cloning the repository, you will need to navigate to Chem-I-Calc/chemicalc_app or make sure your path includes the file run_chemicalc.

After running the command in the terminal you should see the following output:

Serving Flask app “chemicalc_app” (lazy loading) <br> Environment: production <br> WARNING: Do not use the development server in a production environment. <br> Use a production WSGI server instead. <br> Debug mode: off <br> Running on http://127.0.0.1:8050/ (Press CTRL+C to quit) <br>

In an internet browser, navigate to the address output in the final line (e.g., http://127.0.0.1:8050/). The app should then load and be at your disposal!

### Jupyter Notebooks Chem-I-Calc is designed to be be both very interactive and modular, making it well suited for use in notebook environments. This allows interested users to explore beyond the capabilities of the GUI/applet. For example, one could easily use Chem-I-Calc with their own stellar spectral models, include a custom Signal/Noise prescription, and otherwise adapt the code to calculate CRLBs for their specific observations and analysis.

Tutorials for running Chem-I-Calc in a notebook can be found in Chem-I-Calc/notebooks/ and will be expanded upon as the package grows in features.

## Authors - Nathan Sandford (UC Berkeley, nathan_sandford@berkeley.edu)

## Collaborators - Dan Weisz - Yuan-Sen Ting - Hans-Walter Rix

## Attribution This work will be presented in an upcoming paper, Sandford et al. (in prep)

## Contributions & Bug Reports Like what this package is doing, but unsatisfied with some portion of it? I warmly welcome any and all contributions, particularly in feature additions, web deployment, bug fixes, and code optimizations. Don’t hesitate to reach out to me if you have any ideas or contributions you would like to apply.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Chem-I-Calc-0.1.3.dev1.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

Chem_I_Calc-0.1.3.dev1-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

Details for the file Chem-I-Calc-0.1.3.dev1.tar.gz.

File metadata

  • Download URL: Chem-I-Calc-0.1.3.dev1.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for Chem-I-Calc-0.1.3.dev1.tar.gz
Algorithm Hash digest
SHA256 c70c5fe304fc1ff1456a97c4ecbae6e865895afafcbf951ab1725e2506c5950e
MD5 09f2e7409efdc16fcb5e1a57532d1fe1
BLAKE2b-256 4325e0f69f4218541ca138ff30d40ad200f7d6add8f1eee08419021a9b526c3f

See more details on using hashes here.

File details

Details for the file Chem_I_Calc-0.1.3.dev1-py3-none-any.whl.

File metadata

  • Download URL: Chem_I_Calc-0.1.3.dev1-py3-none-any.whl
  • Upload date:
  • Size: 31.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for Chem_I_Calc-0.1.3.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 cedb2eb19e9b31baf5de16b97704b3c1a9875257da4ad8b5cea6c39bcdabe581
MD5 cc4ecc4169f446d3ddd1c54120cd9875
BLAKE2b-256 7e6874ca412d2376ce15ff573d52ff3097b34184425a5a3e07f0e0e2c3c1811f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page