Skip to main content

An utility to read low-pressure gaseous cross sections data

Project description

ZCross

ZCross is a python library used to read low pressure gas sections from various sources like LXCat.

Installation

To install this package just use pip:

pip install zcross

Cross section databases are not provided by ZCross: however, it is possible to download the cross section tables of interest from the download section of LXCat. Once you download the cross sections in XML format, you can save it somewhere (we suggest under /opt/zcross_data) and to define an enviroment variable pointing to that path:

export ZCROSS_DATA=/opt/zcross_data

(you can add it to your .profile file)

Examples

List the database availables:

import zcross

zs = zcross.load_all()
# be patient, it will take a while ...

for z in zs:
	print(z.database)

Show the groups and references of a speficic database:

import zcross

z = zcross.load_by_name('ccc')

for group in z.database:
	print(group)

for reference in z.database.references:
	print('[{}]:'.format(reference.type))
	for k,v in reference.items():
	   print('  {:<10} : {}'.format(k,v))

Show the process of a specific group:

import zcross

z = zcross.load_by_name('itikawa')

group      = z.database[0]

for process in group:
	print("Process {}: {}".format(process.id, process.get_simple_type()))
	print("Comment: {}\n".format(process.comment))

Show the cross section table of a specific process:

import zcross

z = zcross.load_by_name('phelps')

process    = z.database['H2O'][5]

print('Reaction:')
print(process.get_reaction())

print('Energy [{}],\tArea [{}]'.format(process.energy_units, process.cross_section_units))

for energy, area in process:
	print('{:8.2f}\t{:e}'.format(energy, area))

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

zcross-0.0.13.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

zcross-0.0.13-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

Details for the file zcross-0.0.13.tar.gz.

File metadata

  • Download URL: zcross-0.0.13.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/51.0.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for zcross-0.0.13.tar.gz
Algorithm Hash digest
SHA256 83444852ea864d2397aa0dec59710f244fb919180af2cb842006d61108205420
MD5 42ccb18a4c1912c344558326ff8f00f4
BLAKE2b-256 403456076f0eb3537782a70d940eb0e0650c93f54d3038b2e3a0d60fd9fcadfe

See more details on using hashes here.

File details

Details for the file zcross-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: zcross-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 25.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/51.0.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for zcross-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 7d0448a850c5eef319adc4523a2d8c21dbe2f167e59764838d31c8bfcdd5eb2b
MD5 f868dd218bdedf1d82b5874bac061ff0
BLAKE2b-256 1891c067f4deafbc7ef79036dd89b42d8976d7df7f6c38e7539c727155002303

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