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: object

Valid 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_startTensor

Start value for u coverage integration.

u_stopTensor

Stop value for u coverage integration.

u_validTensor

Valid u values.

v_startTensor

Start value for v coverage integration.

v_stopTensor

Start value for v coverage integration.

v_validTensor

Valid v values.

w_startTensor

Start value for w coverage integration.

w_stopTensor

Start value for w coverage integration.

w_validTensor

Valid w values.

baseline_numsTensor

Numbers of baselines per time step.

dateTensor

Time steps of the measurement during which at least one baseline pair contributed to the measurement.

q1_startTensor
q1_stopTensor
q1_validTensor

Valid parallactic angle values (first half of the pair).

q2_startTensor
q2_stopTensor
q2_validTensor

Valid parallactic angle values (second half of the pair).

el1_starttensor()
el1_stoptensor()
el1_validtensor()

Valid elevation values (first half of the pair).

el2_starttensor()
el2_stoptensor()
el2_validtensor()

Valid elevation angle values (second half of the pair).

st_id_pairsTensor

Station ID pairs for the valid baselines.

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

ValidBaselineSubset dataclass object containing all attributes that fall in the time range between t_start and t_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.