@Immutable public class AggDataset extends Object implements Comparable<AggDataset>
| Modifier and Type | Field and Description |
|---|---|
protected String |
cacheLocation |
protected DatasetUrl |
durl |
protected MFile |
mfile |
protected FileFactory |
reader |
protected Object |
spiObject |
| Modifier | Constructor and Description |
|---|---|
protected |
AggDataset(MFile mfile,
Object spiObject,
org.jdom2.Element ncmlElem) |
protected |
AggDataset(String cacheLocation,
String location,
String id,
EnumSet<NetcdfDataset.Enhance> wantEnhance,
FileFactory reader,
Object spiObject,
org.jdom2.Element ncmlElem)
Dataset constructor.
|
| Modifier and Type | Method and Description |
|---|---|
NetcdfFile |
acquireFile(CancelTask cancelTask) |
protected void |
cacheVariables(NetcdfFile ncfile) |
protected void |
close(NetcdfFile ncfile) |
int |
compareTo(AggDataset o) |
boolean |
equals(Object oo) |
protected Variable |
findVariable(NetcdfFile ncfile,
Variable mainV) |
String |
getCacheLocation() |
String |
getId() |
String |
getLocation() |
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 final String cacheLocation
@Nullable protected final FileFactory reader
protected DatasetUrl durl
protected AggDataset(MFile mfile, @Nullable Object spiObject, @Nullable org.jdom2.Element ncmlElem)
protected AggDataset(String cacheLocation, @Nullable String location, @Nullable String id, @Nullable EnumSet<NetcdfDataset.Enhance> wantEnhance, @Nullable FileFactory reader, @Nullable Object spiObject, @Nullable org.jdom2.Element ncmlElem)
cacheLocation - a unique name to use for cachinglocation - attribute "location" on the netcdf elementid - attribute "id" on the netcdf elementwantEnhance - open dataset in enhance mode, may be nullreader - factory for reading this netcdf dataset; if null, use NetcdfDatasets.open( location)public String getLocation()
public MFile getMFile()
public String getCacheLocation()
public String getId()
public NetcdfFile acquireFile(CancelTask cancelTask) throws IOException
IOExceptionprotected void close(NetcdfFile ncfile) throws IOException
IOExceptionprotected void cacheVariables(NetcdfFile ncfile) throws IOException
IOExceptionpublic void show(Formatter f)
protected Array read(Variable mainv, CancelTask cancelTask) throws IOException
IOExceptionprotected 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(AggDataset o)
compareTo in interface Comparable<AggDataset>