public class Aggregation.Dataset
extends java.lang.Object
implements java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
cacheLocation |
protected java.util.Set<NetcdfDataset.Enhance> |
enhance |
protected java.lang.Object |
extraInfo |
protected java.lang.String |
id |
protected FileFactory |
reader |
Modifier | Constructor and Description |
---|---|
protected |
Dataset(MFile mfile) |
protected |
Dataset(java.lang.String cacheLocation,
java.lang.String location,
java.lang.String id,
java.util.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(java.lang.Object o) |
boolean |
equals(java.lang.Object oo) |
protected Variable |
findVariable(NetcdfFile ncfile,
Variable mainV) |
java.lang.String |
getCacheLocation() |
java.lang.String |
getId() |
java.lang.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,
java.util.List<Range> section)
Read a section of the local Variable.
|
void |
show(java.util.Formatter f) |
protected java.lang.String id
protected java.lang.String cacheLocation
protected FileFactory reader
protected java.util.Set<NetcdfDataset.Enhance> enhance
protected java.lang.Object extraInfo
protected Dataset(MFile mfile)
protected Dataset(java.lang.String cacheLocation, java.lang.String location, java.lang.String id, java.util.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 java.lang.String getLocation()
public MFile getMFile()
public java.lang.String getCacheLocation()
public java.lang.String getId()
public NetcdfFile acquireFile(CancelTask cancelTask) throws java.io.IOException
java.io.IOException
protected void close(NetcdfFile ncfile) throws java.io.IOException
java.io.IOException
protected void cacheVariables(NetcdfFile ncfile) throws java.io.IOException
java.io.IOException
public void show(java.util.Formatter f)
protected Array read(Variable mainv, CancelTask cancelTask) throws java.io.IOException
java.io.IOException
protected Array read(Variable mainv, CancelTask cancelTask, java.util.List<Range> section) throws java.io.IOException, InvalidRangeException
mainv
- aggregated VariablecancelTask
- let user cancelsection
- reletive to the local Variablejava.io.IOException
- on I/O errorInvalidRangeException
- on section errorprotected Variable findVariable(NetcdfFile ncfile, Variable mainV)
public boolean equals(java.lang.Object oo)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable