|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.data.gis.ArcAsciiGridAdapter
public class ArcAsciiGridAdapter
AsciiArcGridAdapter converts an ASCII ArcGrid file into a VisAD Data object.
Field Summary | |
---|---|
static RealType |
DEFAULT_DATA_TYPE
Default data type |
static RealTupleType |
DEFAULT_SPATIAL_TYPE
Default spatial type |
Constructor Summary | |
---|---|
ArcAsciiGridAdapter(String filename)
Create an ArcAsciiGridAdapter for the particular file. |
|
ArcAsciiGridAdapter(String filename,
RealTupleType spatialType)
Create an ArcAsciiGridAdapter for the particular file and use the RealType specified for the data metadata. |
|
ArcAsciiGridAdapter(String filename,
RealTupleType spatialType,
RealType dataType)
Create an ArcAsciiGridAdapter for the particular file and use the RealType specified for the data metadata. |
|
ArcAsciiGridAdapter(String filename,
RealTupleType spatialType,
RealType dataType,
Unit dataUnit)
Create an ArcAsciiGridAdapter for the particular file and use the supplied RealType for the data values, and units if different from default from RealType. |
|
ArcAsciiGridAdapter(String filename,
RealType dataType)
Create an ArcAsciiGridAdapter for the particular file and use the RealType specified for the data metadata. |
|
ArcAsciiGridAdapter(String filename,
RealType dataType,
Unit dataUnit)
Create an ArcAsciiGridAdapter for the particular file and use the supplied RealType for the data values, and units if different from default from RealType. |
|
ArcAsciiGridAdapter(String filename,
String dataName)
Create an ArcAsciiGridAdapter for the particular file and use the supplied RealType for the data values, and units if different from default from RealType. |
|
ArcAsciiGridAdapter(String filename,
String dataName,
String unitSpec)
Create an ArcAsciiGridAdapter for the particular file and use the supplied RealType for the data values, and units if different from default from RealType. |
|
ArcAsciiGridAdapter(String filename,
Unit dataUnit)
Create an ArcAsciiGridAdapter for the particular file and use units specified for the data. |
Method Summary | |
---|---|
Rectangle2D |
getBounds()
Get the bounds of this grid |
float |
getCellSize()
Deprecated. Use getCellSizeX and getCellSizeY |
float |
getCellSizeX()
Get the cell size of this grid |
float |
getCellSizeY()
Get the cell size of this grid |
int |
getColumns()
Get the number of columns in this grid |
FieldImpl |
getData()
Get the ASCIIGRID as a VisAD data object |
FieldImpl |
getData(MathType mathType)
Get the ASCIIGRID as a VisAD data object with the specified domain and range. |
FieldImpl |
getData(RealTupleType spatialType,
RealType dataType)
Get the ASCIIGRID as a VisAD data object with the specified spatial domain and range. |
RealType |
getDataType()
Get the type of the Data. |
Unit |
getDataUnit()
Get the data units |
float |
getNoDataValue()
Get the missing data value for this grid |
int |
getRows()
Get the number of rows in this grid |
Gridded2DSet |
getSpatialSet()
Get the domain set for this DEM as a Longitude, Latitude set |
Gridded2DSet |
getSpatialSet(RealTupleType spatialType)
Get the spatial domain set for this ASCIIGRID with the specified type. |
RealTupleType |
getSpatialType()
Get the spatial domain type. |
float |
getXLLCorner()
Get the x value of the lower left corner of the grid. |
float |
getYLLCorner()
Get the y value of the lower left corner of the grid. |
static void |
main(String[] args)
test this class "java visad.data.gis.ArcAsciiGridAdpater |
void |
setDataType(RealType newType)
Set the range type. |
void |
setDataUnit(Unit newUnit)
Set the data units |
void |
setSpatialType(RealTupleType newSpatialType)
Set the spatial domain type. |
String |
toString()
Return a string representation of this grid as constructed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final RealTupleType DEFAULT_SPATIAL_TYPE
public static final RealType DEFAULT_DATA_TYPE
Constructor Detail |
---|
public ArcAsciiGridAdapter(String filename) throws VisADException
filename
- name of file to read
VisADException
- couldn't create VisAD objectpublic ArcAsciiGridAdapter(String filename, RealType dataType) throws VisADException
filename
- name of file to readdataType
- RealType to use for range units
VisADException
- couldn't create VisAD objectpublic ArcAsciiGridAdapter(String filename, RealTupleType spatialType) throws VisADException
filename
- name of file to readspatialType
- RealTupleType to use for spatial domain
VisADException
- couldn't create VisAD objectpublic ArcAsciiGridAdapter(String filename, RealTupleType spatialType, RealType dataType) throws VisADException
filename
- name of file to readspatialType
- RealTupleType to use for the spatial domain.dataType
- RealType to use for range units
VisADException
- couldn't create VisAD objectpublic ArcAsciiGridAdapter(String filename, Unit dataUnit) throws VisADException
filename
- name of file to readdataUnit
- Unit of data
VisADException
- if unit is incompatiblepublic ArcAsciiGridAdapter(String filename, String dataName) throws VisADException
filename
- name of file to readdataName
- name to use for creating RealType
VisADException
- if unit is incompatible, or problem with filepublic ArcAsciiGridAdapter(String filename, String dataName, String unitSpec) throws VisADException
filename
- name of file to readdataName
- name for the dataunitSpec
- valid Unit specification
VisADException
- if unit is incompatible, or problem with filepublic ArcAsciiGridAdapter(String filename, RealType dataType, Unit dataUnit) throws VisADException
filename
- name of file to readdataType
- RealType to use for range unitsdataUnit
- Unit of data if different from dataType
default units.
VisADException
- if unit is incompatible, or problem with filepublic ArcAsciiGridAdapter(String filename, RealTupleType spatialType, RealType dataType, Unit dataUnit) throws VisADException
filename
- name of file to readspatialType
- RealTupleType to use for the spatial domain.dataType
- RealType to use for range unitsdataUnit
- Unit of data if different from dataType
default units.
VisADException
- if unit is incompatible, or problem with fileMethod Detail |
---|
public FieldImpl getData() throws VisADException
VisADException
public FieldImpl getData(RealTupleType spatialType, RealType dataType) throws VisADException
spatialType
- type for spatial domaindataType
- type for range
VisADException
public FieldImpl getData(MathType mathType) throws VisADException
mathType
- type to use. If it's a FunctionType, it defines
the return objects function type. If it's a
RealTupleType, it defines the domain type,
if it's a RealType, it defines the data type.
mathType
VisADException
public Gridded2DSet getSpatialSet() throws VisADException
VisADException
public Gridded2DSet getSpatialSet(RealTupleType spatialType) throws VisADException
spatialType
- RealTupleType (dimension 2) to use for this domain
VisADException
public float getXLLCorner()
public float getYLLCorner()
public float getCellSize()
public float getCellSizeX()
public float getCellSizeY()
public float getNoDataValue()
public int getRows()
public int getColumns()
public RealTupleType getSpatialType()
public void setSpatialType(RealTupleType newSpatialType)
newSpatialType
- new type forpublic void setDataType(RealType newType)
newType
- new type for rangepublic RealType getDataType()
public void setDataUnit(Unit newUnit)
newUnit
- new units for datapublic Unit getDataUnit()
public Rectangle2D getBounds()
public String toString()
toString
in class Object
public static void main(String[] args) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |