dap4/d4cdm/src/main/java/dap4/cdm/dsp/CDMDSP.java
protected DapSequence
    buildseqtype(Variable cdmvar)
            throws DapException
    {
        cdmvar = CDMUtil.unwrap(cdmvar);
        assert (CDMUtil.hasVLEN(cdmvar));
        DataType dt = cdmvar.getDataType();
        DapType daptype = CDMTypeFcns.cdmtype2daptype(dt);
        DapSequence seq = (DapSequence) dmrfactory.newSequence(cdmvar.getShortName());
        // fill DapSequence with a single field; note that the dimensions
        // are elided because they will attach to the sequence variable,
        // not the field
        DapVariable field = dmrfactory.newVariable(cdmvar.getShortName(), daptype);
        seq.addField(field);
        field.setParent(seq);
        recordSeq(cdmvar, seq);
        return seq;
    }
protected DapSequence
    buildseqtype(Variable cdmvar)
            throws DapException
    {
        cdmvar = CDMUtil.unwrap(cdmvar);
        assert (CDMUtil.hasVLEN(cdmvar));
        DataType dt = cdmvar.getDataType();
        DapType daptype = CDMTypeFcns.cdmtype2daptype(dt);
        DapSequence seq = (DapSequence) dmrfactory.newSequence(cdmvar.getShortName());
        // fill DapSequence with a single field; note that the dimensions
        // are elided because they will attach to the sequence variable,
        // not the field
        DapVariable field = dmrfactory.newVariable(cdmvar.getShortName(), daptype);
        seq.addField(field);
        field.setParent(seq);
        recordSeq(cdmvar, seq);
        return seq;
    }
protected DapSequence buildseqtype ( Variable cdmvar ) throws DapException { cdmvar = CDMUtil . unwrap ( cdmvar ) ; assert ( CDMUtil . hasVLEN ( cdmvar ) ) ; DataType dt = cdmvar . getDataType ( ) ; DapType daptype = CDMTypeFcns . cdmtype2daptype ( dt ) ; DapSequence seq = ( DapSequence ) dmrfactory . newSequence ( cdmvar . getShortName ( ) ) ; // fill DapSequence with a single field; note that the dimensions // are elided because they will attach to the sequence variable, // not the field DapVariable field = dmrfactory . newVariable ( cdmvar . getShortName ( ) , daptype ) ; seq . addField ( field ) ; field . setParent ( seq ) ; recordSeq ( cdmvar , seq ) ; return seq ; }
/* Create a sequence from a variable with a
variable length last dimension.
Suppose we have cdm equivalent to this:
T var[d1]...[dn]][*]
We convert to the following
<Sequence name="var">
<T name="var"/>
<Dim name=d1/>
...
<Dim name=dn/>
</Sequence>
/ * Create a sequence from a variable with a variable length last dimension . Suppose we have cdm equivalent to this : T var [ d1 ] ... [ dn ]] [ * ] We convert to the following <Sequence name = var > <T name = var / > <Dim name = d1 / > ... <Dim name = dn / > < / Sequence >