# fft: spectra

> Acceleration spectra worked out on the sensor, one axis per stored record.

The `fft` table holds frequency spectra of the acceleration signal. The sensor computes them itself, over a 20-second stretch of data, and sends one spectrum per axis. Each spectrum gives the vibration amplitude at each frequency.

## Fields

| Field | Type | Unit | Description |
| --- | --- | --- | --- |
| `fft` | series | g | One spectrum, keyed by frequency in Hz. Only with `merge=false`. |
| `axis` | string | | Axis of the spectrum: `"0"` for X, `"1"` for Y, `"2"` for Z. Only with `merge=false`. |
| `fft_x`, `fft_y`, `fft_z` | series | g | The three spectra of one UTC hour. Only with `merge=true`. With `combined_tuple` or `combined_dict` they become one `fft` series keyed by `freq`. |
| `odr` | number | Hz | Output data rate of the signal the spectrum was computed from. Only with `merge=false`. |
| `scale` | number | g | Full-scale range of the accelerometer. Only with `merge=false`. |

## Merging

With `merge=true` (the default), the API joins the X, Y and Z records of each UTC hour into one item with `fft_x`, `fft_y` and `fft_z`. Its `time` and `datetime` are those of the hour's first record. With `merge=false`, each axis is a separate item.

> **Frequency axis:** The API currently builds the frequency keys for the standard 50 Hz output data rate. If your device runs at another rate, contact us before you rely on the frequency axis of this table.

The `data` table also lists the two strongest peaks of each spectrum, with their frequency and amplitude. See [data: summaries and tilt](https://asense.semitronica.pt/docs/data-model/data/).

Source page: https://asense.semitronica.pt/docs/data-model/fft/
