|
gstlearn
0.2.1
Geostatistics & Machine Learning toolbox
|
#include "OutputFormat/segy.h"#include "Basic/Utilities.hpp"#include "Basic/File.hpp"#include "Db/Db.hpp"#include "Db/DbGrid.hpp"#include "geoslib_old_f.h"#include "geoslib_enum.h"#include <stdio.h>#include <string.h>#include <math.h>Classes | |
| struct | RefPt |
| struct | RefStats |
Macros | |
| #define | MAT(i, j) (mat[2 * (i) + (j)]) |
| #define | SWAP_INT16(x) (x) = ((0x00ff & ((x))>>8) | (0xff00 & ((x))<<8)) |
| #define | SWAP_INT32(x) |
Functions | |
| void | st_get_trace_params (traceHead *Theader, int *iline, int *xline, double *delta, double *xtrace, double *ytrace) |
| SegYArg | segy_array (const char *filesegy, DbGrid *surf2D, const String &top_name, const String &bot_name, const String &top_aux, const String &bot_aux, double thickmin, int option, int nz_ss, int verbOption, int iline_min, int iline_max, int xline_min, int xline_max, double modif_high, double modif_low, double modif_scale) |
| Grid | segy_summary (const char *filesegy, DbGrid *surf2D, const String &name_top, const String &name_bot, double thickmin, int option, int nz_ss, int verbOption, int iline_min, int iline_max, int xline_min, int xline_max, double modif_high, double modif_low, double modif_scale) |
| int | db_segy (const char *filesegy, DbGrid *grid3D, DbGrid *surf2D, const String &name_top, const String &name_bot, double thickmin, int option, int nz_ss, int verbOption, int iline_min, int iline_max, int xline_min, int xline_max, double modif_high, double modif_low, double modif_scale, const NamingConvention &namconv) |
| #define MAT | ( | i, | |
| j | |||
| ) | (mat[2 * (i) + (j)]) |
| #define SWAP_INT32 | ( | x | ) |
| int db_segy | ( | const char * | filesegy, |
| DbGrid * | grid3D, | ||
| DbGrid * | surf2D, | ||
| const String & | name_top, | ||
| const String & | name_bot, | ||
| double | thickmin, | ||
| int | option, | ||
| int | nz_ss, | ||
| int | verbOption, | ||
| int | iline_min, | ||
| int | iline_max, | ||
| int | xline_min, | ||
| int | xline_max, | ||
| double | modif_high, | ||
| double | modif_low, | ||
| double | modif_scale, | ||
| const NamingConvention & | namconv | ||
| ) |
Read the contents of a SEGY file
| [in] | filesegy | Name of the SEGY file |
| [in] | grid3D | Db containing the resulting 3-D grid |
| [in] | surf2D | Db containing the top, Bottom and Reference surfaces This file is optional |
| [in] | name_top | Rank of variable containing the Top Surface (or 0) |
| [in] | name_bot | Rank of variable containing the Bottom Surface (or 0) |
| [in] | thickmin | Minimum thickness (or 0) |
| [in] | option | Flattening option: 0 no flattening; 1 flattening from top; -1 flattening from bottom -2 squeeze and stretch option 2 averaging from 3-D to 2-D |
| [in] | nz_ss | Deprecated argument |
| [in] | verbOption | Verbose option |
| [in] | iline_min | Minimum Inline number included (if defined) |
| [in] | iline_max | Maximum Inline number included (if defined) |
| [in] | xline_min | Minimum Xline number included (if defined) |
| [in] | xline_max | Maximum Xline number included (if defined) |
| [in] | modif_high | Upper truncation (when defined) |
| [in] | modif_low | Lower truncation (when defined) |
| [in] | modif_scale | Scaling value (when defined) |
| [in] | namconv | Naming convention |
: In the case of Squeeze and Stretch (S&S), the number of layers
: is meaningless. It is fixed by the user, unless defined
: by the output grid (if flag_store == 1)
| SegYArg segy_array | ( | const char * | filesegy, |
| DbGrid * | surf2D, | ||
| const String & | top_name, | ||
| const String & | bot_name, | ||
| const String & | top_aux, | ||
| const String & | bot_aux, | ||
| double | thickmin, | ||
| int | option, | ||
| int | nz_ss, | ||
| int | verbOption, | ||
| int | iline_min, | ||
| int | iline_max, | ||
| int | xline_min, | ||
| int | xline_max, | ||
| double | modif_high, | ||
| double | modif_low, | ||
| double | modif_scale | ||
| ) |
Read the contents of a SEGY file
| [in] | filesegy | Name of the SEGY file |
| [in] | surf2D | Db containing the top, Bottom and Reference surfaces This file is optional |
| [in] | top_name | Name of variable containing the Top Surface (or "") |
| [in] | bot_name | Name of variable containing the Bottom Surface (or "") |
| [in] | top_aux | Name of auxiliary variable containing a Top (or "") |
| [in] | bot_aux | Name of auxiliary variable containing a Top (or "") |
| [in] | thickmin | Minimum thickness (or 0) |
| [in] | option | Flattening option: 0 no flattening; 1 flattening from top; -1 flattening from bottom -2 squeeze and stretch option 2 averaging from 3-D to 2-D |
| [in] | nz_ss | Number of layers for different options (see details) |
| [in] | verbOption | Verbose option |
| [in] | iline_min | Minimum Inline number included (if defined) |
| [in] | iline_max | Maximum Inline number included (if defined) |
| [in] | xline_min | Minimum Xline number included (if defined) |
| [in] | xline_max | Maximum Xline number included (if defined) |
| [in] | modif_high | Upper truncation (when defined) |
| [in] | modif_low | Lower truncation (when defined) |
| [in] | modif_scale | Scaling value (when defined) |
In the case of Squeeze and Stretch (S&S), the number of layers
is meaningless. It is fixed by the user.
| Grid segy_summary | ( | const char * | filesegy, |
| DbGrid * | surf2D, | ||
| const String & | name_top, | ||
| const String & | name_bot, | ||
| double | thickmin, | ||
| int | option, | ||
| int | nz_ss, | ||
| int | verbOption, | ||
| int | iline_min, | ||
| int | iline_max, | ||
| int | xline_min, | ||
| int | xline_max, | ||
| double | modif_high, | ||
| double | modif_low, | ||
| double | modif_scale | ||
| ) |
Read the contents of a SEGY file and returns the structure SegyRead which captures the main characteristics of the SEGY grid
| [in] | filesegy | Name of the SEGY file |
| [in] | surf2D | Db containing the top, Bottom and Reference surfaces This file is optional |
| [in] | name_top | Rank of variable containing the Top Surface (or 0) |
| [in] | name_bot | Rank of variable containing the Bottom Surface (or 0) |
| [in] | thickmin | Minimum thickness (or 0) |
| [in] | option | Flattening option: 0 no flattening; 1 flattening from top; -1 flattening from bottom -2 squeeze and stretch option 2 averaging from 3-D to 2-D |
| [in] | nz_ss | Number of layers for different options (see details) |
| [in] | verbOption | Verbose option |
| [in] | iline_min | Minimum Inline number included (if defined) |
| [in] | iline_max | Maximum Inline number included (if defined) |
| [in] | xline_min | Minimum Xline number included (if defined) |
| [in] | xline_max | Maximum Xline number included (if defined) |
| [in] | modif_high | Upper truncation (when defined) |
| [in] | modif_low | Lower truncation (when defined) |
| [in] | modif_scale | Scaling value (when defined) |
: In the case of Squeeze and Stretch (S&S), the number of layers
: is meaningless. It is fixed by the user, unless defined
: by the output grid (if flag_store == 1)
| void st_get_trace_params | ( | traceHead * | Theader, |
| int * | iline, | ||
| int * | xline, | ||
| double * | delta, | ||
| double * | xtrace, | ||
| double * | ytrace | ||
| ) |
Get Trace characteristics