package org.autoplot.idlsupport; import java.io.File; import java.io.FileOutputStream; import org.das2.datum.Units; import org.das2.datum.UnitsConverter; import org.das2.datum.UnitsUtil; import org.das2.util.monitor.ProgressMonitor; import org.das2.qds.QDataSet; import org.das2.qds.SemanticOps; import org.autoplot.datasource.AbstractDataSourceFormat; import org.das2.qds.DataSetUtil; import org.das2.qds.ops.Ops; /** * Export to idlsav support. rank 1 datasets, rank 2 datasets, rank 3 datasets, and rank 2 bundles are supported. * @author jbf */ public class IdlsavDataSourceFormat extends AbstractDataSourceFormat { private void doOne( WriteIDLSav write, QDataSet data, String guessName ) { String su= getParam( "tunits", "t1970" ); QDataSet wds= Ops.valid(data); double[] dd= new double[data.length()]; for ( int i=0; i