generate_envelope_report
Generate professional envelope analysis reports from vibration signals to detect bearing faults and machinery issues. Saves HTML report with peak detection and customizable filtering.
Instructions
Generate professional envelope analysis report as HTML file.
**NEW PREFERRED METHOD**: Generates a professional HTML report file
instead of inline content. Saves to reports/ directory.
Args:
signal_file: Signal filename in data/signals/
sampling_rate: Sampling rate in Hz (auto-detect if None)
filter_low: Bandpass filter low cutoff (Hz). Default 500 Hz
filter_high: Bandpass filter high cutoff (Hz). Default 5000 Hz
max_freq: Max envelope spectrum frequency to display. Default 500 Hz
num_peaks: Number of peaks to detect. Default 15
bearing_freqs: Optional dict with BPFO, BPFI, BSF, FTF
ctx: MCP context
Returns:
Dictionary with file path, metadata, and summary (NO HTML content)
Example:
>>> result = generate_envelope_report(
... "real_train/OuterRaceFault_1.csv",
... bearing_freqs={"BPFO": 81.13, "BPFI": 118.88, "BSF": 63.91, "FTF": 14.84}
... )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signal_file | Yes | ||
| sampling_rate | No | ||
| filter_low | No | ||
| filter_high | No | ||
| max_freq | No | ||
| num_peaks | No | ||
| bearing_freqs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||