Skip to content

Instantly share code, notes, and snippets.

@xottontille
xottontille / mineraltest.csv
Last active October 5, 2025 03:29
my first coding script, used for calculating atoms per formula unit for minerals; csv file used as input
Title Mineral SiO2 Al2O3 FeO MgO MnO CaO TiO2 Cr2O3 Na2O K2O
BL-2-252a_Bt_G3_1 Biotite 33.4799 20.456 24.6094 4.9621 0.012 0.0033 1.1379 0.0197 0.2061 10.7228
BL-2-252a_Bt_G3_2 Biotite 33.2102 20.2153 25.3401 5.031 0.0413 0.0093 1.1278 0.0614 0.1291 10.3654
BL-2-252a_Bt_G3_3 Biotite 33.2601 21.0006 24.4848 5.1512 0.0417 0.1413 1.2293 0.0563 0.1836 9.5762
BL-2-252a_Bt_G3_4 Biotite 32.5376 19.5819 26.3636 4.766 0.0377 0.0177 1.1742 0.0208 0.1244 10.1076
BL-2-252a_Bt_G3_5 Biotite 32.9923 20.6001 25.6082 4.7844 0.0251 0 1.3226 0.0131 0.1208 10.7411
BL-2-252a_Bt_G3_6 Biotite 36.8606 21.7303 37.2933 1.4789 0.9656 2.4467 0.0014 0.0025 0.05 0
BL-2-252a_Bt_G3_8 Biotite 41.71 20.5911 22.2152 5.1906 0.0321 0.0237 1.1148 0.016 0.2379 9.6535
PF-2-311a_Bt_Grt13_3 Biotite 35.14 20.3831 17.9662 8.1556 0.2775 0.1624 1.9929 0.0443 0.218 8.5246
PF-2-311a_Bt_Grt13_4 Biotite 33.305 21.8184 20.845 7.2647 0.0273 0.0178 2.1714 0.0902 0.1463 7.9093