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.
- 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 ofirfpy.util.julday.JdSeries
.>>> dataset = npi.getDataset() >>> print(dataset.size()) 360