Package org.esa.snap.core.dataio.dimap
Class EnviHeader
java.lang.Object
org.esa.snap.core.dataio.dimap.EnviHeader
This utility class is used to write ENVI header files.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreatePhysicalFile(File headerFile, RasterDataNode rasterDataNode, int width, int height) Writes the header for theRasterDataNodeto theFile.static voidcreatePhysicalFile(File headerFile, RasterDataNode rasterDataNode, int width, int height, int byteorder) Writes the header for theRasterDataNodeto theFile.
-
Field Details
-
FILE_EXTENSION
The extension used for ENVI header files.- See Also:
-
-
Method Details
-
createPhysicalFile
public static void createPhysicalFile(File headerFile, RasterDataNode rasterDataNode, int width, int height) throws IOException Writes the header for theRasterDataNodeto theFile.- Parameters:
headerFile- - theFiledestinationrasterDataNode- theRasterDataNodewidth- 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 theRasterDataNodeto theFile.- Parameters:
headerFile- - theFiledestinationrasterDataNode- theRasterDataNodewidth- the nodes's width in pixelsheight- the nodes's height in pixelsbyteorder- the byte ordering- Throws:
IOException- if an I/O error occurs
-