quickstart.rst 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. .. Copyright (C) 2011 - 2013 Stefano Mazzucco <stefano.mazzucco@gmail.com>.
  2. Permission is granted to copy, distribute and/or modify this document
  3. under the terms of the GNU Free Documentation License, Version 1.3
  4. or any later version published by the Free Software Foundation;
  5. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
  6. A copy of the license is included in the section entitled "GNU
  7. Free Documentation License".
  8. Quickstart
  9. **********
  10. Graphical User Interface
  11. ========================
  12. The easiest and fastest way to run Crystal Ball Plus is to launch its simple graphical user interface (GUI).
  13. In a GNU/Linux terminal, type:
  14. .. code-block:: bash
  15. $ crystalballplus -GUI
  16. The GUI will pop up:
  17. .. image:: images/crystalballplus_GUI.png
  18. :alt: Crystal Ball Plus GUI
  19. :align: left
  20. .. NOTE::
  21. You will need `wxPython <http://www.wxpython.org/>`_ installed for the GUI to work. Also, the executable ``crystalballplus`` must be in your environment variable ``$PATH`` (see also :doc:`install`).
  22. On the left side of the window, the control panel allows you to select both the input and reference files. These files should be text files with the **dfg** extension (see :doc:`fileformat`).
  23. #. Use the radio buttons to specify whether you are selecting a single **dfg** file (*File*) or all the **dfg** files contained within a given folder (*Folder*)
  24. #. Click on *Select Input* to browse the file or folder
  25. #. The name of the selected file or folder will appear in the textbox in the second row.
  26. Similarly, click on the *Select Reference* button to select the reference files from a reference database.
  27. Now you should click on the *START* button to initiate the procedure.
  28. On the right side of the window there are two *read-only* tabs that will display respectively the d-spacings and angles reports. Click on the *Save* button while visualizing a given report to save it.
  29. A few parameters can be manually adjusted. To do so, press :kbd:`Ctrl+P` or go to :menuselection:`Main --> Configure Parameters` to display the configuration window:
  30. .. image:: images/crystalballplus_params.png
  31. :alt: Crystal Ball Plus parameters window
  32. :align: left
  33. The options are:
  34. * the maximum *percent error* within the *d-spacings* and *angles* will be considered to match (defaults respectively to 1% and 5%)
  35. * whether *any* or *all* the angles of the diffraction pattern should be within the given *percent error*
  36. * whether the non-matching structures should be reported (see :doc:`reports`)
  37. You can follow state of the current run on the progress and status bars.
  38. You can quit the program by pressing :kbd:`Ctrl+Q` or by going to :menuselection:`Main --> Quit`.
  39. Text Interface
  40. ===============
  41. The text interface is a little bit more complicated, but it is a useful tool if one wants to perform several runs in a batch (e.g. overnight). Also, you will have to run the text interface if wxPython is not installed.
  42. The options are:
  43. .. code-block:: bash
  44. crystalballplus [-i input_path][-r reference_path]
  45. [-d_err d_error][-a_err angle_error]
  46. [-check all|any][-o][-d d_report][-a angle_report]
  47. +--------------------+-----------------------------------+
  48. | OPTIONS | DESCRIPTION |
  49. +====================+===================================+
  50. | -i <input_path> | path to input file(s). |
  51. +--------------------+-----------------------------------+
  52. | -r <ref_path> | path to reference file(s). |
  53. +--------------------+-----------------------------------+
  54. | -d_err <d_error> | d-spacing error in %. |
  55. +--------------------+-----------------------------------+
  56. | -a_err <a_error> | angle error in %. |
  57. +--------------------+-----------------------------------+
  58. | -check <all | any> | angle check option. |
  59. +--------------------+-----------------------------------+
  60. | -d <d_report> | d-spacing report file. |
  61. +--------------------+-----------------------------------+
  62. | -a <ang_report> | angles report file. |
  63. +--------------------+-----------------------------------+
  64. | -o | overwrite repots. |
  65. +--------------------+-----------------------------------+
  66. During the run, useful information will be printed on the standard output.
  67. Help Message
  68. =============
  69. If you are lost, try the help message:
  70. .. code-block:: bash
  71. $ crystalballplus -h
  72. Usage:
  73. crystalballplus [[-GUI][-i input_path][-r reference_path]
  74. [-d_err d_error][-a_err angle_error][-check all|any][-o]
  75. [-d d_report][-a angle_report][-h]]
  76. Load the input and reference files (extension: .dfg),
  77. and save the results in two report files (text format).
  78. The user will be prompted to insert the parameters that have not
  79. been specified.
  80. OPTIONS
  81. -GUI : start the GUI
  82. -i <input_path> : path to input file(s).
  83. -r <reference_path> : path to reference file(s).
  84. -d_err <d_error> : d-spacing error in %.
  85. -a_err <a_error> : angle error in %.
  86. -check <all | any> : angle check option.
  87. -d <d_report> : d-spacing report file.
  88. -a <angle_report> : angles report file.
  89. -o : overwrite repots.
  90. -v : print version and exit.
  91. -h : print this message and exit.