cdm/src/main/java/ucar/nc2/dataset/NetcdfDataset.java
public static NetcdfFile openFile(String location, ucar.nc2.util.CancelTask cancelTask) throws IOException {
    DatasetUrl durl = DatasetUrl.findDatasetUrl(location);
    return openOrAcquireFile(null, null, null, durl, -1, cancelTask, null);
  }
public static NetcdfFile openFile(String location, ucar.nc2.util.CancelTask cancelTask) throws IOException {
    DatasetUrl durl = DatasetUrl.findDatasetUrl(location);
    return openOrAcquireFile(null, null, null, durl, -1, cancelTask, null);
  }
public static NetcdfFile openFile ( String location , ucar . nc2 . util . CancelTask cancelTask ) throws IOException { DatasetUrl durl = DatasetUrl . findDatasetUrl ( location ) ; return openOrAcquireFile ( null , null , null , durl , - 1 , cancelTask , null ) ; }
Factory method for opening a NetcdfFile through the netCDF API.

@param location   location of dataset.
@param cancelTask use to allow task to be cancelled; may be null.
@return NetcdfFile object
@throws java.io.IOException on read error
Factory method for opening a NetcdfFile through the netCDF API .