BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Static Public Member Functions | |
static OutputData< double > * | readOutputData (const std::string &file_name) |
static OutputData< double > * | readReflectometryData (const std::string &file_name) |
static IHistogram * | readIntensityData (const std::string &file_name) |
static void | writeOutputData (const OutputData< double > &data, const std::string &file_name) |
static void | writeIntensityData (const IHistogram &histogram, const std::string &file_name) |
static void | writeSimulationResult (const SimulationResult &result, const std::string &file_name) |
Provides users with possibility to read and write IntensityData from/to files in different format.
Type of the file will be deduced from file name. *.txt - ASCII file with 2D array [nrow][ncol], layout as in numpy. *.int - BornAgain internal ASCII format. *.tif - 32-bits tiff file. If file name ends woth "*.gz" or "*.bz2" the file will be zipped on the fly using appropriate algorithm.
Usage:
Definition at line 46 of file IntensityDataIOFactory.h.
|
static |
Reads file and returns newly created OutputData object.
Definition at line 25 of file IntensityDataIOFactory.cpp.
References OutputDataReadFactory::getReader(), and FileSystemUtils::IsFileExists().
Referenced by readIntensityData().
|
static |
Definition at line 35 of file IntensityDataIOFactory.cpp.
References OutputDataReadFactory::getReflectometryReader(), and FileSystemUtils::IsFileExists().
|
static |
Reads file and returns newly created Histogram object.
Definition at line 46 of file IntensityDataIOFactory.cpp.
References IHistogram::createHistogram(), and readOutputData().
Referenced by IHistogram::createFrom(), and IHistogram::load().
|
static |
Writes OutputData in file.
Definition at line 54 of file IntensityDataIOFactory.cpp.
References OutputDataWriteFactory::getWriter().
Referenced by writeIntensityData(), and writeSimulationResult().
|
static |
Writes histogram in file.
Definition at line 62 of file IntensityDataIOFactory.cpp.
References IHistogram::createOutputData(), and writeOutputData().
Referenced by IHistogram::save().
|
static |
Writes OutputData contained in the given SimulationResult object.
Definition at line 69 of file IntensityDataIOFactory.cpp.
References SimulationResult::data(), and writeOutputData().