Struct ASCIIParam
- Namespace
- VirtualLabAPI.Core.FieldRepresentations
- Assembly
- VirtualLabAPI.dll
Structure that contains parameters for ASCII Export.
public struct ASCIIParam
- Inherited Members
Constructors
ASCIIParam(string, FieldQuantity, bool)
Simplified constructor. The following default settings are used.
- DecimalSeparator: '.'
- ColumnSeparator: Tabulator
- NumLinesHeader: 0
- SkipLinesStartingWith: null
- RemoveSphericalPhaseFactor: false
- VectorialComponent: VectorialComponent.Ex
public ASCIIParam(string fileName, FieldQuantity fieldConversion, bool transposeField)
Parameters
fileNamestringThe file name including the complete path.
fieldConversionFieldQuantityAdjusts which FieldQuantityto export to ASCII text. (Text is interpreted as stream of real numbers.)
transposeFieldboolTranspose ComplexAmplitude before export.
ASCIIParam(string, FieldQuantity, bool, char, char, bool, bool, VectorialComponent)
Constructor initializing all parameters.
public ASCIIParam(string fileName, FieldQuantity fieldConversion, bool transposeField, char decimalSeparator, char columnSeparator, bool createHeader, bool removeSphericalPhaseFactor, VectorialComponent vectorialComponent)
Parameters
fileNamestringThe file name including the complete path.
fieldConversionFieldQuantityAdjusts which FieldQuantityto export to ASCII text. (Text is interpreted as stream of real numbers.)
transposeFieldboolTranspose ComplexAmplitude before export.
decimalSeparatorcharDecimal separator.
columnSeparatorcharSeparator for columns.
createHeaderboolPrepend header.
removeSphericalPhaseFactorboolIf true the spherical phase factor is removed from the sampling points before export but the spherical phase radius will be still present in the header. This setting is just used for export.
vectorialComponentVectorialComponentFor locally polarized Complex Amplitudes this member allows the selection of the vectorial component to export. The member has only effect for locally polarized fields. For export only.
Fields
ColumnSeparator
Separator for columns.
public char ColumnSeparator
Field Value
DecimalSeparator
Decimal separator.
public char DecimalSeparator
Field Value
FieldConversion
Adjusts which FieldQuantity to export to ASCII text. (Text is interpreted as stream of real numbers.)
public FieldQuantity FieldConversion
Field Value
FileName
The file name including the complete path.
public string FileName
Field Value
NumLinesHeader
Number of header lines (for import only).
public int NumLinesHeader
Field Value
RemoveSphericalPhaseFactor
If true the spherical phase factor is removed from the sampling points before export but the spherical phase radius will be still present in the header. This setting is just used for export.
public bool RemoveSphericalPhaseFactor
Field Value
SkipLinesStartingWith
If not null, this value passes a string that indicates a comment line that is to skip.
public string SkipLinesStartingWith
Field Value
TransposeField
Transpose ComplexAmplitude before export.
public bool TransposeField
Field Value
UseHeader
Prepend header.
public bool UseHeader
Field Value
VectorialComponent
For locally polarized Complex Amplitudes this member allows the selection of the vectorial component to export. The member has only effect for locally polarized fields. For export only.
public VectorialComponent VectorialComponent