Package org.esa.snap.core.dataio.dimap
Class EnviHeader
- java.lang.Object
-
- org.esa.snap.core.dataio.dimap.EnviHeader
-
public class EnviHeader extends Object
This utility class is used to write ENVI header files.
-
-
Field Summary
Fields Modifier and Type Field Description static String
FILE_EXTENSION
The extension used for ENVI header files.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
createPhysicalFile(File headerFile, RasterDataNode rasterDataNode, int width, int height)
Writes the header for theRasterDataNode
to theFile
.static void
createPhysicalFile(File headerFile, RasterDataNode rasterDataNode, int width, int height, int byteorder)
Writes the header for theRasterDataNode
to theFile
.
-
-
-
Field Detail
-
FILE_EXTENSION
public static final String FILE_EXTENSION
The extension used for ENVI header files.- See Also:
- Constant Field Values
-
-
Method Detail
-
createPhysicalFile
public static void createPhysicalFile(File headerFile, RasterDataNode rasterDataNode, int width, int height) throws IOException
Writes the header for theRasterDataNode
to theFile
.- Parameters:
headerFile
- - theFile
destinationrasterDataNode
- theRasterDataNode
width
- the nodes's width in pixelsheight
- the nodes's height in pixels- Throws:
IOException
- if an I/O error occurs
-
createPhysicalFile
public static void createPhysicalFile(File headerFile, RasterDataNode rasterDataNode, int width, int height, int byteorder) throws IOException
Writes the header for theRasterDataNode
to theFile
.- Parameters:
headerFile
- - theFile
destinationrasterDataNode
- theRasterDataNode
width
- the nodes's width in pixelsheight
- the nodes's height in pixelsbyteorder
- the byte ordering- Throws:
IOException
- if an I/O error occurs
-
-