nenupy.schedule.contamination


Bright Source Contamination

class nenupy.schedule.contamination.BeamLobes(time, frequency, pointing, nenufar_config=<nenupy.instru.nenufar.NenuFAR_Configuration object>, miniarray_rotations=None, use_antenna_gain=True)[source]

Bases: object

compute_moc(relative_threshold=0.5, return_array=False)[source]

Computes the MOC as sky patches where the array factor is above \({\rm max}(\mathcal{F}_{\rm MA}) \times r\). \(\mathcal{F}_{\rm MA}\) is the Mini-Array(s) normalized array factor and \(r\) is the relative_threshold.

Parameters:

relative_threshold – All the AF values above this threshold are included in the MOC.

compute_weight_moc(sources, thresholds=array([0.01, 0.01584893, 0.02511886, 0.03981072, 0.06309573, 0.1, 0.15848932, 0.25118864, 0.39810717, 0.63095734]))[source]

Compute moc with arrays of values between 0 and 1.

gsm_in_lobes(temperature_threshold=15000)[source]
property miniarray_rotations
plot(time, frequency, **kwargs)[source]

Plots the figure.

plot()

sources_in_lobes(sources)[source]
class nenupy.schedule.contamination.SourceInLobes(time, frequency, value)[source]

Bases: object

export(filename, in_bytes=False)[source]

Exports the time-frequency contamination array in FITS. The mask being either in floats or in bytes. :param filename:

FITS file name.

Parameters:

in_bytes (bool) – Set to True to convert the mask array to bytes. Default is False.

classmethod from_fits(filename)[source]
property lst_time

Returns the times associated with the SourceInLobe object in Local Sidereal Time.

plot(time_unit='utc', **kwargs)[source]
Parameters:

time_unit (str) – To select in which units the time axe is to be displayed : ‘utc’ or ‘lst’. Default is ‘utc’. For pcolormesh to plot correctly the data, the time list in the wanted unit should be monotonous.