+ u" a5 G! f, Y" J8 H(* This notebook contains examples for the PET-functions8 g' u% ]. I/ Z
-CalcFormula- calculate mineral formulae (and mole fractions)8 s2 V( T6 U$ n z q% E, f
-TransformDatFile- transform microprobe data-files (JEOL_JX \ ( s: p8 s7 H1 Q7 T( v1 g4 s- Z ]3 W8600) to PET-readable format % g2 G# b' s/ x% g8 P. ^-MakeAnalysisTable- make a usual table of mineralchemical \ ! }" M4 T! q5 y/ C1 Nanalyses (wt.% and formula units) *)5 G( X4 m d+ k
(* This top-cell must be run once before any example can be \ 1 B3 D( _0 {: h, pperformed. *) ' {9 r4 w$ W% C4 W V2 J N9 B' \- P
(* Define the directory, where the PET-files reside (e.g. C:\Eigene \) m; c8 \5 B- h% @$ N7 K X
Dateien\Pet) and load PET. *)* W. s' a) ]' |2 Y+ I4 z2 Y
$PetDirectory = "C:\Eigene Dateien\Pet"; 0 F5 b( }" o2 @9 |! KSetDirectory[$PetDirectory]; $ |& L6 N. m, b% iDeclarePackage["DEFDAT`", {"Dataset"}];$ J: {( b* Y! Q. B
Dataset[Dataset -> B88]; 1 D! U! l* I4 _) x: v) x! n: c7 K2 \+ S0 b, b, \! ^+ I6 B4 y1 I+ F
8 h% }; w8 D4 X; m另一个相关的“DEFDAT”: 6 C" K! n G( G5 L, T+ V: q(* Name: DEFDAT` I! ?- m) o- }6 f1 S' z$ S1 {package of PET: Petrological Elementary Tools 2 H; [' E3 V' T5 UComputers & Geoscience 24:219-235 *) + s, H' e$ L6 w( m1 Q( v) _* P V/ d. Q* B( j6 h
(* Summary: this package declares various PET-functions *)% K" _9 z! m$ o a2 \/ w3 }$ B. R0 w
: B8 D9 y. U4 ~8 C3 v. ?1 W6 ^5 f
(* Author: Edgar Dachs, Department of Mineralogy! q, I: F# J) F' v
University of Salzburg, Austria , K5 j9 k% t+ H$ T" d) wemail: edgar.dachs@sbg.ac.at \' F( C: k h# g, ~last update: 11-2002 *) % b6 L' c& I) B$ `8 N/ c }5 F/ F
BeginPackage["DEFDAT`"] / u) g/ R" y' k+ J! S: F9 ^3 V' A* Z6 @$ Z
Dataset::usage = "Dataset[Dataset-> ...] selects the thermodynamic dataset to be used.\n\n: x3 h8 \! n; {1 w4 d" ^5 A2 Z. u
The following data sets are available, loaded with:\n\n & J. z/ ]8 l1 q# KBerman (1988) J Petrol 29:445-522 Dataset[Dataset -> B88]\n$ S' {9 f+ m& X& d$ M$ C- M( ~
Holland & Powell (1998) J metam Geol 16:309-343 Dataset[Dataset -> HP31], or\n+ X3 Q" \. p- }- K2 \8 i
Dataset[Dataset -> HP32]\n $ n2 f' b1 e' \+ u' W; NGottschalk (1997) Eur J Mineral 9:175-223 Dataset[Dataset -> G97]\n\n+ g2 [. O4 C5 ^' `5 E6 D% @$ ?
See G::usage for more details.\n+ B# R7 `; r1 j9 ?+ M
\"31\" or \"32\" following \"HP\" indicates that the thermodynamic data have been\n: @- c; o5 P6 Y6 B
converted from THERMOCALC-versions 3.1 or 3.2 of Holland & Powell respectively.\n ) S9 R; ^3 G" N. zWhen you start PET, a subdirectory \"/work\" is created by default, from which all user-files\n 1 [& t5 n( K) X6 q7 k(e.g. mineralchemical data files) are read and all files produced by PET are written to.\n ) g/ z" o: i; M0 N1 iTo create a new subdirectory for that purpose, you can use the option:\n& S) Y, P4 V8 v B7 M* Y- _
WorkDirectory -> \"/directory_name\"\n + J( U% z: J( L, ?Example: Dataset[Dataset -> B88, WorkDirectory -> \"sample_xy\"]\n( O; c1 n0 `' e) S0 q9 q u
This loads PET with the Berman data set and reads/writes all user files from/to the\n ! M- k% w/ k7 h' p, E2 d3 O% [subdirectory named \"sample_xy\".\n* n) K+ B+ V" J' U: ]; W
Called from: User.\n 7 u) j) q" J& N# EPackage name: DEFDAT.m\n 9 s, \8 z1 @5 N8 C9 nPET: Petrological Elementary Tools, (c) Edgar Dachs."" h/ }# C4 s9 C9 {3 u* g/ q