static public String getCoordinateName ( NetcdfDataset ds , AxisType a , Dimension dim ) { String name = getCoordinateName ( ds , a ) ; if ( name == null ) return null ; Variable v = ds . findVariable ( name ) ; if ( v == null ) return null ; if ( v . isScalar ( ) ) return null ; if ( ! v . getDimension ( 0 ) . equals ( dim ) ) return null ; return name ; }
Tries to find the coordinate variable of the specified type which has the specified dimension as its firsst dimension