congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ucar.nc2.ncml
Code IndexAdd Tabnine to your IDE (free)

How to use ucar.nc2.ncml

Best Java code snippets using ucar.nc2.ncml (Showing top 20 results out of 315)

origin: edu.ucar/netcdf

protected Array read(DatasetOuterDimension dset, NetcdfFile ncfile) throws IOException {
 Array data = readCached(dset);
 if (data != null) return data;
 return super.read(dset, ncfile);
}
origin: edu.ucar/netcdf

 public Result call() throws Exception {
  Array data = ds.read(mainv, cancelTask);
  return new Result(data, index);
 }
}
origin: edu.ucar/netcdf

protected void buildCoords(CancelTask cancelTask) throws IOException {
 List<Dataset> nestedDatasets = getDatasets();
 if (type == Type.forecastModelRunCollection) {
  for (Dataset nested : nestedDatasets) {
   DatasetOuterDimension dod = (DatasetOuterDimension) nested;
   dod.ncoord = 1;
  }
 }
 totalCoords = 0;
 for (Dataset nested : nestedDatasets) {
  DatasetOuterDimension dod = (DatasetOuterDimension) nested;
  totalCoords += dod.setStartEnd(totalCoords, cancelTask);
 }
}
origin: edu.ucar/netcdf

/**
 * Read an NcML file from a URL location, and construct a NetcdfDataset.
 *
 * @param ncmlLocation the URL location string of the NcML document
 * @param cancelTask   allow user to cancel the task; may be null
 * @return the resulting NetcdfDataset
 * @throws IOException on read error, or bad referencedDatasetUri URI
 */
static public NetcdfDataset readNcML(String ncmlLocation, CancelTask cancelTask) throws IOException {
 return readNcML(ncmlLocation, (String) null, cancelTask);
}
origin: edu.ucar/cdm

@Override
protected void makeDatasets(CancelTask cancelTask) throws IOException {
 super.makeDatasets(cancelTask);
 for (Dataset ds : datasets)
  ds.enhance = fmrcEnhanceMode;
}
origin: Unidata/thredds

@Override
protected Dataset makeDataset(String cacheName, String location, String id, String ncoordS, String coordValueS, String sectionSpec,
               EnumSet<NetcdfDataset.Enhance> enhance, ucar.nc2.util.cache.FileFactory reader) {
 return new DatasetOuterDimension(cacheName, location, id, ncoordS, coordValueS, enhance, reader);
}
origin: edu.ucar/cdm

@Override
protected void cacheVariables(NetcdfFile ncfile) throws IOException {
 for (CacheVar pv : cacheList) {
  pv.read(this, ncfile);
 }
}
origin: Unidata/thredds

 public void testReadSlice(NetcdfFile ncfile) throws IOException, InvalidRangeException {
  testReadSlice( ncfile, new int[] {0, 0, 0, 0}, new int[] {14, 11, 3, 4} );
  testReadSlice( ncfile, new int[] {0, 0, 0, 0}, new int[] {4, 2, 3, 2} );
  testReadSlice( ncfile, new int[] {5, 0, 0, 0}, new int[] {3, 10, 3, 4} );
  testReadSlice( ncfile, new int[] {10, 0, 0, 0}, new int[] {4, 10, 2, 3} );
  }
}
origin: edu.ucar/netcdf

protected Array read(DatasetOuterDimension dset) throws IOException {
 Array data = readCached(dset);
 if (data != null) return data;
 return super.read(dset);
}
origin: edu.ucar/cdm

 public Result call() throws Exception {
  Array data = ds.read(mainv, cancelTask);
  return new Result(data, index);
 }
}
origin: edu.ucar/cdm

protected void buildCoords(CancelTask cancelTask) throws IOException {
 List<Dataset> nestedDatasets = getDatasets();
 if (type == Type.forecastModelRunCollection) {
  for (Dataset nested : nestedDatasets) {
   DatasetOuterDimension dod = (DatasetOuterDimension) nested;
   dod.ncoord = 1;
  }
 }
 totalCoords = 0;
 for (Dataset nested : nestedDatasets) {
  DatasetOuterDimension dod = (DatasetOuterDimension) nested;
  totalCoords += dod.setStartEnd(totalCoords, cancelTask);
 }
}
origin: Unidata/thredds

public void setUp() throws IOException {
 if (ncfile != null) return;
 String filename = "file:./" + TestNcML.topDir + "aggUnion.xml";
 ncfile = NcMLReader.readNcML(filename, null);
}
origin: Unidata/thredds

@Override
protected void makeDatasets(CancelTask cancelTask) throws IOException {
 super.makeDatasets(cancelTask);
 for (Dataset ds : datasets)
  ds.enhance = fmrcEnhanceMode;
}
origin: edu.ucar/netcdf

@Override
protected Dataset makeDataset(String cacheName, String location, String id, String ncoordS, String coordValueS, String sectionSpec,
               EnumSet<NetcdfDataset.Enhance> enhance, ucar.nc2.util.cache.FileFactory reader) {
 return new DatasetOuterDimension(cacheName, location, id, ncoordS, coordValueS, enhance, reader);
}
origin: edu.ucar/cdm

protected Array read(DatasetOuterDimension dset) throws IOException {
 Array data = readCached(dset);
 if (data != null) return data;
 return super.read(dset);
}
origin: Unidata/thredds

 public Result call() throws Exception {
  Array data = ds.read(mainv, cancelTask);
  return new Result(data, index);
 }
}
origin: Unidata/thredds

protected void buildCoords(CancelTask cancelTask) throws IOException {
 List<Dataset> nestedDatasets = getDatasets();
 if (type == Type.forecastModelRunCollection) {
  for (Dataset nested : nestedDatasets) {
   DatasetOuterDimension dod = (DatasetOuterDimension) nested;
   dod.ncoord = 1;
  }
 }
 totalCoords = 0;
 for (Dataset nested : nestedDatasets) {
  DatasetOuterDimension dod = (DatasetOuterDimension) nested;
  totalCoords += dod.setStartEnd(totalCoords, cancelTask);
 }
}
origin: Unidata/thredds

protected Array read(DatasetOuterDimension dset) throws IOException {
 Array data = readCached(dset);
 if (data != null) return data;
 return super.read(dset);
}
origin: edu.ucar/cdm

protected Array read(DatasetOuterDimension dset, NetcdfFile ncfile) throws IOException {
 Array data = readCached(dset);
 if (data != null) return data;
 return super.read(dset, ncfile);
}
origin: Unidata/thredds

protected Array read(DatasetOuterDimension dset, NetcdfFile ncfile) throws IOException {
 Array data = readCached(dset);
 if (data != null) return data;
 return super.read(dset, ncfile);
}
ucar.nc2.ncml

Most used classes

  • NcMLReader
    Read NcML and create NetcdfDataset.
  • NcMLWriter
    Helper class to write NcML.
  • Aggregation
    Superclass for NcML Aggregation. An Aggregation acts as a ProxyReader for VariableDS. That, is it mu
  • Aggregation$Dataset
    Encapsolates a NetcdfFile that is a component of the aggregation.
  • Aggregation$DatasetProxyReader
  • AggregationFmrc,
  • AggregationNew,
  • AggregationOuterDimension$CacheVar,
  • AggregationOuterDimension$CoordValueVar,
  • AggregationOuterDimension$DatasetOuterDimension,
  • AggregationOuterDimension$PromoteVar,
  • AggregationOuterDimension$PromoteVarCompose,
  • AggregationOuterDimension$ReaderTask,
  • AggregationOuterDimension$Result,
  • AggregationOuterDimension,
  • AggregationTiled$DatasetTiled,
  • AggregationTiled$TileLayout,
  • AggregationTiled,
  • AggregationUnion
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now