static public String getVariableName ( NetcdfDataset ds , String key , Formatter errlog ) { Variable v = null ; String vs = getLiteral ( ds , key , errlog ) ; if ( vs != null ) { v = ds . findVariable ( vs ) ; if ( ( v == null ) && ( errlog != null ) ) errlog . format ( " Cant find Variable %s from %s%n" , vs , key ) ; } return v == null ? null : v . getShortName ( ) ; }
Find the variable pointed to by key