Python Code : Input File Generator from Mineral Modes
This notebook generates UserCalc input files for modeling trace element concentrations and U-series disequilibria during partial melting. It converts mineral modes with depth and fixed partition coefficients into calculation-ready files, ideal for petrologic modeling.
For a detailed step-by-step guide on using this notebook to generate UserCalc input files from mineral modes and partition coefficients, check out YouTube tutorial:
Data files used for the code:
- https://gitlab.com/ENKI-portal/pyUsercalc/-/blob/1aff34d6a118c80a8eec3603b6bffe56813238ec/data/DSpPer.csv
- https://gitlab.com/ENKI-portal/pyUsercalc/-/blob/1aff34d6a118c80a8eec3603b6bffe56813238ec/data/DGtPerFormula.csv
- https://gitlab.com/ENKI-portal/pyUsercalc/-/blob/1aff34d6a118c80a8eec3603b6bffe56813238ec/data/modesPer1300.csv