public class DodsAdapter
extends java.lang.Object
| Constructor and Description |
|---|
DodsAdapter(java.net.URL source,
java.lang.String variable)
Creates a new instance of DodsAdapter
|
| Modifier and Type | Method and Description |
|---|---|
protected static MutablePropertyDataSet |
checkTimeUnits(java.lang.String sunits,
MutablePropertyDataSet dep0)
check for time units and attach them to the data.
|
double |
getAddOffset()
Getter for property addOffset.
|
java.lang.String |
getConstraint()
get the constraint, such as "?sst[0:100:1811][0:10:35][0:10:71]"
|
QDataSet |
getDataSet(java.util.Map<java.lang.String,java.lang.Object> attributes)
This is the code that converts the OpenDAP structures and data types into QDataSet
|
java.lang.String |
getDepend0Name()
Getter for property depend0Name.
|
java.lang.String |
getDepend1Name()
Getter for property depend1Name.
|
java.lang.String |
getDependName(int index)
Indexed getter for property dependName.
|
java.util.HashMap |
getDimProperties(int i) |
Units |
getDimUnits(int index)
Indexed getter for property dimUnits, which specifies the units of a dimension tag.
|
double |
getScaleFactor()
Getter for property scaleFactor.
|
java.net.URL |
getSource() |
Units |
getUnits()
Getter for property units.
|
java.lang.String |
getVariable()
get the variable, such as "sst"
|
void |
loadDataset(ProgressMonitor mon,
java.util.Map<java.lang.String,java.lang.Object> attr)
Load the dataset.
|
void |
putAllProperties(java.util.Map p) |
void |
setAddOffset(double addOffset)
Setter for property addOffset.
|
void |
setConstraint(java.lang.String c) |
void |
setDepend0Name(java.lang.String depend0Name)
Setter for property depend0Name.
|
void |
setDepend1Name(java.lang.String depend1Name)
Setter for property depend1Name.
|
void |
setDependName(int index,
java.lang.String dependName)
Indexed setter for property dependName.
|
void |
setDimProperties(int dim,
java.util.Map p) |
void |
setDimUnits(int index,
Units dimUnits)
Specifies the units of a dimension tag.
|
void |
setScaleFactor(double scaleFactor)
Setter for property scaleFactor.
|
void |
setUnits(Units units)
Setter for property units.
|
void |
setValidRange(double min,
double max) |
public DodsAdapter(java.net.URL source,
java.lang.String variable)
source - the base URL, like http://acdisc.gsfc.nasa.gov/opendap/HDF-EOS5/Aura_OMI_Level3/OMAEROe.003/2005/OMI-Aura_L3-OMAEROe_2005m0101_v003-2011m1109t081947.he5variable - the variable to read, like TerrainReflectivitypublic java.lang.String getVariable()
public void setConstraint(java.lang.String c)
public java.lang.String getConstraint()
public void loadDataset(ProgressMonitor mon, java.util.Map<java.lang.String,java.lang.Object> attr) throws java.io.FileNotFoundException, java.net.MalformedURLException, java.io.IOException, opendap.dap.parser.ParseException, opendap.dap.DDSException, opendap.dap.DDSException, CancelledOperationException, opendap.dap.DAP2Exception
mon - progress monitorattr - look for hints in attr about the length of the load. Virbo/TSDS put a recCount for sequences.java.io.FileNotFoundExceptionjava.net.MalformedURLExceptionjava.io.IOExceptionopendap.dap.parser.ParseExceptionopendap.dap.DDSExceptionCancelledOperationExceptionopendap.dap.DAP2Exceptionpublic QDataSet getDataSet(java.util.Map<java.lang.String,java.lang.Object> attributes)
attributes - protected static MutablePropertyDataSet checkTimeUnits(java.lang.String sunits, MutablePropertyDataSet dep0)
sunits - labels for the units, or null.dep0 - the datapublic java.lang.String getDepend0Name()
public void setDepend0Name(java.lang.String depend0Name)
depend0Name - New value of property depend0Name.public java.lang.String getDepend1Name()
public void setDepend1Name(java.lang.String depend1Name)
depend1Name - New value of property depend1Name.public double getAddOffset()
public void setAddOffset(double addOffset)
addOffset - New value of property addOffset.public double getScaleFactor()
public void setScaleFactor(double scaleFactor)
scaleFactor - New value of property scaleFactor.public void setValidRange(double min,
double max)
public Units getDimUnits(int index)
index - Index of the property.index.public void setDimUnits(int index,
Units dimUnits)
index - Index of the property.dimUnits - New value of the property at index.public void putAllProperties(java.util.Map p)
public void setDimProperties(int dim,
java.util.Map p)
public java.util.HashMap getDimProperties(int i)
public Units getUnits()
public void setUnits(Units units)
units - New value of property units.public java.lang.String getDependName(int index)
index - Index of the property.index.public void setDependName(int index,
java.lang.String dependName)
index - Index of the property.dependName - New value of the property at index.public java.net.URL getSource()