def demodulate_dat(filename, freq, supply_index=False,phase_offset=0):
    """Reads, reshapes and demodulate .dat file

    Parameters
    ----------
    filename : str
        .dat filename
    freq : int
        10 or 15, required to get phases

    Returns
    -------
    demod_data : ndarray
        demodulated data of dtype demod_dtype
    """
    return demodulate(datparsing.create_revdata(datparsing.open_raw(filename),supply_index=supply_index), freq=freq,phase_offset=phase_offset)
Beispiel #2
0
def demodulate_dat(filename, freq, supply_index=False, phase_offset=0):
    """Reads, reshapes and demodulate .dat file

    Parameters
    ----------
    filename : str
        .dat filename
    freq : int
        10 or 15, required to get phases

    Returns
    -------
    demod_data : ndarray
        demodulated data of dtype demod_dtype
    """
    return demodulate(datparsing.create_revdata(datparsing.open_raw(filename),
                                                supply_index=supply_index),
                      freq=freq,
                      phase_offset=phase_offset)