DATRW++ library: seismic data I/O with multiple formats
sucomanager.h File Reference

manage coordinate scaling (prototypes) More...

#include <datrwxx/suheaderstruct.h>
#include <datrwxx/suformat.h>
Include dependency graph for sucomanager.h:

Go to the source code of this file.

Classes

struct  datrw::su::Coordinates
 full set of coordinates.This struct holds a full set of coordinates for a SEG-Y trace header. It provides functions to read the values from a given trace header and to set values in a trace header. Further it provides a function to chose equal scaling values for horizontal coordinates on one hand and vertical coordinates on the other hand. This class combines six members of type datrw::su::ScalCoo in order to scale coordinates coherently. It is used in the set functions of datrw::su::SUheader not as a member data but as a conversion and scaling tool. More...
 
struct  datrw::su::ScalCoo
 scaled coordinate.This struct holds one coordinate together with a scale value. It provides functions to support appropriate scaling and to explore dynamic range. More...
 

Namespaces

 datrw
 Root namespace of library.
 
 datrw::su
 All classes and functions to extract data from Seismic Unix files.
 

Macros

#define DATRW_SUCOMANAGER_H_VERSION   "DATRW_SUCOMANAGER_H V1.1"
 

Functions

void datrw::su::fixscalevalue (short &s, const bool &strict)
 fix a SeismicUn*x scale value More...
 
short datrw::su::powertoscale (const int &p)
 convert a decimal power to a SeismicUn*x scale value More...
 
double datrw::su::scalefactor (short s, const bool &strict)
 convert scale value to a factor to be applied More...
 
int datrw::su::scaletopower (short s, const bool &strict)
 convert a SeismicUn*x scale value to a decimal power More...
 

Detailed Description

manage coordinate scaling (prototypes)


Author
Thomas Forbriger
Date
06/12/2010

manage coordinate scaling (prototypes)

Copyright (c) 2010 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

  • 06/12/2010 V1.0 Thomas Forbriger
  • 22/01/2012 V1.1
    - handle control parameters
    • Coordinates and ScalCoo are prepared to receive control parameters
    • add conversion functions

Definition in file sucomanager.h.