protected Array read(DatasetOuterDimension dset, NetcdfFile ncfile) throws IOException { Array data = readCached(dset); if (data != null) return data; return super.read(dset, ncfile); }
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); } }
/** * 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); }
@Override protected void makeDatasets(CancelTask cancelTask) throws IOException { super.makeDatasets(cancelTask); for (Dataset ds : datasets) ds.enhance = fmrcEnhanceMode; }
@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); }
@Override protected void cacheVariables(NetcdfFile ncfile) throws IOException { for (CacheVar pv : cacheList) { pv.read(this, ncfile); } }
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} ); } }
protected Array read(DatasetOuterDimension dset) throws IOException { Array data = readCached(dset); if (data != null) return data; return super.read(dset); }
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); } }
public void setUp() throws IOException { if (ncfile != null) return; String filename = "file:./" + TestNcML.topDir + "aggUnion.xml"; ncfile = NcMLReader.readNcML(filename, null); }
@Override protected void makeDatasets(CancelTask cancelTask) throws IOException { super.makeDatasets(cancelTask); for (Dataset ds : datasets) ds.enhance = fmrcEnhanceMode; }
@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); }
protected Array read(DatasetOuterDimension dset) throws IOException { Array data = readCached(dset); if (data != null) return data; return super.read(dset); }
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); } }
protected Array read(DatasetOuterDimension dset) throws IOException { Array data = readCached(dset); if (data != null) return data; return super.read(dset); }
protected Array read(DatasetOuterDimension dset, NetcdfFile ncfile) throws IOException { Array data = readCached(dset); if (data != null) return data; return super.read(dset, ncfile); }
protected Array read(DatasetOuterDimension dset, NetcdfFile ncfile) throws IOException { Array data = readCached(dset); if (data != null) return data; return super.read(dset, ncfile); }