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 LXCat. Once you download the cross sections in XML format, you can convert it into a format readable by ZCross using this online converter. It is now possible to save the cross section tables in any location (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:

from zcross import ZCross

z = ZCross()
for database in z.databases:
	print(database)

Show the groups and references of a speficic database:

from zcross import ZCross

z = ZCross()
database = z.databases[0]

for group in database.groups:
	print(group)

for reference in database.references:
	print(reference.bibtex())

Show the process of a specific group:

from zcross import ZCross

z = ZCross()
database = z.databases[0]
group      = database.groups[0]

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

Show the cross section table of a specific process:

from zcross import ZCross

z = ZCross()
database = z.databases[0]
group    = database.groups[0]
process  = group.processes[0]

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

for energy, area in zip(process.energy, process.cross_section):
	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.6.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

zcross-0.0.6-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zcross-0.0.6.tar.gz
  • Upload date:
  • Size: 21.0 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.6.tar.gz
Algorithm Hash digest
SHA256 83f4048f7cc18c0884eb575001f4cfeaefd213814196b53610d1b97972762a04
MD5 94b4a565b303fec8275033a80fbe7a73
BLAKE2b-256 c0a29749e51b8b4032308866848a010bc19efb3d0ce2d59cd07ee21c2e9f99c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zcross-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 24.1 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 666f1169bf8dd7a774fae376d7e647113b607ab8d2c7b6577bd8d9c11799b10a
MD5 6a586d82df8ac0af38ab30ae7a9fb66d
BLAKE2b-256 4dacc1cf1e17f1018c92fb876e7f3230a963fe32befb902fb3b441a77fed41e0

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