File: densify_Bragg.rst

package info (click to toggle)
python-fabio 2024.9.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,844 kB
  • sloc: python: 21,160; ansic: 1,126; lisp: 450; makefile: 253; sh: 244
file content (78 lines) | stat: -rw-r--r-- 1,903 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
Densify_Bragg
=============

``densify_Bragg`` is a tool to decompress the sparse data-format used at the ESRF-ID29 beamline with the 
Jungfrau detector.

Each file stores the information for a few thousands frames, each frame is composed of:

* a background profile with the associated uncertainties
* a list of pixel values and positions. 

The decompression is called densification since only sparse pixel positions were recorded.
The background can be made more realistic by regenerating some natural looking noise.
Depending on the data reduction software used later-on, noise is needed (XDS) or detrimental (Crysalis)
for subsequent analysis.

Usage
-----

densify_Bragg [-h] [-V] [-v] [--debug] [-l] [-o OUTPUT] [-O FORMAT]
[-D DUMMY] [--dry-run] [-N NOISY] [IMAGE ...]

Positional arguments:
---------------------

IMAGE
   File with sparse images stored in them

Pptions:
--------

**-h**, **--help**
   show this help message and exit

**-V**, **--version**
   output version and exit

**-v**, **--verbose**
   show information for each conversions

**--debug**
   show debug information

Main arguments:
---------------

**-l**, **--list**
   show the list of available output formats and exit

**-o** OUTPUT, **--output** OUTPUT
   output filename, by default {baseame}_densify.h5

**-O** FORMAT, **--output-format** FORMAT
   output format among ``lima``, ``eiger`` ...

**-D** DUMMY, **--dummy** DUMMY
   Set masked values to this dummy value

optional behaviour arguments:
-----------------------------

**--dry-run**
   do everything except modifying the file system

**-N** NOISY, **--noise** NOISY
   Noise scaling factor, from 0 to 1, set to 0 to disable the noise
   reconstruction

Return code: 
++++++++++++

- 0 means a success. 
- 1 means the conversion contains a failure, 
- 2 means there was an error in the arguments


.. command-output:: densify_Bragg --help
    :nostderr: