public class AreaDirectory extends Object implements 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(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
|
String |
getCalibrationType()
Returns the calibration type
|
String |
getCalibrationUnitName()
Get the string representing the calibration unit
|
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
|
String |
getMemoField()
Returns memo field of the directory
|
Date |
getNominalTime()
returns the nominal time of the image
|
int |
getNumberOfBands()
returns the number of bands in the image
|
int |
getSensorID() |
String |
getSensorType()
Returns the sensor type
|
String |
getSourceType()
Returns the source type
|
Date |
getStartTime()
returns the nominal time of the image
|
int |
getValue(int pointer)
Return a specific value from the directory
|
static void |
main(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(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
|
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 Date getNominalTime()
public Date getStartTime()
public int getNumberOfBands()
public int getLines()
public int getElements()
public void setCalInfo(Vector[] v)
v
- the list of calibration parameterspublic Vector[] getCalInfo()
public int[] getBands()
public String getMemoField()
public String getSensorType()
public int getSensorID()
public String getSourceType()
public 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 String getCalibrationUnitName()
public int getCalibrationScaleFactor()
public boolean equals(Object o)
public String toString()
public static void main(String[] args)
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.