#include "us_convert.h"
Classes | |
class | Excludes |
Class to contain a list of scans to exclude from a data set for a single c/c/w combination. More... | |
class | TripleInfo |
Class that contains information about relevant cell/channel/wavelength combinations. More... | |
Public Types | |
enum | ioError { OK, CANTOPEN, DUP_RUNID, NOPERSON, NODATA, NODB, NOAUC, NOXML, BADXML, BADGUID, PARTIAL_XML, NOT_WRITTEN } |
Some status codes returned by the us_convert program. More... | |
Public Member Functions | |
US_Convert (void) | |
Generic constructor for the US_Convert class. This constructor establishes the dialog and its relationship to the parent dialog. More... | |
Static Public Member Functions | |
static void | readLegacyData (QString, QList< US_DataIO::BeckmanRawScan > &, QString &) |
Reads the legacy raw data from disk into the program. More... | |
static void | convertLegacyData (QList< US_DataIO::BeckmanRawScan > &, QVector< US_DataIO::RawData > &, QList< TripleInfo > &, QString, double) |
Converts legacy raw data into US3 data. This function will convert existing datapoints and cell/channel/wavelength combinations in the data. More... | |
static int | saveToDisk (QVector< US_DataIO::RawData * > &, QList< TripleInfo > &, QVector< Excludes > &, QString, QString, QString, bool) |
Writes the converted US3 data to disk. More... | |
static int | readUS3Disk (QString, QVector< US_DataIO::RawData > &, QList< TripleInfo > &, QString &) |
Reloads converted US3 data back into the program to sync up with the database. More... | |
static void | splitRAData (QVector< US_DataIO::RawData > &, QList< TripleInfo > &, int, QList< double > &) |
Splits existing raw converted data into multiple datasets. Also rearranges triples in the data accordingly. More... | |
Static Private Member Functions | |
static void | convert (QList< US_DataIO::BeckmanRawScan > &rawLegacyData, US_DataIO::RawData &newRawData, QString triple, QString runType, double tolerance) |
static void | setTriples (QList< US_DataIO::BeckmanRawScan > &rawLegacyData, QList< TripleInfo > &triples, QString runType, double tolerance) |
static void | setCcwTriples (QList< US_DataIO::BeckmanRawScan > &rawLegacyData, QList< TripleInfo > &triples, double tolerance) |
static void | setCcrTriples (QList< US_DataIO::BeckmanRawScan > &rawLegacyData, QList< TripleInfo > &triples, double tolerance) |
static void | setInterpolated (unsigned char *, int) |
static US_DataIO::Scan | newScanSubset (US_DataIO::Scan &oldScan, QVector< double > &radii, double r_start, double r_end) |
This class provides the ability to convert raw data in the Beckman format to the file format used by US3.
Definition at line 12 of file us_convert.h.
enum US_Convert::ioError |
Some status codes returned by the us_convert program.
Definition at line 16 of file us_convert.h.
US_Convert::US_Convert | ( | void | ) |
Generic constructor for the US_Convert class. This constructor establishes the dialog and its relationship to the parent dialog.
Definition at line 14 of file us_convert.cpp.
|
staticprivate |
Definition at line 353 of file us_convert.cpp.
|
static |
Converts legacy raw data into US3 data. This function will convert existing datapoints and cell/channel/wavelength combinations in the data.
rawLegacyData | A reference to a structure provided by the calling function that already contains the imported raw data. |
rawConvertedData | A reference to a structure provided by the calling function that will be used to store the US3 raw converted data. |
triples | A reference to a structure provided by the calling function that will be used to store all the different cell/channel/wavelength combinations found in the data. |
runType | A reference to a variable that already contains the type of data ( "RA", "IP", "RI", "FI", "WA", or "WI"). This information will affect how the data is converted. |
tolerance | How far apart the wavelength readings can be and still be considered part of the same cell/channel/wavelength. |
Definition at line 123 of file us_convert.cpp.
|
staticprivate |
Definition at line 708 of file us_convert.cpp.
|
static |
Reads the legacy raw data from disk into the program.
dir | The directory in which the program will look for the raw data files. |
rawLegacyData | A reference to a structure provided by the calling function that will be used to store the imported raw data. |
runType | A reference to a variable that will contain the type of data that is being read ( "RA", "IP", "RI", "FI", "WA", or "WI"). This determination already affects how some data is handled when read. |
Definition at line 18 of file us_convert.cpp.
|
static |
Reloads converted US3 data back into the program to sync up with the database.
dir | The directory that contains the auc files |
rawConvertedData | A reference to a structure provided by the calling function that will be used to store the US3 raw converted data. |
triples | A reference to a structure provided by the calling function that will be used to store all the different cell/channel/wavelength combinations found in the data. |
runType | A reference to a variable that already contains the type of data ( "RA", "IP", "RI", "FI", "WA", or "WI"). This information will affect how the data is converted. |
Definition at line 293 of file us_convert.cpp.
|
static |
Writes the converted US3 data to disk.
rawConvertedData | A reference to a structure provided by the calling function that already contains the US3 raw converted data. |
triples | A reference to a structure provided by the calling function that already contains all the different cell/channel/wavelength combinations in the data. |
allExcludes | A reference to a QVector of excluded scans for each c/c/w combination |
runType | A reference to a variable that already contains the type of data ( "RA", "IP", "RI", "FI", "WA", or "WI"). This information will affect how the data is written. |
runID | The run ID of the experiment. |
dirname | Directory in which files are to be written. |
saveGUIDs | Boolean value that indicates whether data has been saved to disk before and doesn't require new GUIDs |
Definition at line 161 of file us_convert.cpp.
|
staticprivate |
Definition at line 860 of file us_convert.cpp.
|
staticprivate |
Definition at line 773 of file us_convert.cpp.
|
staticprivate |
Definition at line 955 of file us_convert.cpp.
|
staticprivate |
Definition at line 759 of file us_convert.cpp.
|
static |
Splits existing raw converted data into multiple datasets. Also rearranges triples in the data accordingly.
rawConvertedData | A reference to a structure that contains the US3 raw converted data. |
triples | A reference to a structure that contains the different cell/channel/wavelength combinations in the data. |
currentTriple | The triple that will be split. |
subsets | A list of radius limits that define where a dataset begins and ends. |
Definition at line 612 of file us_convert.cpp.