irfpy.mnpi.backend_mnpi

Backend of MEX/NPI dataset.

MEX/NPI data set was produced by MatsH. The file is an ascii format containing all the count rate. In addition other misc information is included.

Todo

There is also a “simple” format, i.e. without misc information. This simple format should also be implemented for future use.

Todo

Re-organize the files would be very important. Inteface should be the same.

class irfpy.mnpi.backend_mnpi.MexNpiEntry(linedata)[source]

Bases: object

Instance NPI data.

The NPI data consists of (at least) time and the count rate.

getTime()[source]
getCount()[source]

Return the count.

class irfpy.mnpi.backend_mnpi.MexNpiFile(*args, **kwds)[source]

Bases: irfpy.npicommon.backend.NpiFileCommon

NPI data file for MEX.

NPI data file. Typical usage is as follows.

First, instance the file.

>>> sample = MexNpiFile.get_sample_filename()
>>> npi = MexNpiFile(sample)

Then you can get dataset via getDataset() method. The returned dataset is the instance of irfpy.util.julday.JdSeries.

>>> dataset = npi.getDataset()
>>> print(dataset.size())
360
classmethod get_sample_filename()[source]
loadfile(fp)[source]

Load the file, and store it in the npidata variable.

irfpy.mnpi.backend_mnpi.doctests()[source]