DATRW++ library: seismic data I/O with multiple formats
channeltranslation.cc File Reference

translate TSOFT channel name (they are too long for SFF headers) (implementation)


More...

#include <iomanip>
#include <datrwxx/error.h>
#include <datrwxx/util.h>
#include <datrwxx/tsoftdata.h>
#include <datrwxx/channeltranslation.h>
Include dependency graph for channeltranslation.cc:

Go to the source code of this file.

Namespaces

 datrw
 Root namespace of library.
 
 datrw::tsoft
 All classes and functions to extract data from TSOFT files.
 

Macros

#define DATRW_CHANNELTRANSLATION_CC_VERSION   "DATRW_CHANNELTRANSLATION_CC V1.6"
 

Functions

ChannelDescription datrw::tsoft::channel (const SFFchannelid &ci)
 return channel data for given SFF channel ID More...
 
void datrw::tsoft::pfield (std::ostream &os, const std::string &s, const int &w)
 helper function: print fixed width field More...
 
void datrw::tsoft::pline (std::ostream &os, const std::string &s1, const std::string &s2, const std::string &s3, const std::string &s4, const std::string &s5, const std::string &s6, const std::string &s7)
 helper function: formatted output More...
 
void datrw::tsoft::reportdatacomments (std::ostream &os)
 report comments from 1s files More...
 
void datrw::tsoft::reporttranslation (std::ostream &os)
 report translation table More...
 
SFFchannelid datrw::tsoft::schannelid (const Channel &ci)
 split SFF channel description More...
 
TSOFTchannelid datrw::tsoft::tchannelid (const Channel &ci)
 split TSOFT channel description More...
 
SFFchannelid datrw::tsoft::translate (const TSOFTchannelid &ci)
 return SFF channel ID for given TSOFT channel ID More...
 
bool datrw::tsoft::translationisunique (const bool &verbose=true)
 check uniqueness of translation table More...
 

Variables

const Channel datrw::tsoft::translationtable []
 global variable: channel name translation tableThis table is specific for SG056 at BFO. Sensor data conversion codes are assigned based on GWR document DDAS3_man_technical_ch5_UIPCsoftware_2010-07-16_BFO-Excerpt and Auxill_2.txt as compiled by Walter Zuern (Id: Auxill_2.txt 752 2013-01-09 12:07:01Z). More...
 

Detailed Description

translate TSOFT channel name (they are too long for SFF headers) (implementation)


Author
Thomas Forbriger
Date
11/11/2009

translate TSOFT channel name (they are too long for SFF headers) (implementation)

Copyright (c) 2009 by Thomas Forbriger (BFO Schiltach)


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software

Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

REVISIONS and CHANGES

  • 11/11/2009 V1.0 Thomas Forbriger
  • 02/12/2011 V1.1 added second barometer
  • 19/10/2012 V1.2 do not set NSP by default!
  • 10/01/2013 V1.3 add sensor data conversion codes for SG056 extract full channel description on request
  • 01/04/2018 V1.4 add additional channels to translation table
  • 06/04/2018 V1.5 catch typo in SG056 channel configuration
  • 05/08/2019 V1.6 translate LHeLvl and LHe-Alt to LHX both

Definition in file channeltranslation.cc.