public class ArcAsciiGridAdapter extends Object
Modifier and Type | Field and Description |
---|---|
static RealType |
DEFAULT_DATA_TYPE
Default data type
|
static RealTupleType |
DEFAULT_SPATIAL_TYPE
Default spatial type
|
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final RealTupleType DEFAULT_SPATIAL_TYPE
public static final RealType DEFAULT_DATA_TYPE
public ArcAsciiGridAdapter(String filename) throws VisADException
filename
- name of file to readVisADException
- couldn't create VisAD objectpublic ArcAsciiGridAdapter(String filename, RealType dataType) throws VisADException
filename
- name of file to readdataType
- RealType to use for range unitsVisADException
- couldn't create VisAD objectpublic ArcAsciiGridAdapter(String filename, RealTupleType spatialType) throws VisADException
filename
- name of file to readspatialType
- RealTupleType to use for spatial domainVisADException
- 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 unitsVisADException
- couldn't create VisAD objectpublic ArcAsciiGridAdapter(String filename, Unit dataUnit) throws VisADException
filename
- name of file to readdataUnit
- Unit of dataVisADException
- if unit is incompatiblepublic ArcAsciiGridAdapter(String filename, String dataName) throws VisADException
filename
- name of file to readdataName
- name to use for creating RealTypeVisADException
- 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 specificationVisADException
- 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 filepublic FieldImpl getData() throws VisADException
VisADException
public FieldImpl getData(RealTupleType spatialType, RealType dataType) throws VisADException
spatialType
- type for spatial domaindataType
- type for rangeVisADException
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 domainVisADException
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()
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.