
fgm{p|s}pdb  --  generate PPDB/SPDB interface files of CLUSTER FGM data

USAGE:

 fgmppdb [<inf>...] [-a <att>] [-e <ecl>] [-t <tl>] [-l [<log>]] [-o [<out>]]
 fgmspdb [<inf>...] [-a <att>] [-e <ecl>] [-t <tl>] [-l [<log>]] [-o [<out>]]

 fgmppdb generates an interface file (IFF) for the CSDS Prime Parameter
         Data Base of CLUSTER FGM data, containing spin averages of the 
         magnetic field.          
 fgmspdb generates an interface file (IFF) for the CSDS Summary Parameter
         Data Base of CLUSTER FGM data, containing one-minute averages of
         the magnetic field.

 The input file is a normal or burst mode science data file containing
 the raw FGM data, like those distributed on the raw data medium (RDM).
 More than one input file may be specified to concatenate data. If no
 input file is given, the data will be read from stdin.

OPTIONS:

  -a   use <att> as attitude file. <att> may contain DDS-headers, i.e.
       the raw attitude file from CDROM (*ga*) may be used.
       Default is to use the merged attitude file '$SATTPATH/satt.cl#',
       where '#' is replaced by the satellite number.

  -e   read eclipse info from file <ecl>. <ecl> may contain DDS-headers, i.e.
       the raw attitude file from CDROM (*ta*) may be used.
       Default is '$SATTPATH/s{|l}tef.cl#', where #=1,2,3,4.

  -t   use <tl> as timelist file, containing start, end, and tag times
       for each averaging interval.
       Default: fgmppdb will use a spin phase offset of 26.367 degrees
       with respect to the sun reference pulses as start times, whereas
       fgmspdb will use full minutes as start times.

  -o   use <out> as output file. If -o is used but <out> is omitted,
       output is written to stdout.
       Default is to write to a file whose name is generated according
       to the IFF file naming convention.
         
  -l   re-direct info from stderr to a logfile <log>. 
       If -l is used but <log> is omitted, output is written to 'logfile'

  -V   print version number on stdout, then exit.

AUTHORS:

 Edita Georgescu  (eg@mpe.mpg.de)
 Stephan Buchert  (scb@geophys.nat.tu-bs.de)
 Reinhold Kempen  (reinhold@geophys.nat.tu-bs.de)
 Joerg Warnecke   (joerg@geophys.nat.tu-bs.de)
Copyright (C) 1994/95/96/2000/01 IGM TU Braunschweig, MPE Garching
