582 "ASCII reading functions" << std::endl <<
583 "-----------------------" << std::endl <<
587 "This module reads seismic time series data in the raw\n" 588 "single column ASCII format. No header values are required\n" 589 "but all SFF header data can be provided. Header data not\n" 590 "present in the file can be set through format modifiers.\n" 591 "Header data neither given in the file nor in the format are\n" 592 "set to default values. The number of samples is determined from\n" 593 "actual numer of samples present in the file. If a number of samples\n" 594 "is defined in the header it is used as a maximum number of samples\n" 595 "to be read until the next trace begins.\n" 596 "Each line with a hash (#) in the first column is treated\n" 597 "as a header line. Each line with a double hash (##) in the\n" 598 "first two columns is treated as a free format comment. All\n" 599 "other lines are treated as ASCII data.\n" 602 "Parameter values for header fields can be set in lines which\n" 603 "have a single hash (#) in the first column. The hash is expected\n" 604 "to be followed by a key ID, which can be either one of the\n" 605 "modifier keys listed below or can be \"" <<
ascii::keydata <<
"\".\n" 606 "The key has to be separated from the value by a single colon (:).\n" 607 "If you feel unsure, simply write a data file using the ASCII\n" 608 "output functions and have a look at the result.\n" 611 "The data type can be selected by the key \"" 613 os <<
" "; os.width(7);
616 os <<
" "; os.width(7);
619 os <<
" "; os.width(7);
622 "If no type is specified, the default will be " 626 "The ascii input stream can be controlled by format modifiers:\n";
628 "(WID2) set number of samples");
630 "(WID2) set sampling interval (seconds)");
632 "(WID2) set time of first sample; YYYY/MM/DD/hh/mm/ss.ssssss");
634 "(WID2) set channel ID");
636 "(WID2) set station ID");
638 "(WID2) set auxiliary ID");
640 "(WID2) set instrument type ID");
642 "(WID2) set calib value");
644 "(WID2) set calper value");
646 "(WID2) set hang value");
648 "(WID2) set vang value");
650 "(SRCE) set date and time of source; YYYY/MM/DD/hh/mm/ss.ssssss");
652 "(SRCE) set type of source");
654 "(SRCE) set x coordinate of source");
656 "(SRCE) set y coordinate of source");
658 "(SRCE) set z coordinate of source");
660 "(SRCE) set coordinate system of source");
662 "(INFO) set number of stacks");
664 "(INFO) set x coordinate of receiver");
666 "(INFO) set y coordinate of receiver");
668 "(INFO) set z coordinate of receiver");
670 "(INFO) set coordinate system of receiver");
671 os <<
"Further modifiers:\n";
673 "make errors non-fatal is possible (only a warning will be issued)");
const char *const keyinstype
key for WID2 line header field
const char *const keySRCEtype
key for SRCE line header field
const char *const keydouble
key for DATA type header field
const char *const keySRCEY
key for SRCE line header field
const char *const keynonfatal
format modifier key
const char *const keyRECVY
key for INFO line header field
void explainmodifier(std::ostream &os, const char *const key, const char *const message)
const char *const keydt
key for WID2 line header field
const char *const keyRECVCS
key for INFO line header field
const char *const keyhang
key for WID2 line header field
const char *const keyint
key for DATA type header field
#define DATRW_IASCIISTREAM_CC_VERSION
const char *const keycalib
key for WID2 line header field
const char *const keyauxid
key for WID2 line header field
const char *const keychannel
key for WID2 line header field
const char *const keydate
key for WID2 line header field
const char *const keynstacks
key for INFO line header field
void explainmodifierflag(std::ostream &os, const char *const key, const char *const message)
const char *const keySRCEdate
key for SRCE line header field
const char *const keyRECVX
key for INFO line header field
const char *const keycalper
key for WID2 line header field
const char *const keynsamples
key for WID2 line header field
const char *const keySRCEX
key for SRCE line header field
const char *const keyRECVZ
key for INFO line header field
const char *const keySRCECS
key for SRCE line header field
const char *const keyfloat
key for DATA type header field
const char *const keyvang
key for WID2 line header field
const char *const keystation
key for WID2 line header field
const char *const keydata
key for DATA type header field
const char *const keySRCEZ
key for SRCE line header field