edu.wisc.ssec.mcidasv.data
Class QualityFlag
java.lang.Object
edu.wisc.ssec.mcidasv.data.QualityFlag
public class QualityFlag
- extends Object
- Author:
- tommyj
Holds info to extract a Suomi NPP Quality Flag from a packed byte.
Info is read from the appropriate XML Product Profile
bitOffset
private int bitOffset
numBits
private int numBits
name
private String name
packedName
private String packedName
hm
private HashMap<String,String> hm
QualityFlag
public QualityFlag(int bitOffset,
int numBits,
String name,
HashMap<String,String> hm)
- Parameters:
bitOffset
- numBits
- name
-
getBitOffset
public int getBitOffset()
- Returns:
- the bitOffset
setBitOffset
public void setBitOffset(int bitOffset)
- Parameters:
bitOffset
- the bitOffset to set
getNumBits
public int getNumBits()
- Returns:
- the numBits
setNumBits
public void setNumBits(int numBits)
- Parameters:
numBits
- the numBits to set
getName
public String getName()
- Returns:
- the name
setName
public void setName(String name)
- Parameters:
name
- the name to set
getPackedName
public String getPackedName()
- Returns:
- the packedName
setPackedName
public void setPackedName(String packedName)
- Parameters:
packedName
- the packedName to set
getHm
public HashMap<String,String> getHm()
- Returns:
- the hm
setHm
public void setHm(HashMap<String,String> hm)
- Parameters:
hm
- the hm to set
getNameForValue
public String getNameForValue(String valueStr)
- Returns:
- the name for a discreet value for this flag
toString
public String toString()
- Overrides:
toString
in class Object