static public CoordinateAxis findCoordByType ( NetcdfDataset ds , AxisType atype , Predicate p ) { // try the "best" coordinate system CoordinateSystem use = findBestCoordinateSystem ( ds ) ; if ( use == null ) return null ; CoordinateAxis result = findCoordByType ( use . getCoordinateAxes ( ) , atype , p ) ; if ( result != null ) return result ; // try all the axes return findCoordByType ( ds . getCoordinateAxes ( ) , atype , p ) ; }
search for Axis by Type and test against a predicate