public Line readLine(String name, int index) {
    """
	Returns a Line given a variable name and the geometric index. If the Line is not found it will return null. If the Line is a part of the Multi-Line, it will return the head
	(the first Line in the series which constitutes the Multi-Line).
	
	@param name of the variable which holds the Line
	@param index of the Line within the variable
	@return a new line with all associated information
    """
	
		Variable linevar = ds.findVariable(name);
		if(linevar == null) return null;
		Line line = null;
		
		// CFConvention
		if(ds.findGlobalAttribute(CF.CONVENTIONS) != null)
			if(ucar.nc2.dataset.conv.CF1Convention.getVersion(ds.findGlobalAttribute(CF.CONVENTIONS).getStringValue()) >= 8)
				line = new CFLine();
		
		if(line == null) return null;
		else return line.setupLine(ds, linevar, index);
	}
public Line readLine(String name, int index) {
	
		Variable linevar = ds.findVariable(name);
		if(linevar == null) return null;
		Line line = null;
		
		// CFConvention
		if(ds.findGlobalAttribute(CF.CONVENTIONS) != null)
			if(ucar.nc2.dataset.conv.CF1Convention.getVersion(ds.findGlobalAttribute(CF.CONVENTIONS).getStringValue()) >= 8)
				line = new CFLine();
		
		if(line == null) return null;
		else return line.setupLine(ds, linevar, index);
	}
public Line readLine ( String name , int index ) { Variable linevar = ds . findVariable ( name ) ; if ( linevar == null ) return null ; Line line = null ; // CFConvention
 if ( ds . findGlobalAttribute ( CF . CONVENTIONS ) != null ) if ( ucar . nc2 . dataset . conv . CF1Convention . getVersion ( ds . findGlobalAttribute ( CF . CONVENTIONS ) . getStringValue ( ) ) >= 8 ) line = new CFLine ( ) ; if ( line == null ) return null ; else return line . setupLine ( ds , linevar , index ) ; }
Returns a Line given a variable name and the geometric index. If the Line is not found it will return null. If the Line is a part of the Multi-Line, it will return the head
(the first Line in the series which constitutes the Multi-Line).

@param name of the variable which holds the Line
@param index of the Line within the variable
@return a new line with all associated information
Returns a Line given a variable name and the geometric index . If the Line is not found it will return null . If the Line is a part of the Multi - Line it will return the head ( the first Line in the series which constitutes the Multi - Line ) .