Jiffies: Difference between revisions

107 bytes added ,  15 November 2007
m
no edit summary
(New page: Here are two one-liners for your .cshrc (FIXME: or should these lines go into .login or .profile?) : alias sortlattices "egrep '^ .. [aomhtc]' IDXREF.LP | sort -k3n | head -12" ...)
 
mNo edit summary
Line 1: Line 1:
Here are two one-liners for your .cshrc (FIXME: or should these lines go into .login or .profile?) :
Here are two one-liners for your .cshrc (FIXME: or should these lines go into .login or .profile?) :


alias sortlattices "egrep '^    ..        [aomhtc]' IDXREF.LP | sort -k3n | head -12"
alias sortlattices "egrep '^    ..        [aomhtc]' IDXREF.LP | sort -k3n | head -12"
 
alias scalefactors "egrep ' ....  0 ......  .......  ..  .....    ....  ...  ......  ......' INTEGRATE.LP"
and
 
alias scalefactors "egrep ' ....  0 ......  .......  ..  .....    ....  ...  ......  ......' INTEGRATE.LP"


FIXME: what are these lines in bash syntax?
FIXME: what are these lines in bash syntax?


For the not-so-Unix-proficient-ones: sortlattices runs on IDXREF.LP the following commands:  
For the not-so-Unix-proficient-ones: ''sortlattices'' runs on IDXREF.LP the following commands:  
# grep (for finding lines that are non-blank at two positions and have one out of the characters 'aomtc' later in the line)
# grep (for finding lines that are non-blank at two positions and have one out of the characters 'aomtc' later in the line)
# sorts these lines on the third column, numerically, ascending
# sorts these lines on the third column, numerically, ascending
Line 15: Line 12:
Each command pipes its output to the next command.
Each command pipes its output to the next command.


scalefactors finds those lines in INTEGRATE.LP which match a certain pattern of blanks and non-blanks. These are just the lines printed for each frame. It is very useful to run "scalefactors > frames.scales", and to plot the scale factors and mosaicity and beam divergence of each frame in gnuplot.
''scalefactors'' finds those lines in INTEGRATE.LP which match a certain pattern of blanks and non-blanks. These are just the lines printed for each frame. It is very useful (e.g. to find shutter problems, or to "see" the crystal die from radiation damage) to run  
scalefactors > frames.scales
and to plot the scale factors and mosaicity and beam divergence of each frame in gnuplot.


This can be done by
This can be done by
 
  > gnuplot
  gnuplot
  plot "frames.scales" using 1:2
  plot "frames.scales" using 1:2
or
or
  plot "frames.scales" using 1:2
> gnuplot
  plot "frames.scales" using 1:9
or
or
> gnuplot
  plot "frames.scales" using 1:2
  plot "frames.scales" using 1:2
2,684

edits