NAME

fp_write_spectra_file_header - Writes spectra file header information

SYNOPSIS

#include "s/s_io.h"

Example compile flags (system dependent):
  -DLINUX_X86_64 -DLINUX_X86_64_OPTERON  -DGNU_COMPILER 
   -I/home/kobus/include
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 


int fp_write_spectra_file_header
(
	FILE *output_fp,
	int num_freq_intervals,
	double offset,
	double step,
	Spectra_origin type
);

DESCRIPTION

This routine writes the spectra header file information contained in the parameters. Any parameter which is not set (has a negative value) is not written.

NOTE

This routine is not normally needed, as it is accessed by fp_write_spectra (or indirectly via write_spectra). It is exported for code that use different forms of handling spectra (which explains also why the parameters needed are low-level concepts, rather than the Spectra type).

DISCLAIMER

This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.

AUTHOR

Kobus Barnard

DOCUMENTER

Kobus Barnard

SEE ALSO

read_spectra_from_config_file , read_reflectance_spectra , read_illuminant_spectra , read_sensor_spectra , read_spectra , read_spectra_file_header , fp_read_spectra_file_header , write_spectra_full_precision , fp_write_spectra_full_precision , write_spectra , fp_write_spectra