Resample Dataset (do not use) experimental
This script (dataset/tasks/20_ResampleData.script, a C-shell script
from Focus) resamples a single MRC, CCP4 or MAP file to another pixel size by
Fourier cropping or padding, and can then crop or pad the result in real space to
a chosen box size. It is a general-purpose tool, not tied to the particles of the
project.
Not working in 4d at present, as its title says. Its parameters
(
resample_input, resample_output,
resample_sample_pixel, resample_new_sample_pixel,
resample_newbox_doit, resample_newbox,
resample_threed) are not defined in the current parameter files, so
the Parameters panel shows nothing to set, and the Python helper it calls,
focus.resample, is not part of 4d. The script is kept for reference
until it is ported; proc/resample.py is a starting point.
What it was meant to do
| Parameter | Role |
|---|---|
resample_input | The file to resample. |
resample_output | A suffix for the output, written next to the input as <input>_<suffix>.<ext>. |
resample_sample_pixel | The pixel size of the input in Ångström; −1 takes it from the file header. |
resample_new_sample_pixel | The pixel size wanted. |
resample_newbox_doit, resample_newbox | Whether, and to which size, the resampled data is cropped or padded in real space afterwards. |
resample_threed | Treat the file as a 3D volume rather than a stack of 2D images. |
It would call focus.resample with these options and list the input
and the output as result images.