MAKE_PIXELMAP(1)

NAME
make_pixelmap - create pixelmap from CrystFEL geometry file

SYNOPSIS

make_pixelmap [options] input.geom

make_pixelmap --help

DESCRIPTION
make_pixelmap takes a CrystFEL geometry file as input, and produces an HDF5 "pixel map" as used by Cheetah and OnDA. The HDF5 file will contain three arrays, "/x", "/y" and "/z", containing the x, y and z coordinates for each pixel, respectively, in metres, in real space. The file will also contain "/res" and "/coffset", containing the resolution of the detector (one over the pixel size in metres) and the default coffset value for the detector (or that for the first panel, if there is no default value set).

make_pixelmap currently assumes that the file layout is "slabby", i.e. all of the image data appears in one "slab", with the fs and ss coordinates of each pixel being unique across the entire detector.

With --badmap, make_pixelmap will instead write a map of bad pixels according to the bad regions specified in the geometry file.

OPTIONS

--badmap
    Create a bad pixel mask instead of a pixel geometry map. The values to use for good and bad pixels in this map are given by --good-pixel and --bad-pixel respectively. Note that CrystFEL also has other ways of specifying bad regions, e.g. by providing a separate mask. This program is only concerned with the regions specified using "bad_" in the geometry file.
--good-pixel=n
--bad-pixel=n
    Specify the values to use in the mask for good and bad pixels, respectively. The defaults are --good-pixel=1 and --bad-pixel=0.
-o output.h5
--output=output.h5
    Set the output filename. The default output filename is input.h5, i.e. the input filename with its extension changed to .h5.

AUTHOR
This page was written by Thomas White.

REPORTING BUGS
Report bugs to <taw@physics.org>, or visit <http://www.desy.de/~twhite/crystfel>.

COPYRIGHT AND DISCLAIMER
Copyright © 2015-2021 Deutsches Elektronen-Synchrotron DESY, a research centre of the Helmholtz Association.

make_pixelmap, and this manual, are part of CrystFEL.

CrystFEL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

CrystFEL is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with CrystFEL. If not, see <http://www.gnu.org/licenses/>.

SEE ALSO
crystfel(7), crystfel_geometry(5)