MI - Fimex
|
#include <fimex/DataTypeChanger.h>
Public Member Functions | |
DataTypeChanger (CDMDataType oldType) | |
DataTypeChanger (CDMDataType oldType, double oldFill, double oldScale, double oldOffset, CDMDataType newType, double newFill, double newScale, double newOffset, double unitScale=1., double unitOffset=0.) | |
virtual | ~DataTypeChanger () |
DataPtr | convertData (DataPtr) const throw (CDMException) |
CDMDataType | getDataType () const |
brief wrapper class around data->convertType
|
explicit |
initialize data with the oldType convertData will do nothing in this case
|
explicit |
initialize with the old and new settings
oldType | datatype of original data |
oldFill | fill value of the original data |
oldScale | scale_factor of the original data |
oldOffset | scale_factor of the original data |
newType | datatype of converted data |
newFill | fill value of converted data |
newScale | scale_factor of the converted data |
newOffset | add_offset of the converted data |
unitScale | scale_factor for the unpacked data, i.e. for unit changes, default 1. |
unitOffset | offset for the unpacked data, i.e. for unit changes, default 0. |
|
virtual |
DataPtr MetNoFimex::DataTypeChanger::convertData | ( | DataPtr | ) | const | |
throw | ( | CDMException | |||
) |
convert the data to the new scale/fill/offset
CDMDataType MetNoFimex::DataTypeChanger::getDataType | ( | ) | const |
return the datatype of the converted data