Baselines#
- class pyvisgen.simulation.Baselines(st1: Tensor, st2: Tensor, u: Tensor, v: Tensor, w: Tensor, valid: Tensor, time: Tensor, q1: Tensor, q2: Tensor, el1: Tensor, el2: Tensor)[source]#
Bases:
objectThe Baselines dataclass comprises of data on station combinations, the u, v, and w coverage, validity of the measured data points (i.e. whether the source is visible for the antenna pairs, or not), observation time and parallactic angles for each baseline pair.
- Attributes:
- st1
Tensor() Station IDs for antenna pairs.
- st2
Tensor() Station IDs for antenna pairs.
- u
Tensor() u coordinate coverage.
- v
Tensor() v coordinate coverage.
- w
Tensor() w coordinate coverage.
- valid
Tensor() Mask of valid values, i.e. where the source is visible to the antenna pairs.
- time
Tensor() Tensor of observation time steps.
- q1
Tensor() Tensor of parallactic angle values.
- q2
Tensor() Tensor of parallactic angle values.
- el1
Tensor() Tensor of elevations for ant 1
- el2
Tensor() Tensor of elevations for ant 2
- st1
Attributes Summary
Methods Summary
add_baseline(baselines)Adds a new baseline to the dataclass object.
get_valid_subset(num_baselines, device)Returns a valid subset of the baselines using the information stored in the
validfield.Attributes Documentation
Methods Documentation
- get_valid_subset(num_baselines: int, device: str)[source]#
Returns a valid subset of the baselines using the information stored in the
validfield.- Parameters:
- num_baselinesint
Number of baselines used in the observation.
- devicestr
Name of the device to run the operation on, e.g.
'cuda'or'cpu'.
- Returns:
- ValidBaselineSubset
ValidBaselineSubsetdataclass object containing valid u, v, and w coverage, observation time steps, numbers of baselines, and parallactic angles.