public class Aggregation.Dataset extends Object implements Comparable
Modifier and Type | Field and Description |
---|---|
protected String |
cacheLocation |
protected Set<NetcdfDataset.Enhance> |
enhance |
protected Object |
extraInfo |
protected String |
id |
protected FileFactory |
reader |
Modifier | Constructor and Description |
---|---|
protected |
Dataset(MFile mfile) |
protected |
Dataset(String cacheLocation,
String location,
String id,
EnumSet<NetcdfDataset.Enhance> enhance,
FileFactory reader)
Dataset constructor.
|
Modifier and Type | Method and Description |
---|---|
NetcdfFile |
acquireFile(CancelTask cancelTask) |
protected void |
cacheVariables(NetcdfFile ncfile) |
protected void |
close(NetcdfFile ncfile) |
int |
compareTo(Object o) |
boolean |
equals(Object oo) |
protected Variable |
findVariable(NetcdfFile ncfile,
Variable mainV) |
String |
getCacheLocation() |
String |
getId() |
String |
getLocation()
Get the location of this Dataset
|
MFile |
getMFile() |
int |
hashCode() |
protected Array |
read(Variable mainv,
CancelTask cancelTask) |
protected Array |
read(Variable mainv,
CancelTask cancelTask,
List<Range> section)
Read a section of the local Variable.
|
void |
show(Formatter f) |
protected String id
protected String cacheLocation
protected FileFactory reader
protected Set<NetcdfDataset.Enhance> enhance
protected Object extraInfo
protected Dataset(MFile mfile)
protected Dataset(String cacheLocation, String location, String id, EnumSet<NetcdfDataset.Enhance> enhance, FileFactory reader)
cacheLocation
- a unique name to use for cachinglocation
- attribute "location" on the netcdf elementid
- attribute "id" on the netcdf elementenhance
- open dataset in enhance mode, may be null NOT USEDreader
- factory for reading this netcdf dataset; if null, use NetcdfDataset.open( location)public String getLocation()
public MFile getMFile()
public String getCacheLocation()
public String getId()
public NetcdfFile acquireFile(CancelTask cancelTask) throws IOException
IOException
protected void close(NetcdfFile ncfile) throws IOException
IOException
protected void cacheVariables(NetcdfFile ncfile) throws IOException
IOException
public void show(Formatter f)
protected Array read(Variable mainv, CancelTask cancelTask) throws IOException
IOException
protected Array read(Variable mainv, CancelTask cancelTask, List<Range> section) throws IOException, InvalidRangeException
mainv
- aggregated VariablecancelTask
- let user cancelsection
- reletive to the local VariableIOException
- on I/O errorInvalidRangeException
- on section errorprotected Variable findVariable(NetcdfFile ncfile, Variable mainV)
public int compareTo(Object o)
compareTo
in interface Comparable
Copyright © 1999–2016 UCAR/Unidata. All rights reserved.