static public String getLiteral ( NetcdfDataset ds , String key , Formatter errlog ) { if ( key . startsWith ( ":" ) ) { String val = ds . findAttValueIgnoreCase ( null , key . substring ( 1 ) , null ) ; if ( ( val == null ) && ( errlog != null ) ) errlog . format ( " Cant find global attribute %s%n" , key ) ; return val ; } return key ; }
Translate key to value