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 String
The urlprivate boolean
private boolean
private static final org.slf4j.Logger
Fields 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 TypeMethodDescriptionint
Get the latitude band number.int
Get the longitude band number.boolean
Can we find a matching ENVI data file?boolean
Is the file an ENVI header file?boolean
Returns whether or not there are bounds.boolean
Is this a navigation header file?protected void
Parse a potential ENVI header file.void
setHasBounds
(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:
true
if the file appears to be an ENVI header file.
-
hasEnviData
Can we find a matching ENVI data file?- Returns:
true
ifdataFile
exists.
-
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:
parseHeader
in classHeaderInfo
-