# ZF - Zero filling (nmrPipe function)

### From NMR Wiki

Zero filling function adds zeros to the data vectors to either increase digital resolution or prepare the data for the Hilbert transformation.

The function can also be used to truncate data vectors.

Zeroes are added or points removed on both real and complex part (if present) of data vectors.

Note that final data size of n = 2^{i}, where i is integer speeds up the fourier transformation.

## Examples

The most frequent use. Add zeros to the end of data vector or remove data points from the end of vectors to final size of cerain number of points (256 in this example)

nmrPipe -fn ZF -size 256

## Options

option | type of value | default value | meaning |

-zf | integer | 1 | number of times to double vector size |

-pad | integer | 0 (?) | number of zeros to add in the end of data vectors |

-size | integer | current point count (?) | final size of data vectors after adding zeroes |

-auto | flag, no value | not used | will round size of data vector to the nearest power of 2, consistent with other options |

-mid | flag, no value | not used | insert data in the middle of data vectors instead of inserting it in the end |

-inv | flag, no value | not used | remove zeroes from the inverse FT-processed data |