4d — Resample Dataset

Datasets scripts · 4d User Manual

← Back to the Datasets tab

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

ParameterRole
resample_inputThe file to resample.
resample_outputA suffix for the output, written next to the input as <input>_<suffix>.<ext>.
resample_sample_pixelThe pixel size of the input in Ångström; −1 takes it from the file header.
resample_new_sample_pixelThe pixel size wanted.
resample_newbox_doit, resample_newboxWhether, and to which size, the resampled data is cropped or padded in real space afterwards.
resample_threedTreat 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.