public class AreaDirectory
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
AreaDirectory(AreaDirectory directory)
Create an AreaDirectory from another AreaDirectory object.
|
AreaDirectory(int[] dirblock)
Create an AreaDirectory from the raw block of data of
an AreaFile.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Check the equality of the object in question with this.
|
int[] |
getBands()
returns the bands in each of the images
|
int |
getCalibrationScaleFactor()
Get the scaling factor of the values for this calibration type
|
java.lang.String |
getCalibrationType()
Returns the calibration type
|
java.lang.String |
getCalibrationUnitName()
Get the string representing the calibration unit
|
java.util.Vector[] |
getCalInfo()
get the valid band calibration information
|
double |
getCenterLatitude()
get Latutide at center of image
|
double |
getCenterLatitudeResolution()
get Latutide-wise resolution at center of image
|
double |
getCenterLongitude()
get longitude at center of image
|
double |
getCenterLongitudeResolution()
get longitude-wise resolution at center of image
|
int[] |
getDirectoryBlock()
Get the raw directory block
|
int |
getElements()
returns the number of elements in the image
|
int |
getLines()
returns the number of lines in the image
|
java.lang.String |
getMemoField()
Returns memo field of the directory
|
java.util.Date |
getNominalTime()
returns the nominal time of the image
|
int |
getNumberOfBands()
returns the number of bands in the image
|
int |
getSensorID() |
java.lang.String |
getSensorType()
Returns the sensor type
|
java.lang.String |
getSourceType()
Returns the source type
|
java.util.Date |
getStartTime()
returns the nominal time of the image
|
int |
getValue(int pointer)
Return a specific value from the directory
|
static void |
main(java.lang.String[] args)
Used for unit testing - for now just prints Sensor ID list
This provides an easy way to make sure list is current before
releases.
|
void |
setCalInfo(java.util.Vector[] v)
set the band calibration info (Vector)
array order is identical to bands array, each Vector
element is a pair of String values: first, the code value and
second the descriptive name.
|
void |
setCenterLatitude(double lat)
set Latitude at center of image
|
void |
setCenterLatitudeResolution(double res)
set Latitude-wise resolution at center of image
|
void |
setCenterLongitude(double lon)
set Longitude at center of image
|
void |
setCenterLongitudeResolution(double res)
set Longitude-wise resolution at center of image
|
java.lang.String |
toString()
Prints out a formatted listing of the directory info
|
public AreaDirectory(int[] dirblock)
throws AreaFileException
dirblock - the integer blockAreaFileException - not a valid directorypublic AreaDirectory(AreaDirectory directory) throws AreaFileException
directory - the source AreaDirectoryAreaFileException - not a valid directorypublic int getValue(int pointer)
throws AreaFileException
pointer - part of the directory you want returned.
Use AreaFile static fields as pointers.AreaFileException - invalid pointerpublic int[] getDirectoryBlock()
public java.util.Date getNominalTime()
public java.util.Date getStartTime()
public int getNumberOfBands()
public int getLines()
public int getElements()
public void setCalInfo(java.util.Vector[] v)
v - the list of calibration parameterspublic java.util.Vector[] getCalInfo()
public int[] getBands()
public java.lang.String getMemoField()
public java.lang.String getSensorType()
public int getSensorID()
public java.lang.String getSourceType()
public java.lang.String getCalibrationType()
public double getCenterLatitude()
public void setCenterLatitude(double lat)
lat - value of latitude at center point of imagepublic double getCenterLongitude()
public void setCenterLongitude(double lon)
lon - value of Longitude at center point of imagepublic double getCenterLatitudeResolution()
public void setCenterLatitudeResolution(double res)
res - value of latitude-wise resolution at center point of imagepublic double getCenterLongitudeResolution()
public void setCenterLongitudeResolution(double res)
res - value of Longitude-wise resolution at center point of imagepublic java.lang.String getCalibrationUnitName()
public int getCalibrationScaleFactor()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - object in questionpublic java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)