cdm/src/main/java/ucar/nc2/dataset/CoordinateAxis2D.java
public CoordinateAxis2D section(Range r1, Range r2) throws InvalidRangeException {
    List<Range> section = new ArrayList<>();
    section.add(r1);
    section.add(r2);
    return (CoordinateAxis2D) section(section);
  }
public CoordinateAxis2D section(Range r1, Range r2) throws InvalidRangeException {
    List<Range> section = new ArrayList<>();
    section.add(r1);
    section.add(r2);
    return (CoordinateAxis2D) section(section);
  }
Create a new CoordinateAxis2D as a section of this CoordinateAxis2D.

@param r1 the section on the first index
@param r2 the section on the second index
@return a section of this CoordinateAxis2D
@throws InvalidRangeException if specified Ranges are invalid