Package ucar.unidata.data.imagery
Class BandInfo
java.lang.Object
ucar.unidata.data.imagery.BandInfo
Class for holding Band information
- Version:
- $Revision: 1.5 $
- Author:
- IDV Development Team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check for equalitystatic int
findIndexByName
(String desc, List<BandInfo> bandinfos) Find the index in the list of the first band with the band description.static int
findIndexByNumber
(int band, List<BandInfo> bandinfos) Find the index in the list of the first band with the band number.Get the description for the bandint
Get the band number for this BandInfoCet the calibration units for this BandInfoCet the preferred calibration units for this BandInfoint
Get the satellite sensor number for this BandInfoint
hashCode()
Get the Hashcode for this object.void
setBandDescription
(String description) Set the band description for this BandInfovoid
setBandNumber
(int band) Set the band number for this BandInfovoid
setCalibrationUnits
(List units) Set the calibration units for this BandInfovoid
setPreferredUnit
(String unit) Set the preferred calibration unit for this BandInfovoid
setSensor
(int sensor) Set the satellite sensor number for this BandInfotoString()
Get a String Representation of this object
-
Constructor Details
-
BandInfo
public BandInfo()Default constructor -
BandInfo
public BandInfo(int sensor, int band) Create a new BandInfo- Parameters:
sensor
- satellite sensor numberband
- band number
-
BandInfo
Create a new BandInfo- Parameters:
sensor
- satellite sensor numberband
- band numberdescription
- description of band
-
BandInfo
Create a new BandInfo- Parameters:
sensor
- satellite sensor numberband
- band numberdescription
- description of bandunits
- available calibration units
-
BandInfo
Copy constructor- Parameters:
that
- other BandInfo
-
-
Method Details
-
setBandNumber
public void setBandNumber(int band) Set the band number for this BandInfo- Parameters:
band
- band number
-
getBandNumber
public int getBandNumber()Get the band number for this BandInfo- Returns:
- band number
-
setBandDescription
Set the band description for this BandInfo- Parameters:
description
- band description
-
getBandDescription
Get the description for the band- Returns:
- band description
-
setSensor
public void setSensor(int sensor) Set the satellite sensor number for this BandInfo- Parameters:
sensor
- sensor number
-
getSensor
public int getSensor()Get the satellite sensor number for this BandInfo- Returns:
- the satellite sensor number for this BandInfo
-
setCalibrationUnits
Set the calibration units for this BandInfo- Parameters:
units
- list of calibration units
-
getCalibrationUnits
Cet the calibration units for this BandInfo- Returns:
- the calibration units, may be a list of Strings or
-
setPreferredUnit
Set the preferred calibration unit for this BandInfo- Parameters:
unit
- unit id
-
getPreferredUnit
Cet the preferred calibration units for this BandInfo- Returns:
- the preferred calibration units
-
toString
Get a String Representation of this object -
equals
Check for equality -
hashCode
public int hashCode()Get the Hashcode for this object. -
findIndexByNumber
Find the index in the list of the first band with the band number.- Parameters:
band
- band numberbandinfos
- list of BandInfos- Returns:
- the index in the list or -1
-
findIndexByName
Find the index in the list of the first band with the band description.- Parameters:
desc
- band namebandinfos
- list of BandInfos- Returns:
- the index in the list or -1
-