org.das2.dataset.test.WavVectorDataSet

Wraps .wav file as a VectorDataSet. The dataset will have a set of data planes for each channel identified channel0, channel1, and so on. The x values are elapsed time, and the y units are dimensionless and normalized to 0.0 to +1.0.


createFromFile

createFromFile( java.io.File wavFile ) → org.das2.dataset.test.WavVectorDataSet

Parameters

wavFile - a File

Returns:

org.das2.dataset.test.WavVectorDataSet

[search for examples] [view on GitHub] [view on old javadoc] [view source]


createWavVectorDataSet

createWavVectorDataSet( java.nio.ByteBuffer buf, javax.sound.sampled.AudioFormat audioFormat ) → org.das2.dataset.test.WavVectorDataSet

Parameters

buf - a ByteBuffer
audioFormat - an AudioFormat

Returns:

org.das2.dataset.test.WavVectorDataSet

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getDatum

getDatum( int i ) → Datum

Parameters

i - an int

Returns:

org.das2.datum.Datum

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getInt

getInt( int i, Units units ) → int

Parameters

i - an int
units - an Units

Returns:

int

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getPlanarView

getPlanarView( String planeID ) → org.das2.dataset.DataSet

Parameters

planeID - a String

Returns:

org.das2.dataset.DataSet

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getPlaneIds

getPlaneIds( ) → String[]

Returns:

java.lang.String[]

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getProperties

getProperties( ) → java.util.Map

Returns:

java.util.Map

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getProperty

getProperty( String name ) → Object

Parameters

name - a String

Returns:

java.lang.Object

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getXLength

getXLength( ) → int

Returns:

int

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getXTagDatum

getXTagDatum( int i ) → Datum

Parameters

i - an int

Returns:

org.das2.datum.Datum

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getXTagDouble

getXTagDouble( int i, Units units ) → double

Parameters

i - an int
units - an Units

Returns:

double

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getXTagInt

getXTagInt( int i, Units units ) → int

Parameters

i - an int
units - an Units

Returns:

int

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getXUnits

getXUnits( ) → Units

Returns:

org.das2.datum.Units

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getYUnits

getYUnits( ) → Units

Returns:

org.das2.datum.Units

[search for examples] [view on GitHub] [view on old javadoc] [view source]