Use concentration output in Python codes

Post Reply
OlliE
Posts: 2
Joined: June 18th, 2020, 8:47 am
Registered HYSPLIT User: No

Use concentration output in Python codes

Post by OlliE »

Dear HYSPLIT-team,

I ran some concentration simulations and now I want to include the gridded concentration (e.g. at a certain level) in a Python script with my own measurement data.
Since I am not that familiar with binary files and more used to netCDF or HDF formats, I tried to convert a simple model output binary file (e.g. cdump in our examples) from the concentration calculation to a netCDF file using the 'conc2cdf.exe'. But this resulted in an error message that libgcc_s_dw2-1.dll couldn't be found on my Windows PC.
Do you have an idea how to fix this problem? Or is there another alternative to read HYSPLIT binary files in Python in a simple way?

Thanks a lot for this really exciting and well organized workshop!

Kind regards,
Oliver
aring
Posts: 39
Joined: June 12th, 2020, 7:04 am
Registered HYSPLIT User: Yes

Re: Use concentration output in Python codes

Post by aring »

Hi Oliver,

I suggest checking out the monet and monetio git repositories for some python tools developed for use with hysplit files.

https://github.com/noaa-oar-arl/monetio
https://github.com/noaa-oar-arl/monet

check out monetio/monetio/models for codes that generally return xarrays for use within python codes, but there is also cdump2netcdf.py which converts cdump files to netcdf.

I hope these git repos help! If you have any questions about the operations within these libraries, please submit comments/issues under the issues tab on github.
OlliE
Posts: 2
Joined: June 18th, 2020, 8:47 am
Registered HYSPLIT User: No

Re: Use concentration output in Python codes

Post by OlliE »

Thanks for your reply. The conversion with monetio was successful :)
Post Reply

Return to “7. Air concentration calculations”