Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot calculate radiance of N2 #591

Open
TranHuuNhatHuy opened this issue Jun 19, 2022 · 2 comments
Open

Cannot calculate radiance of N2 #591

TranHuuNhatHuy opened this issue Jun 19, 2022 · 2 comments
Labels
🐞bug Something isn't working

Comments

@TranHuuNhatHuy
Copy link

I'm using RADIS app for calculating random large spectra. I just noticed that I could not calculate N2 molecule under any conditions. Here is a condition to reproduce:

  • Database: HITRAN.
  • Mode: Radiance.
  • Wavenumber range (cm-1): 500 to 1000, or anything you wanna try. I choose this range to cover all full-range.
  • Tgas: 300 K (default)
  • Pressure: 1.01325 bar (default)
  • Path length: 1 cm (default)
  • Molecule: N2
  • Mole fraction: 0.1 (default)

image

Strangely, I know that RADIS app takes its back-end from main RADIS, but in this case no error logs pop up, and the calculation time is quite fast - around 1 second (the blue spinning circle indicates that the app is calculating, am I right?).

@arunavabasucom arunavabasucom self-assigned this Jun 19, 2022
@arunavabasucom arunavabasucom added the 🐞bug Something isn't working label Jun 21, 2022
@suzil
Copy link
Collaborator

suzil commented Jun 21, 2022

Server logs to help debugging this:

File already exist: /home/suzil/.radisdb/hitran/downloads__can_be_deleted/N2/N2_2.data. Deleting it.`

Data is fetched from http://hitran.org

BEGIN DOWNLOAD: N2_2
  65536 bytes written to /home/suzil/.radisdb/hitran/downloads__can_be_deleted/N2/N2_2.data
Header written to /home/suzil/.radisdb/hitran/downloads__can_be_deleted/N2/N2_2.header
END DOWNLOAD
                     Lines parsed: 161
PROCESSED
INFO:     127.0.0.1:60496 - "POST /calculate-spectrum HTTP/1.0" 200 OK

When encountering an error, we stringify the error and return it back to the client: https://github.com/suzil/radis-app/blob/main/server/main.py#L65 But in this case the error is an empty string.

@arunavabasu-03 It may be worth trying to reproduce this by directly calling radis.calc_spectrum in a script (outside of the app environment) with the same version of RADIS that the app is using. Then we can ask the RADIS team to help debug it.

@arunavabasucom
Copy link
Owner

yeah @suzil, we can do that !! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants