Replies: 1 comment 1 reply
-
@IHMLucas I am not sure why your suggested code is not working but maybe the problem is with your cached dataset, try passing |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
i am currently working on an simulation with multiple species (CO, CO2) of emission and transmittance. I want to use the HITEMP database for the calculation, but i always get the following error:
"OSError: Invalid data stream"
The code:
import radis as r
import numpy as np
import sys
from astropy import units as u
from scipy.optimize import minimize as mini
import matplotlib.pyplot as plt
[...]
s2 = r.calc_spectrum(
low_boundary_wn / u.cm,
high_boundary_wn / u.cm,
molecule="CO",
isotope="1,2,3",
pressure=1.01325 * u.Unit("bar"),
Tvib= T_vib_CO_em * u.K,
Trot= T_rot_CO_em * u.K,
#mole_fraction=1,
#path_length=0.4 * u.cm,
databank = "hitemp" , #"hitemp", # or use 'hitemp',
#local_databank = r"C:\Users\ex2020\Downloads\05_HITEMP2019\05_HITEMP2019.h5",
wstep = step
)
[...]
I also tried to use the HITEMP database with a local file, but i also could not get this running.
Someone has a suggestion what i should try?
Beta Was this translation helpful? Give feedback.
All reactions