run_input¶
This script processes input data from LISA data challenge files, converts XYZ data to AET format, chunks the data into segments, and saves the processed data to HDF5 files.
- utilities.run_input.AET(X, Y, Z)¶
- utilities.run_input.XYZ2AET(file, Tobs)¶
Convert XYZ data to AET format from an HDF5 file. :param file: Path to the HDF5 file containing XYZ data. :type file: str :param Tobs: Observation time. :type Tobs: float
- Returns:
A, E, T arrays and time array.
- Return type:
tuple
- utilities.run_input.chunk_data(chunk_T, n_chunks, nseg, A, E, t, path)¶
Chunk the data into segments of specified length and save to HDF5 files. :param chunk_T: Length of each chunk in seconds. :type chunk_T: float :param n_chunks: Number of chunks to create. :type n_chunks: int :param nseg: Number of segments for averaging. :type nseg: int :param A: A data array. :type A: np.ndarray :param E: E data array. :type E: np.ndarray :param t: Time array. :type t: np.ndarray :param path: Path to save the output files. :type path: str
- Returns:
Saves the chunked data to HDF5 files.
- Return type:
None
- utilities.run_input.main()¶
To run inference:
bahamas_input --file /path/to/file --chunk_T 2 --n_chunks 54 --nseg 1000 --path /path/to/output