Example #1
0
 def num_channels(self, t):
     """
     Set the number of channels in the HDF5 file
     :param t:
     :return:
     """
     set_attr(self._hdf5, NUM_CHANNELS, t)
Example #2
0
 def additional_metadata(self, metadata):
     """
     Set the metadata associated with the observation.
     :param metadata:
     :return:
     """
     set_attr(self._hdf5, ADDITIONAL_METADATA, metadata)
Example #3
0
 def original_file_name(self, name):
     """
     Set the original name of the file that contained the observation.
     :param name:
     :return:
     """
     set_attr(self._hdf5, FILE_NAME, name)
Example #4
0
 def original_file_type(self, t):
     """
     Set the original type of the file that contained the observation.
     :param t:
     :return:
     """
     set_attr(self._hdf5, FILE_TYPE, t)
Example #5
0
 def length_seconds(self, length):
     """
     Set the duration of the observation in seconds
     :param length:
     :return:
     """
     set_attr(self._hdf5, LENGTH_SECONDS, length)
Example #6
0
 def sample_rate(self, rate):
     """
     Set the sample rate in samples per second
     :param rate:
     :return:
     """
     set_attr(self._hdf5, SAMPLE_RATE, rate)
Example #7
0
 def antenna_name(self, name):
     """
     Set the antenna name of this channel
     :param name:
     :return:
     """
     set_attr(self._hdf5, ANTENNA_NAME, name)
Example #8
0
 def start_time(self, time):
     """
     Set observation the start time as a unix epoch in milliseconds
     :param time:
     :return:
     """
     set_attr(self._hdf5, START_TIME, time)
Example #9
0
 def freq_end(self, freq):
     """
     Set the end freq of this channel in MHz
     :param freq:
     :return:
     """
     set_attr(self._dataset, FREQ_END, freq)
Example #10
0
 def observation_name(self, name):
     """
     Set the observation name
     :param name:
     :return:
     """
     set_attr(self._hdf5, OBSERVATION_NAME, name)
Example #11
0
 def freq_start(self, freq):
     """
     Set the start freq of this channel in MHz
     :param freq:
     :return:
     """
     set_attr(self._dataset, FREQ_START, freq)
 def max_abs(self, value):
     set_attr(self._dataset, MAX_ABS, value)
 def min_abs(self, value):
     set_attr(self._dataset, MIN_ABS, value)
 def max_angle(self, value):
     set_attr(self._dataset, MAX_ANGLE, value)
 def min_angle(self, value):
     set_attr(self._dataset, MIN_ANGLE, value)