Code in various languages to relate the hygroscopicity parameter kappa with hygroscopic growth factor or critical supersaturation.
Excel/
The spreadsheet is self explanatory and includes a number of forward and inverse calculations related to Petters and Kreidenweis (2007,2008).txt/
The text file kappalines.txt can by used to overlay lines of constant kappa onto a critical supersaturation/dry diameter plot.IDL_GDL
The IDL (Interactive Data Language) or GDL directory includes code to replicate Petters and Kreidenweis (2007,2008, and 2013)Python
The Python directory includes code to replicate Petters and Kreidenweis (2008)MATLAB_OCTAVE
The MATLAB/Octave directory includes code to replicate Petters and Kreidenweis (2008) and Petters and Kreidenweis (2013)
Contributions for code related to kappa conversions written in any language are welcome.
Petters, M. D. and S. M. Kreidenweis (2013), A single parameter representation of hygroscopic growth and cloud condensation nucleus activity - Part 3: Including surfactant partitioning, Atmos. Chem. Phys., 13(2), 1081-1091, doi:10.5194/acp-13-1081-2013.
Petters, M. D. and S. M. Kreidenweis (2008), A single parameter representation of hygroscopic growth and cloud condensation nucleus activity: Part II: Including solubility, Atmos Chem Phys 8, 6273-6279.
Kreidenweis, S.M., M. D. Petters, P. J. DeMott (2008), Single-parameter estimates of aerosol water content, Environ Res Lett, 3 035002, doi:10.1088/1748-9326/3/3/035002.
Petters, M. D. and S. M. Kreidenweis (2007), A single parameter representation of hygroscopic growth and cloud condensation nucleus activity, Atmos Chem Phys, 7, 1961-1971.