Skip to main content

Line-by-line molecular spectra calculations with DSM and multigrid tools

Project description

pymultigrid

pymultigrid provides line-by-line molecular spectra tools based on DSM and multigrid methods.

Install

pip install .

CLI

pymultigrid --help
pymultigrid demo dsm_demo_1
pymultigrid calc -i CO2.par -o spectrum.txt
pymultigrid calc -m multigrid -i CO2.par -r 2100 2400 -s 0.05 -t 323 -o out.txt -x

Commands

  • demo DEMO — run a script from demo/ (e.g. dsm_demo_1, dsm_demo_2, multigrid_demo_1).
  • calc — compute a spectrum and write a two-column text file (wavenumber, value).

calc options

Option Description
-m, --method dsm or multigrid (default: dsm)
-i, --input HITRAN .par file (required)
-t, --temperature Temperature in K (default: 296)
-p, --pressure Pressure in atm (default: 1)
-f, --fraction Mole fraction of self (default: 0)
-r, --range Wavenumber range NU_MIN NU_MAX (default: from file)
-s, --step Grid step in cm⁻¹ (default: 0.01)
-o, --output Output file path (required)
-x, --abscoef Absorption coefficient; otherwise cross-section

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

pymultigrid-0.1.0.tar.gz (528.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymultigrid-0.1.0-py3-none-any.whl (544.8 kB view details)

Uploaded Python 3

File details

Details for the file pymultigrid-0.1.0.tar.gz.

File metadata

  • Download URL: pymultigrid-0.1.0.tar.gz
  • Upload date:
  • Size: 528.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for pymultigrid-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6807f398987d918dc7d13abb23653c3afd2ccf25e4c1fc2612f95fe90eeecdf5
MD5 487d7b6702fb87801c1da64983471c29
BLAKE2b-256 6f6be09f810089b0c25483dd8e85da1917686e794434e09591c7857f50d26b04

See more details on using hashes here.

File details

Details for the file pymultigrid-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pymultigrid-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 544.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for pymultigrid-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 adad34b299332a939eabafa1f166c47b77d59fec75defe0d4b2fc0c58654a785
MD5 42dd650eea95814cccd356f2e7995c33
BLAKE2b-256 e9a3d3267b3a86a3092d1e55e8d8dd369580be9a5c86b4c8a7b996b12d6df689

See more details on using hashes here.

Supported by

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