write_header(f, headdict)[source]

Rewriting the write_header Function of gse_functions.c

Different operating systems are delivering different output for the scientific format of floats (fprintf libc6). Here we ensure to deliver in a for GSE2 valid format independent of the OS. For speed issues we simple cut any number ending with E+0XX or E-0XX down to E+XX or E-XX. This fails for numbers XX>99, but should not occur.

  • f (file) File pointer to to GSE2 file to write
  • headdict (dict) ObsPy header