org.autoplot.cdf.CdfDataSourceFormat

Format the QDataSet into CDF tables, using Nand Lal's library. Datasets will be assigned names if they don't have a NAME property. If the append=T parameter is set, then variables should have names. if the bundle=T parameter is set, then bundles should be unbundled into separate variables.

CdfDataSourceFormat( )


canFormat

canFormat( QDataSet ds ) → boolean

Parameters

ds - a QDataSet

Returns:

boolean

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


datasetToArray

datasetToArray( QDataSet ds, org.das2.datum.UnitsConverter uc, int itype, ProgressMonitor mon ) → Object

CDF library needs array in double or triple arrays.

Parameters

ds - the dataset.
uc - UnitsConverter in case we need to handle times.
itype - the CDF data type, for example 21=float
mon - a progress monitor

Returns:

a 1,2,3,4-d array of double,long,float,int,short,byte.

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

datasetToArray( QDataSet ds, org.das2.datum.UnitsConverter uc, gov.nasa.gsfc.spdf.cdfj.CDFDataType type, ProgressMonitor mon ) → Object

formatData

formatData( String uri, QDataSet data, ProgressMonitor mon ) → void

Parameters

uri - a String
data - a QDataSet
mon - a ProgressMonitor

Returns:

void (returns nothing)

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


getDescription

getDescription( ) → String

Returns:

java.lang.String

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


streamData

streamData( java.util.Map params, java.util.Iterator data, java.io.OutputStream out ) → boolean

Parameters

params - a java.util.Map
data - a java.util.Iterator
out - an OutputStream

Returns:

boolean

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