Class EnviInfo

java.lang.Object
edu.wisc.ssec.mcidasv.data.HeaderInfo
edu.wisc.ssec.mcidasv.data.EnviInfo

public class EnviInfo extends HeaderInfo
Representation of an ENVI header file.
  • Field Details

  • Constructor Details

    • EnviInfo

      public EnviInfo()
      Ctor for xml encoding
    • EnviInfo

      public EnviInfo(File thisFile)
      CTOR
      Parameters:
      thisFile - File to use. Cannot be null.
    • EnviInfo

      public EnviInfo(String filename)
      CTOR
      Parameters:
      filename - The filename
  • Method Details

    • isEnviHeader

      public boolean isEnviHeader()
      Is the file an ENVI header file?
      Returns:
      true if the file appears to be an ENVI header file.
    • hasEnviData

      public boolean hasEnviData()
      Can we find a matching ENVI data file?
      Returns:
      true if dataFile exists.
    • isNavHeader

      public boolean isNavHeader()
      Is this a navigation header file?
      Returns:
      true if dataFile contains latitude and longitude bands, false otherwise.
    • getLatBandNum

      public int 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

      public int 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

      public boolean isHasBounds()
      Returns whether or not there are bounds.
      Returns:
      Whether or not there are bounds.
    • setHasBounds

      public void setHasBounds(boolean hasBounds)
      Control whether or not there are bounds.
      Parameters:
      hasBounds - Whether or not there are bounds.
    • parseHeader

      protected void parseHeader()
      Parse a potential ENVI header file.
      Overrides:
      parseHeader in class HeaderInfo