edu.wisc.ssec.mcidasv.data.hydra
Class SuomiNPPProductProfile
java.lang.Object
edu.wisc.ssec.mcidasv.data.hydra.SuomiNPPProductProfile
public class SuomiNPPProductProfile
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final org.slf4j.Logger logger
db
DocumentBuilder db
readFromJar
boolean readFromJar
rangeMin
HashMap<String,String> rangeMin
rangeMax
HashMap<String,String> rangeMax
scaleFactorName
HashMap<String,String> scaleFactorName
fillValues
HashMap<String,ArrayList<Float>> fillValues
SuomiNPPProductProfile
public SuomiNPPProductProfile()
throws ParserConfigurationException,
SAXException,
IOException
- Throws:
ParserConfigurationException
SAXException
IOException
getProfileFileName
public String getProfileFileName(String attrName)
- See if for a given N_Collection_Short_Name attribute, the profile is present
- Parameters:
pathStr
- the directory the XML Product Profiles resideattrName
- The attribute name our file should match
- Returns:
- the full file name for the XML Product Profile
addMetaDataFromFile
public void addMetaDataFromFile(String fileName)
throws SAXException,
IOException
- Throws:
SAXException
IOException
hasNameAndMetaData
public boolean hasNameAndMetaData(String name)
- Check if this product profile has a product AND metadata
Only need to check one of the possible fields
- Parameters:
product
- name
- Returns:
- true if both conditions met
getRangeMin
public String getRangeMin(String name)
getRangeMax
public String getRangeMax(String name)
getScaleFactorName
public String getScaleFactorName(String name)
getFillValues
public ArrayList<Float> getFillValues(String name)