Wednesday, November 11, 2015

A comes in, but ..

I was a little over excited to hear that A finally came in.  My expectation was very high.

But the database seems stuck as I don't have the right on the computer.  Fortunately, the it still runs under DOS although the built version seems several years old.

back to square 1. in reality 

Coming back to set eflech=. and set path=%path%;.  it still works fine. 

Just dug out so many lines of old code that can be savaged. for example, from dif to val and cpi.  this is for the case when you have more than 1000 files.  do this on a single file is a waste of time.


1.bat{
ls *.dif | sed -f 2val-dif
call 3.bat}

2val-dif{
s/\(.*\)\(...\)/cat & | sed -f 2valx_dif >5 \
mv 5 \1val\
cat \1val | sed -f 2val_dif_cpix >5 \
mv 5 \1cpi\
/w 3.bat}
2valx_dif {
1 {
s/\(.*\)\ *\(.*\)/FilePar\
\2\
\
1\
0\
N\
CU\
0\
1\
0\
1\
BerPar01\
99/g
}
2 {
s/^ //
s/\(.*\)\ \ \(.*\)\ \ .*\ Cu\ .*\ \ \(.*\)\ \ \(.*\)/\1\
\3\
\2\
T\
99\
1\
\4\
N\
N\
0\
Intens01/
}
s/^ //
s/  /\
/g
}

2val_dif_cpix {
1 s/.*/SIETRONICS XRD SCAN/
2 h
2,13 d
17,21 d
22 s/.*/CU\
1.54056\
11\/13\/01\
1/
23 x
24 s/.*/SCANDATA/}

Saturday, November 7, 2015

Profex is quite convenient

Profex is quite a convenient tool to put things together.

It can read Bruker's latest format of diffraction files; whereas other commercial products cannot.
It also put the sticks in cache. so it is not necessary to regenerate the sticks each single time. Moreover, double clicking will find you a match.

But when you read from CIF, it doesn't recognize the HM symbols and leaves the Wyckoff letters blank.  The Wyckoff letters have to be put there manually.

Occasionally it hiccups.  This morning I found there are so many entries in the registry table.  hard to guess how these were generated.  but after deleting all the related items, it worked fine. The entries in the registry table became neat and necessary again.