opendap/src/main/java/opendap/util/dasTools.java
public static String fancyTypeName(BaseType bt) {


        if (bt instanceof DByte)
            return ("8 bit Byte");

        if (bt instanceof DUInt16)
            return ("16 bit Unsigned Integer");

        if (bt instanceof DInt16)
            return ("16 bit Integer");

        if (bt instanceof DUInt32)
            return ("32 bit Unsigned Integer");

        if (bt instanceof DInt32)
            return ("32 bit Integer");

        if (bt instanceof DFloat32)
            return ("32 bit Real");

        if (bt instanceof DFloat64)
            return ("64 bit Real");

        if (bt instanceof DURL)
            return ("URL");

        if (bt instanceof DString)
            return ("String");


        if (bt instanceof DArray) {

            DArray a = (DArray) bt;
            StringBuilder type = new StringBuilder();
            type.append("Array of ");
            type.append(fancyTypeName(a.getPrimitiveVector().getTemplate()));
            type.append("s ");

            Enumeration e = a.getDimensions();
            while (e.hasMoreElements()) {
                DArrayDimension dad = (DArrayDimension) e.nextElement();
                type.append("[");
                type.append(dad.getEncodedName());
                type.append(" = 0..");
                type.append(dad.getSize() - 1);
                type.append("]");

            }
            type.append("\n");
            return (type.toString());
        }


        if (bt instanceof DStructure)
            return ("Structure");

        if (bt instanceof DSequence)
            return ("Sequence");

        if (bt instanceof DGrid)
            return ("Grid");

        return ("UNKNOWN");


    }
public static String fancyTypeName(BaseType bt) {


        if (bt instanceof DByte)
            return ("8 bit Byte");

        if (bt instanceof DUInt16)
            return ("16 bit Unsigned Integer");

        if (bt instanceof DInt16)
            return ("16 bit Integer");

        if (bt instanceof DUInt32)
            return ("32 bit Unsigned Integer");

        if (bt instanceof DInt32)
            return ("32 bit Integer");

        if (bt instanceof DFloat32)
            return ("32 bit Real");

        if (bt instanceof DFloat64)
            return ("64 bit Real");

        if (bt instanceof DURL)
            return ("URL");

        if (bt instanceof DString)
            return ("String");


        if (bt instanceof DArray) {

            DArray a = (DArray) bt;
            StringBuilder type = new StringBuilder();
            type.append("Array of ");
            type.append(fancyTypeName(a.getPrimitiveVector().getTemplate()));
            type.append("s ");

            Enumeration e = a.getDimensions();
            while (e.hasMoreElements()) {
                DArrayDimension dad = (DArrayDimension) e.nextElement();
                type.append("[");
                type.append(dad.getEncodedName());
                type.append(" = 0..");
                type.append(dad.getSize() - 1);
                type.append("]");

            }
            type.append("\n");
            return (type.toString());
        }


        if (bt instanceof DStructure)
            return ("Structure");

        if (bt instanceof DSequence)
            return ("Sequence");

        if (bt instanceof DGrid)
            return ("Grid");

        return ("UNKNOWN");


    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -