This routine is obsolete and has been replaced with the ENVIRaster::WriteMetadata method.

Use this procedure to write or re-write an ENVI header file to preserve changes to user-defined header values. Once you open an ENVI-format file, you can programmatically change your header values using ENVI_ASSIGN_HEADER_VALUE. To preserve these changes to files that reside on disk, you must also write the updated header using ENVI_WRITE_FILE_HEADER.





This is the file ID for the open file. This value is returned from the keyword R_FID in the ENVI_OPEN_FILE procedure. FID is a long integer with a value greater than 0. An invalid file ID has a value of -1.