Module:
sdynpy.fileio.sdynpy_rattlesnakeSource: GitHub
Signature¶
def sdynpy.fileio.sdynpy_rattlesnake.read_random_spectral_data(file, coordinate_override_column=None)Read random-vibration spectral data from a Rattlesnake nc4 file.
Reads the response CPSD, specification CPSD, and drive CPSD arrays that are written to disk while a Rattlesnake Random environment is running (i.e. during active control, not from a system-identification run). Applies response and reference transformation matrices when present.
Parameters¶
file : str or netCDF4.Dataset Path to a Rattlesnake nc4 file, or an already-open
netCDF4.Dataset.coordinate_override_column : str, optional Name of a channel-table column whose string values are parsed as coordinates. When
None(default) coordinates are assembled from thenode_numberandnode_directionchannel-table columns.
Returns¶
response_cpsd : PowerSpectralDensityArray Measured response cross-power spectral density matrix.
spec_cpsd : PowerSpectralDensityArray Specification (target) cross-power spectral density matrix.
drive_cpsd : PowerSpectralDensityArray Drive (output) cross-power spectral density matrix.