ValidBaselineSubset#
- class pyvisgen.simulation.observation.ValidBaselineSubset(u_start: Tensor, u_stop: Tensor, u_valid: Tensor, v_start: Tensor, v_stop: Tensor, v_valid: Tensor, w_start: Tensor, w_stop: Tensor, w_valid: Tensor, baseline_nums: Tensor, date: Tensor, q1_start: Tensor, q1_stop: Tensor, q1_valid: Tensor, q2_start: Tensor, q2_stop: Tensor, q2_valid: Tensor, el1_start: Tensor, el1_stop: Tensor, el1_valid: Tensor, el2_start: Tensor, el2_stop: Tensor, el2_valid: Tensor, st_id_pairs: Tensor)[source]#
Bases:
objectValid baselines subset dataclass. Attributes ending on valid are all quantities where at least one baseline pair has contributed to the measurement of the source. Attributes ending on start are starting points for integration windows that end with attributes ending on stop.
- Attributes:
- u_start
Tensor Start value for u coverage integration.
- u_stop
Tensor Stop value for u coverage integration.
- u_valid
Tensor Valid u values.
- v_start
Tensor Start value for v coverage integration.
- v_stop
Tensor Start value for v coverage integration.
- v_valid
Tensor Valid v values.
- w_start
Tensor Start value for w coverage integration.
- w_stop
Tensor Start value for w coverage integration.
- w_valid
Tensor Valid w values.
- baseline_nums
Tensor Numbers of baselines per time step.
- date
Tensor Time steps of the measurement during which at least one baseline pair contributed to the measurement.
- q1_start
Tensor - q1_stop
Tensor - q1_valid
Tensor Valid parallactic angle values (first half of the pair).
- q2_start
Tensor - q2_stop
Tensor - q2_valid
Tensor Valid parallactic angle values (second half of the pair).
- el1_start
tensor() - el1_stop
tensor() - el1_valid
tensor() Valid elevation values (first half of the pair).
- el2_start
tensor() - el2_stop
tensor() - el2_valid
tensor() Valid elevation angle values (second half of the pair).
- st_id_pairs
Tensor Station ID pairs for the valid baselines.
- u_start
Methods Summary
get_timerange(t_start, t_stop)Returns all attributes that fall into the time range [
t_start,t_stop].get_unique_grid(fov, ref_frequency, ...)Returns the unique grid for a given FOV, frequency, and image size.
Methods Documentation
- get_timerange(t_start, t_stop)[source]#
Returns all attributes that fall into the time range [
t_start,t_stop].- Parameters:
- t_startdatetime
Start date.
- t_stopdatetime
End date.
- Returns:
- ValidBaselineSubset
ValidBaselineSubsetdataclass object containing all attributes that fall in the time range betweent_startandt_stop.
- get_unique_grid(fov: float, ref_frequency: float, img_size: int, device: str)[source]#
Returns the unique grid for a given FOV, frequency, and image size.
- Parameters:
- fovfloat
Size of the FOV.
- ref_frequencyfloat
Reference frequency.
- img_sizeint
Size of the image.
- devicestr
Name of the device to run the operation on, e.g.
'cuda'or'cpu'.
- Returns:
- torch.tensor
Tensor containing the unique grid for a given FOV, frequency, and image size.