Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: None
-
Labels:
-
Story Points:1
-
Sprint:TSSW Sprint - Jul 18 - Aug 01
-
Team:Telescope and Site
-
Urgent?:No
Description
The units reported by the LabJackAccelerometerDataClient for acceleration PSD are wrong in several ways:
- ts_config_ocs: the scales need to be inverted. They should be in units of (m/s2)/V rather than V/(m/s2).
- ts_ess_labjack: the data needs scaling to take into account the sampling rate and possibly the number of datapoints. A discrete Fourier transform (DFT) has the same units as the input. Thus it needs to be scaled by something like the sampling rate to give input units / Hz. Furthermore the 0th element is the sum of all input elements, suggesting that the output of the DFT should be divided by the number of input elements.
- ts_xml: the claimed units are m2 / (Hz s4). They should be m2 / (Hz2 s4) – Hz needs to be squared.
Attachments
Issue Links
- relates to
-
CAP-931 Catch all ticket for TSSW XML 13.0 work
-
- Done
-
I also added method psd_from_scaled_data to LabJackAccelerometerDataClient and modified the unit test file for this class to test that method and centralize computation of raw data and predicted PSDs.
Pull requests: