/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package test; import java.util.Random; import org.das2.datum.Units; import org.das2.qds.AbstractDataSet; import org.das2.qds.DDataSet; import org.das2.qds.DataSetOps; import org.das2.qds.QDataSet; import org.das2.qds.ops.Ops; /** * Demonstrations of the somewhat nasty BundleDataSet, which allows many data types to be encoded into a rank 2 table. * @author jbf */ public class BundleBinsDemo { /** * create a bundle of [ rank 2 time bins, rank 2 B-gsm, rank 1 cmps ] * @return a rank 2 bundle. */ public static QDataSet demo1() { final DDataSet result= DDataSet.createRank2(10,6); Random r= new Random(12345); for ( int i=0; i