Baselines#
- class pyvisgen.simulation.observation.Baselines(st1: tensor, st2: tensor, u: tensor, v: tensor, w: tensor, valid: tensor, time: tensor, q1: tensor, q2: 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.
- st1
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.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.