public class UsgsDemAdapter extends Object
To simplify things, class UsgsDem changes the format of a USGS 7.5 minute DEM to a simpler "row by column" raster form rather than the "row by column by subcolumn" format in the specification.
Constructor and Description |
---|
UsgsDemAdapter()
Default constructor, everything remains null.
|
UsgsDemAdapter(String filename)
Constructs a new UsgsDemAdapter object with data read from the given
(native format, non-SDTS) USGS DEM file
|
Modifier and Type | Method and Description |
---|---|
FieldImpl |
getData()
Get the DEM as a VisAD data object
|
Gridded2DSet |
getDomain()
Get the domain set for this DEM
|
void |
load(String filename)
Reinitializes this UsgsDemAdapter object with data read from the given
(non-SDTS) USGS DEM file.
|
static void |
main(String[] args) |
static String |
padRight(Object obj,
int i)
This method takes any Object and using its String representation
provided by its toString() method, pads it with blank characters
on the right, to a specified length.
|
String |
toString()
Multi-line string representation
|
public UsgsDemAdapter()
public UsgsDemAdapter(String filename) throws IOException, VisADException
filename
- the name of the DEM fileIOException
VisADException
public void load(String filename) throws IOException, VisADException
filename
- the name of the DEM fileIOException
- - If an I/O error occurs (invalid file)VisADException
public String toString()
public static String padRight(Object obj, int i)
obj
- Object to be paddedi
- padding lengthpublic FieldImpl getData() throws VisADException
VisADException
public Gridded2DSet getDomain() throws VisADException
VisADException
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.