Package edu.wisc.ssec.mcidasv.data
Class EnviInfo
java.lang.Object
edu.wisc.ssec.mcidasv.data.HeaderInfo
edu.wisc.ssec.mcidasv.data.EnviInfo
Representation of an ENVI header file.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe urlprivate booleanprivate booleanprivate static final org.slf4j.LoggerFields inherited from class edu.wisc.ssec.mcidasv.data.HeaderInfo
BANDFILES, BANDNAMES, BIGENDIAN, BYTEORDER, DATATYPE, DESCRIPTION, ELEMENTS, INTERLEAVE, kFormat1ByteUInt, kFormat2ByteSInt, kFormat2ByteUInt, kFormat2x8Byte, kFormat4ByteFloat, kFormat4ByteSInt, kFormat8ByteDouble, kFormatASCII, kFormatImage, kFormatUnknown, kInterleaveByLine, kInterleaveByPixel, kInterleaveSequential, kNavigationBounds, kNavigationFiles, kNavigationUnknown, LINES, MISSINGVALUE, NAVBOUNDS, NAVFILES, OFFSET, UNIT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the latitude band number.intGet the longitude band number.booleanCan we find a matching ENVI data file?booleanIs the file an ENVI header file?booleanReturns whether or not there are bounds.booleanIs this a navigation header file?protected voidParse a potential ENVI header file.voidsetHasBounds(boolean hasBounds) Control whether or not there are bounds.Methods inherited from class edu.wisc.ssec.mcidasv.data.HeaderInfo
doesExist, getBandCount, getFilename, getParameter, getParameter, getParameter, getParameter, getParameter, haveParsed, setFilename, setParameter
-
Field Details
-
dataFile
The url -
isEnvi
-
hasBounds
-
logger
-
-
Constructor Details
-
EnviInfo
public EnviInfo()Ctor for xml encoding -
EnviInfo
CTOR- Parameters:
thisFile- File to use. Cannot benull.
-
EnviInfo
CTOR- Parameters:
filename- The filename
-
-
Method Details
-
isEnviHeader
Is the file an ENVI header file?- Returns:
trueif the file appears to be an ENVI header file.
-
hasEnviData
Can we find a matching ENVI data file?- Returns:
trueifdataFileexists.
-
getLatBandNum
Get the latitude band number.- Returns:
- Either the latitude band number or {code -1}.
-
getLatBandFile
- Returns:
- Either the latitude band file or an empty
String.
-
getLonBandNum
Get the longitude band number.- Returns:
- Either the longitude band number or
-1.
-
getLonBandFile
- Returns:
- Either the longitude band file or an empty
String.
-
isHasBounds
Returns whether or not there are bounds.- Returns:
- Whether or not there are bounds.
-
setHasBounds
Control whether or not there are bounds.- Parameters:
hasBounds- Whether or not there are bounds.
-
parseHeader
Parse a potential ENVI header file.- Overrides:
parseHeaderin classHeaderInfo
-