Skip to main content

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))

Metadata

Release files for zcross 0.0.21

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zcross 0.0.21
File Size Uploaded
zcross-0.0.21.tar.gz 26.3 kB Details

Release files / zcross-0.0.21.tar.gz

Download URL zcross-0.0.21.tar.gz
Size 26.3 kB
Tags Source
SHA-256 checksum
How to use checksums
07ec240adc72cc7825ac0543d89ecaec72464513063039e5cbf45f27d2bd3de2
BLAKE2b-256 checksum
How to use checksums
d311d3d2ef4143e4ca5ecb1d9fd4ef6f78bf6859604567048421a9e48812ce12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.0.21 This release

1 release file

0.0.20

1 release file

0.0.19

1 release file

0.0.18

1 release file

0.0.17

1 release file

0.0.16

1 release file

0.0.15

2 release files

0.0.14

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page