! abort if not called with 2 parameters \if not alias $1' \exit \if not alias $2' \exit ! example: $1=i01f $2=i02f ! read and plot the phi scan i01f0001.kcd readwait '$1'0001 plot ! Calculate theta on the centres of the four ! edges of the detector. thmax will be set to ! the maximum value of these four numbers. thhalf ! set peakfile name to i01f.pk peakfile '$1' ! create peakfile, do peaksearch and close peakfile peakopen peak2 peakclose ! create second window activate 2 ! read and plot phichi scan i02f0001.kcd readwait '$2'0001 plot ! plot chiarcs from i01f.pk peakchifile '$1' ! set peakfile name to i02f.pk peakfile '$2' ! create peakfile, do peaksearch and close peakfile peakopen peak2 peakclose ! leave script with first window active activate 1
item | name | description |
---|---|---|
images | i01f0001.kcd to i08f0001.kcd | created by collect |
low image | ilow.kcd | described in above |
phichi script | phichi.vic | described in above |
peaksearch script | i.vic | described below |
view dark ilow read i01f0001 plot peakmin 10 peaknr 40 peak2 A lot of red spots indicate a lot of weak reflections. |
|
Try to decrease the treshold. peakmin 5 resfresh peak2 Looks ok now, but we can increase the number of peaks |
|
peaknr 80
resfresh peak2 This looks reasonable. Use the values of peaknr and peakmin in the next script. |
! trigger fatal errors instead of warnings abort on ! the standard detalign.vic will be used. ! a detalign.vic in the current directory will ! overrule the standard one. If you created a ! detalign_i.vic, use it. \if file detalign_i.vic @detalign_i ! set the number of expected peaks in one image peaknr 80 ! the peaksurrounding box. peaksizemm 2.2 ! stop peak search after 5 successive weak peaks peakbreak 5 ! set minimum treshhold. No peaks will be searched ! with a maximum pixel value less than this treshhold. ! a good default (if you use ilow.kcd) is 10 peakmin 5 ! set theta min. theta max will be set in phichi.vic thmin 3.0 ! define region with too long active reflections durationmax 5 ! each image will be scaled to the maximum pixel value noglobalmax ! display peak numbers peaklabel on ! set default colour scheme mode jaap ! if ilow.kcd exists, use it and change colour scheme ! compressed files (ilow.kcd.Z ilow.kcd.gz ilow.kcd.bz2) ! are also permitted. \if not filez ilow.kcd \goto skipdark dark ilow.kcd mode log !skipdark ! do the peak search. Use phichi.vic with two parameters ! 1 = filename of phi scan (assumed frame number 0001) ! 2 = filename of phichi scan (assumed frame number 0001) @phichi(i01f;i02f) @phichi(i03f;i04f) @phichi(i05f;i06f) @phichi(i07f;i08f)
argument | description |
---|---|
i | name of pk files |
0.156 | radius margin |
10.0 | sigma factor intensity differences |
0.05 | edge fraction |
0.01 | Maximum c-vector difference for Friedel merge |
command | default | description |
---|---|---|
help | how to use DirAx | |
levelfit | 1000 | increase for more strict or decrease for more tolerant |
indexfit | 2 | decrease for more strict or increase for more tolerant |
store | save solution | |
lchi | invert fitting/nonfitting reflections | |
go | another go with fitting reflections | |
compare | compare 2 solutions | |
restore | restore a saved solution | |
ccd | save solution |
command | description |
---|---|
help | how to use peakref |
go3 | 3 cycles of refinement |
free rmat | allow cell parameters fo refine |
save | create detector alignment file detalign.vic |
savermat | write refined cell parameters to file |