public class Aggregation.Dataset extends Object implements Comparable
Modifier and Type | Field and Description |
---|---|
protected String |
cacheLocation |
protected DatasetUrl |
durl |
protected Set<NetcdfDataset.Enhance> |
enhance |
protected String |
id |
protected ucar.nc2.util.cache.FileFactory |
reader |
Modifier | Constructor and Description |
---|---|
protected |
Dataset(thredds.inventory.MFile mfile) |
protected |
Dataset(String cacheLocation,
String location,
String id,
EnumSet<NetcdfDataset.Enhance> enhance,
ucar.nc2.util.cache.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
|
thredds.inventory.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 ucar.nc2.util.cache.FileFactory reader
protected Set<NetcdfDataset.Enhance> enhance
protected DatasetUrl durl
protected Dataset(thredds.inventory.MFile mfile)
protected Dataset(String cacheLocation, String location, String id, EnumSet<NetcdfDataset.Enhance> enhance, ucar.nc2.util.cache.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 thredds.inventory.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