PSD to Time Series OML Utility


Overview:
This OML utility generates a time-domain realization of a signal from a PSD given as an input and writes it in a CSV file. It allows for visualization of both PSD and realization of the signal.
The input PSD must be stored in a CSV file containing two columns, frequency [Hz] and magnitude. E.g.:
5,1.41E-02
7,0.122
8.25,0.122
10.7,0.01407
12.5,0.02815
15.5,0.01642
25,0.01642
30,0.001876
40,4.69E-04
100,7.04E-05
150,5.86E-04
165,3.52E-05
250,1.64E-05
Note: The file shouldn't have headers.
The signal realization can have any duration. This can be adjusted from the text box in the GUI.
Output file will be arranged in two columns: time [s] and signal magnitude.
Prerequisite:
Users should have Compose installed, as well as a CSV file containing the PSD profile from which a time-domain signal needs to be generated.
Usage/Installation Instructions:
- Extract files and keep them in the same directory.
- Open and run PSD2TimeSeries Utility.oml in Compose.
- Select input PSD file.
- Define location of output file. It will be named the same as the input file plus _timeSeries.csv. E.g., input = myPSD.csv, output = myPSD_timeSeries.csv.
- Define desired duration of the generated time-domain signal.
- Click RUN.
- Inspect plots and output file.
Release Version:
This script was written in Compose 2024.1 but should work in any recent Compose version.