nenupy.schedule.contamination.SourceInLobes

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

Bases: object

SourceInLobes object

__init__(time, frequency, value)[source]

Methods

__init__(time, frequency, value)

export(filename[, in_bytes])

Exports the time-frequency contamination array in FITS. The mask being either in floats or in bytes. :param filename: FITS file name. :type filename: str :param in_bytes: Set to True to convert the mask array to bytes. Default is False. :type in_bytes: bool.

from_fits(filename)

plot([time_unit])

Attributes

lst_time

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

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.

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.