%11 January 2023 %The JacopoJapo Version
pyMin, versione Colab 2023
by Michele Zucali, Department of Earth Sciences - University of Milan - Italy
https://github.com/mzucali/pyMinColab
This is a basic code to re-calculate mineral structural formula for rock-forming mineral starting from SEM-EMPA data, Wt% of oxides (e.g., SiO2, Al2O3, MgO, etc.).
HOW TO USE IT
- Select the pyMinColab0X.ipynb file
- Select the Open in Colab banner
- You will be re-directed to Google Colab (you need a google account) => works better in Chrome
- There, follow the instructions
INPUT FILE PREPARATION
-
INPUT file format is preferibly XLSX but XLS, TAB, CSV, TXT are also accepted.
-
MANDATORY headers are Sample, Mineral and oxides names (e.g. SiO2, Al2O3, MgO, etc.). Case INSENSITIVE, so SIO2, SIo2, SiO2, sio2, siO2, sIo2, ALL accepted!
-
REMOVE any column with numerical data NOT oxides names (e.g., TOTAL), but you can leave any text comment
-
SAMPLE column is FREE and reports sample your labels (e.g., 2mZB26_domain2_Grt34)
-
MINERAL column is mandatory and report a label specific for the mineral phase (e.g., grt, als, ttn, amp, etc...). Mineral has a specific list with a large number of cases.
HERE links to an Example_INPUT_FILE (xlsx) [https://github.com/mzucali/pyMinColab/blob/8f00b4148f715caabdbe38331063c9e9c2679e84/testData/example_input_file.xlsx] and MINERAL_lables [https://github.com/mzucali/pyMinColab/blob/8f00b4148f715caabdbe38331063c9e9c2679e84/testData/labelsMIN.xlsx]
HOW TO RUN your INPUT File
-
select Run All from Runtime menu
-
select Choose Files form the button appeared at the bottom of this page (as your run Run All not before)
-
it will start the computation with a LONG list of outputs as it finished a folder mydata will be created with your input file, the output file (inputfilename_OUT)
-
you can download the output