public String decodeUnits(short code)
    {
        switch (code)
        {
        case NiftiHeader.NIFTI_UNITS_UNKNOWN:
            return ("NIFTI_UNITS_UNKNOWN");
        case NiftiHeader.NIFTI_UNITS_METER:
            return ("NIFTI_UNITS_METER");
        case NiftiHeader.NIFTI_UNITS_MM:
            return ("NIFTI_UNITS_MM");
        case NiftiHeader.NIFTI_UNITS_MICRON:
            return ("NIFTI_UNITS_MICRON");
        case NiftiHeader.NIFTI_UNITS_SEC:
            return ("NIFTI_UNITS_SEC");
        case NiftiHeader.NIFTI_UNITS_MSEC:
            return ("NIFTI_UNITS_MSEC");
        case NiftiHeader.NIFTI_UNITS_USEC:
            return ("NIFTI_UNITS_USEC");
        case NiftiHeader.NIFTI_UNITS_HZ:
            return ("NIFTI_UNITS_HZ");
        case NiftiHeader.NIFTI_UNITS_PPM:
            return ("NIFTI_UNITS_PPM");
        default:
            return ("INVALID_NIFTI_UNITS_CODE");
        }
    }