Protomix.zero_fillingΒΆ
- zero_filling(fid_df: DataFrame, acqus_df: DataFrame, target_points: int = 5000) DataFrame[source]
Zero-fill FID signals in a DataFrame to achieve the target number of points.
This function adds zeros to the end of each FID signal in the provided DataFrame until the specified target number of points is reached. Zero-filling is commonly used to increase the resolution of the Fourier-transformed spectra.
- Parameters:
fid_df (pd.DataFrame) β A DataFrame containing FID signals, with each row representing an individual FID signal.
acqus_df (pd.DataFrame) β A DataFrame containing acquisition parameters relevant to the FID signals.
target_points (int) β The target number of points for each FID signal after zero-filling. Default is 5000.
- Returns:
A DataFrame with FID signals that have been zero-filled to the specified target number of points.
- Return type:
pd.DataFrame