---
name: "detector2nexus"
section: "1"
platform: "linux"
package: "pyfai"
version: "0.21.3+dfsg1-4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/detector2nexus"
---

# detector2nexus(1)

Converts a detector description into a NeXus detector usable by other pyFAI utilities

## NAME

detector2nexus', - Converts a detector description into a NeXus detector usable by other pyFAI utilities

## DESCRIPTION

\['/tmp/tmpji0ax5w8/detector2nexus', '--help'\] usage: detector2nexus \[options\] \[options\] **-o** nxs.h5

Convert a complex detector definition (multiple modules, possibly in 3D) into a single NeXus detector definition together with the mask (and much more in the future)

### options:

- **-h**, **--help**

  show this help message and exit

- **-V**, **--version**

  show program's version number and exit

- **-o** OUTPUT, **--output** OUTPUT

  Output nexus file, unless detector\_name.h5

- **-n** NAME, **--name** NAME

  name of the detector

- **-m** MASK, **--mask** MASK

  mask corresponding to the detector

- **-D** DETECTOR, **--detector** DETECTOR

  Base detector name (see documentation of pyFAI.detectors

- **-s** SPLINEFILE, **--splinefile** SPLINEFILE

  Geometric distortion file from FIT2D

- **--dx** DX, **--x-corr** DX

  Geometric correction for pilatus

- **--dy** DY, **--y-corr** DY

  Geometric correction for pilatus

- **-p** PIXEL, **--pixel** PIXEL

  pixel size (comma separated): x,y

- **-S** SHAPE, **--shape** SHAPE

  shape of the detector (comma separated): x,y

- **-d** DARK, **--dark** DARK

  Dark noise to be subtracted

- **-f** FLAT, **--flat** FLAT

  Flat field correction

- **-v**, **--verbose**

  switch to verbose/debug mode

This summarizes detector2nexus

detector2nexus version 0.21.3 from 03/02/2022
