DATRW++ library: seismic data I/O with multiple formats
ascii.cc
Go to the documentation of this file.
1 /*! \file ascii.cc
2  * \brief interface to write ASCII data (implementation)
3  *
4  * ----------------------------------------------------------------------------
5  *
6  * \author Thomas Forbriger
7  * \date 11/04/2006
8  *
9  * interface to write ASCII data (implementation)
10  *
11  * Copyright (c) 2006 by Thomas Forbriger (BFO Schiltach)
12  *
13  * ----
14  * This program is free software; you can redistribute it and/or modify
15  * it under the terms of the GNU General Public License as published by
16  * the Free Software Foundation; either version 2 of the License, or
17  * (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * You should have received a copy of the GNU General Public License
25  * along with this program; if not, write to the Free Software
26  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27  * ----
28  *
29  *
30  * REVISIONS and CHANGES
31  * - 11/04/2006 V1.0 Thomas Forbriger
32  *
33  * ============================================================================
34  */
35 #define DATRW_ASCII_CC_VERSION \
36  "TF_ASCII_CC V1.0 "
37 
38 #include <datrwxx/ascii.h>
39 #include <datrwxx/asciiheaderkeys.h>
40 
41 namespace datrw {
42 
43  namespace ascii {
44 
45  const char* const keydate="date";
46  const char* const keydt="dt";
47  const char* const keynsamples="n";
48  const char* const keystation="station";
49  const char* const keychannel="channel";
50  const char* const keyauxid="auxid";
51  const char* const keyinstype="instype";
52  const char* const keycalib="calib";
53  const char* const keycalper="calper";
54  const char* const keyhang="hang";
55  const char* const keyvang="vang";
56 
57  const char* const keySRCEdate="SRCEdate";
58  const char* const keySRCEtype="SRCEtype";
59  const char* const keySRCEX="SRCE-X";
60  const char* const keySRCEY="SRCE-Y";
61  const char* const keySRCEZ="SRCE-Z";
62  const char* const keySRCECS="SRCE-CS";
63 
64  const char* const keyRECVX="RECV-X";
65  const char* const keyRECVY="RECV-Y";
66  const char* const keyRECVZ="RECV-Z";
67  const char* const keyRECVCS="RECV-CS";
68  const char* const keynstacks="nstacks";
69 
70  const char* const keydata="DATA";
71  const char* const keyint="int";
72  const char* const keyfloat="float";
73  const char* const keydouble="double";
74 
75  const char* const keynonfatal="nonfatal";
76 
77  } // namespace ascii
78 
79 } // namespace datrw
80 
81 /* ----- END OF ascii.cc ----- */
const char *const keyinstype
key for WID2 line header field
Definition: ascii.cc:51
const char *const keySRCEtype
key for SRCE line header field
Definition: ascii.cc:58
const char *const keydouble
key for DATA type header field
Definition: ascii.cc:73
const char *const keySRCEY
key for SRCE line header field
Definition: ascii.cc:60
const char *const keynonfatal
format modifier key
Definition: ascii.cc:75
const char *const keyRECVY
key for INFO line header field
Definition: ascii.cc:65
const char *const keydt
key for WID2 line header field
Definition: ascii.cc:46
const char *const keyRECVCS
key for INFO line header field
Definition: ascii.cc:67
const char *const keyhang
key for WID2 line header field
Definition: ascii.cc:54
const char *const keyint
key for DATA type header field
Definition: ascii.cc:71
const char *const keycalib
key for WID2 line header field
Definition: ascii.cc:52
const char *const keyauxid
key for WID2 line header field
Definition: ascii.cc:50
const char *const keychannel
key for WID2 line header field
Definition: ascii.cc:49
Root namespace of library.
Definition: aalibdatrwxx.cc:16
const char *const keydate
key for WID2 line header field
Definition: ascii.cc:45
const char *const keynstacks
key for INFO line header field
Definition: ascii.cc:68
const char *const keySRCEdate
key for SRCE line header field
Definition: ascii.cc:57
const char *const keyRECVX
key for INFO line header field
Definition: ascii.cc:64
const char *const keycalper
key for WID2 line header field
Definition: ascii.cc:53
const char *const keynsamples
key for WID2 line header field
Definition: ascii.cc:47
const char *const keySRCEX
key for SRCE line header field
Definition: ascii.cc:59
const char *const keyRECVZ
key for INFO line header field
Definition: ascii.cc:66
const char *const keySRCECS
key for SRCE line header field
Definition: ascii.cc:62
const char *const keyfloat
key for DATA type header field
Definition: ascii.cc:72
const char *const keyvang
key for WID2 line header field
Definition: ascii.cc:55
const char *const keystation
key for WID2 line header field
Definition: ascii.cc:48
const char *const keydata
key for DATA type header field
Definition: ascii.cc:70
const char *const keySRCEZ
key for SRCE line header field
Definition: ascii.cc:61
interface to write ASCII data (prototypes)