gridfile.transform
Transform data loaded from a .grid file.
Syntax
Description
[transform, parameters] = obj.transform[transform, parameters] = obj.transform(‘default’)
Return the default transformation for a gridfile.
[sourceTransform, sourceParameters] = obj.transform(‘sources’)[sourceTransform, sourceParameters] = obj.transform(‘sources’, sourceNames)
Returns the transformations for the specified data sources. If no soures are specified, returns the transformation for all data sources in the gridfile.
Applies a data transformation to data loaded from a .grid file. The transformation is applied to all data sources in currently in the .grid file, as well as any data sources added in the future. Only one transformation is supported at a time, so calling this method will override any previously specified transformations. See below for details of different transformations
Applies a transformation to data loaded from the specified data Overrides any data transformations previously applied to the data sources.
obj.transform(‘log’)obj.transform(‘ln’)obj.transform(‘ln’, [], …)
Take the natural logarithm of loaded data.
obj.transform(‘log10’)obj.transform(‘log10’, [])
Takes the base-10 logarithm of loaded data
obj.transform(‘exp’)obj.transform(‘exp’, [], …)
Takes the exponential of loaded data.
obj.transform(‘power’, power, …)
Raise loaded data to the specified power.
Add the indicated value to loaded data.
Multiply loaded data by the specified value.
obj.transform(‘linear’, coeffs, …)
Apply a linear transformation to loaded data.
obj.transform(‘none’, …)obj.transform(‘none’, [], …)
Do not apply a transformation to loaded data.
Input Arguments
type
[‘ln’ | ‘log’]: Natural logarithm
[‘log10’]: Base-10 logarithm
[‘exp’]: Exponential e^x
[‘power’]: Raise data to power
[‘plus’ | ‘add’ | ‘+’]: Add value to data
[‘times’ | ‘multiply’ | ‘*’]: Multiply data by value
[‘linear’]: Linear transformation
[‘none’]: No data transformation