cdm/src/main/java/ucar/nc2/dataset/NetcdfDataset.java
static public NetcdfDataset openDataset(String location, boolean enhance, ucar.nc2.util.CancelTask cancelTask) throws IOException {
    return openDataset(location, enhance, -1, cancelTask, null);
  }
static public NetcdfDataset openDataset(String location, boolean enhance, ucar.nc2.util.CancelTask cancelTask) throws IOException {
    return openDataset(location, enhance, -1, cancelTask, null);
  }
Factory method for opening a dataset through the netCDF API, and identifying its coordinate variables.

@param location   location of file
@param enhance    if true, use defaultEnhanceMode, else no enhancements
@param cancelTask allow task to be cancelled; may be null.
@return NetcdfDataset object
@throws java.io.IOException on read error