UVVIS-BIRA-IASB / qdoas

Application to perform DOAS retrievals of trace gases from spectral measurements
http://uv-vis.aeronomie.be/software/QDOAS/
BSD 3-Clause "New" or "Revised" License
19 stars 5 forks source link

Program closes abruptly when Analysis output is enabled. #6

Closed xnick-uy closed 4 days ago

xnick-uy commented 1 week ago

Greetings. I have a project that allows me to run analysis normally on my files, but whenever I try to set up the results to a text file, the program crashes abruptly after processing the first spectrum. The output file is created with the proper headers, and the results of a single analysis below. When output to a file is disabled, the analysis proceeds normally.

What am I doing wrong? The format of my spectra is the old MFC from Heidelberg, and I'm running QDOAS version 3.5 and I recently upgraded to 3.6.8 to see if it solved the problem. The behaviour is the same, on different PCs running windows 10. Does it matter if my files are not named sequentially? (I had to screen out bad reading files).

If you have any ideas, I'll be happy to try. Thanks!

tdanckaert commented 1 week ago

Hi, this sounds like a bug of some sorts. It is probably the easiest if you can provide us with a full example (configuration, input file, reference spectra, cross sections, etc) so we can reproduce the problem here and look for the cause. If you prefer not to share anything publicly, you can message me (thomasd) at the "official" QDOAS support forum https://forum.atmospherictoolbox.org/c/qdoas/ .

xnick-uy commented 1 week ago

meas_mpi.zip meas_uv.zip NO2_qdoas_project.zip

Hi. Thanks for your reply. I registered to the atmospherictoolbox.org (user xnick) but I could not find a way to send a direct message or create a new topic with attached files. I'm putting my files over here on github (not meant to be shared but I don't think that's an issue).

The xml file includes two projects, each one with three analysis windows focused on NO2 in different ranges (but my problem persist even when analyzing a single project with a single analysis window).

I've put the cross section files I'm using on a shared folder: https://drive.google.com/drive/folders/1swjodSCcj4nsr6IlpxW5GXQ8SGrol45u?usp=sharing

I'm a bit concerned about the qdoas project storing the absolute paths of the files. When sharing projects, or when working on different stations, extra steps are required to reconfigure all the paths. For the files I provided, I tried to place the bulk of the input files on an external drive (X: under windows).

tdanckaert commented 6 days ago

Hi, thanks for the files. I think one file is still missing: the high resolution solar spectrum Solar_Fl_Vac_05.ktz. Could you send that one, too? In the mean time I will try if I can make it work with one of our hi res spectra.

I got it to work and found the bug :) There's a memory bug in QDOAS when selecting "Filename" for output. I'll now prepare a new release of QDOAS, that will probably be available on conda-forge by tomorrow. Until then, you can remove "File name" from the selected outut fields to make it work in the current version of QDOAS (though not having the file name might make it difficult to attribute the results to the correct spectrum later on?).

xnick-uy commented 6 days ago

Thank you very much. I'll try that right away, and update qdoas when available. I appreciate your efforts.

bira-iasb-fayt commented 6 days ago

Hello Just a comment about MFC format (binary or std) produced by DOASIS and MS-DOAS Because spectra are saved in individual files, the "Filename" field has been introduced in output in order to facilitate the search of a specific record. In practice this format is not very comfortable for MAXDOAS analysis mainly for the selection of the reference spectrum of the day or the scans. That's why we recommend to convert your spectra in the alternative MFC BIRA-IASB binary format with our tool MFC4QDOAS_Converter before processing in QDOAS. This converter splits your collection of spectra files in daily files. I send you a mail wit the information about this converter. All the best

tdanckaert commented 4 days ago

Hi, qdoas 3.6.10 is now available from conda-forge. Please let me know if it works as expected!

xnick-uy commented 1 day ago

Hello, Thomas.I've tested the new version and it is working as expected. Thanks for all the work. My goal now is to follow Caroline Fayt's suggestion and convert the old MFC files to newer formats (MCF Bira to begin with, hopefully netcdf in the future).

Best regards, NC

El vie, 13 sept 2024 a las 3:32, Thomas Danckaert @.***>) escribió:

Hi, qdoas 3.6.10 is now available from conda-forge. Please let me know if it works as expected!

— Reply to this email directly, view it on GitHub https://github.com/UVVIS-BIRA-IASB/qdoas/issues/6#issuecomment-2348138399, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOT2NIEQ5G3IVNQK4KUMPQDZWKBJBAVCNFSM6AAAAABN6YXPZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBYGEZTQMZZHE . You are receiving this because you authored the thread.Message ID: @.***>