dap4/d4cdm/src/main/java/dap4/cdm/nc2/CDMArrayAtomic.java
protected double getDouble(dap4.core.util.Index idx)
    {
        assert data.getScheme() == Scheme.ATOMIC;
        try {
            Object value = data.read(idx);
            value = Convert.convert(DapType.FLOAT64, this.basetype, value);
            return (Double) java.lang.reflect.Array.get(value, 0);
        } catch (IOException ioe) {
            throw new IndexOutOfBoundsException(ioe.getMessage());
        }
    }
protected double getDouble(dap4.core.util.Index idx)
    {
        assert data.getScheme() == Scheme.ATOMIC;
        try {
            Object value = data.read(idx);
            value = Convert.convert(DapType.FLOAT64, this.basetype, value);
            return (Double) java.lang.reflect.Array.get(value, 0);
        } catch (IOException ioe) {
            throw new IndexOutOfBoundsException(ioe.getMessage());
        }
    }
protected double getDouble ( dap4 . core . util . Index idx ) { assert data . getScheme ( ) == Scheme . ATOMIC ; try { Object value = data . read ( idx ) ; value = Convert . convert ( DapType . FLOAT64 , this . basetype , value ) ; return ( Double ) java . lang . reflect . Array . get ( value , 0 ) ; } catch ( IOException ioe ) { throw new IndexOutOfBoundsException ( ioe . getMessage ( ) ) ; } }
Get the array element at a specific dap4 index as a double

@param idx of element to get
@return value at <code>index</code> cast to double if necessary.
Get the array element at a specific dap4 index as a double