drs4.specs.csv module#

class drs4.specs.csv.CSVAutos(time: ~typing.Annotated[~drs4.specs.common.Time | ~typing.Any, <Role.COORD: 'coord'>], chan: ~typing.Annotated[~drs4.specs.common.Chan | ~typing.Any, <Role.COORD: 'coord'>], auto_usb: ~typing.Annotated[~drs4.specs.common.AutoUSB | ~typing.Any, <Role.DATA: 'data'>], auto_lsb: ~typing.Annotated[~drs4.specs.common.AutoLSB | ~typing.Any, <Role.DATA: 'data'>])[source]#

Bases: AsDataset

Data specification of DRS4 CSV (auto-correlations).

auto_lsb: DATA: 'data'>]#

Auto-correlation spectra of LSB.

auto_usb: DATA: 'data'>]#

Auto-correlation spectra of USB.

chan: COORD: 'coord'>]#

Channel number (0-511).

spec_version: ATTR: 'attr'>] = 0#

Version of the data specification.

time: COORD: 'coord'>]#

Measured time in UTC.

class drs4.specs.csv.CSVCross(time: ~typing.Annotated[~drs4.specs.common.Time | ~typing.Any, <Role.COORD: 'coord'>], chan: ~typing.Annotated[~drs4.specs.common.Chan | ~typing.Any, <Role.COORD: 'coord'>], cross_2sb: ~typing.Annotated[~drs4.specs.common.Cross2SB | ~typing.Any, <Role.DATA: 'data'>])[source]#

Bases: AsDataset

Data specification of DRS4 CSV (cross-correlation).

chan: COORD: 'coord'>]#

Channel number (0-511).

cross_2sb: DATA: 'data'>]#

Cross-correlation spectra of 2SB (USB x LSB*).

spec_version: ATTR: 'attr'>] = 0#

Version of the data specification.

time: COORD: 'coord'>]#

Measured time in UTC.

drs4.specs.csv.open_csv_autos(csv: PathLike[str] | str, /) Dataset[source]#

Open a CSV file of auto-correlations as a Dataset.

Parameters:

csv – Path of input CSV file (e.g. new_pow.csv).

Returns:

Dataset of the input CSV file.

drs4.specs.csv.open_csv_cross(csv: PathLike[str] | str, /) Dataset[source]#

Open a CSV file of cross-correlation as a Dataset.

Parameters:

csv – Path of input CSV file (e.g. new_phase.csv).

Returns:

Dataset of the input CSV file.