#include <stdio.h>#include <math.h>#include <string.h>#include <unistd.h>#include <utils/utils.h>#include <sed/sed_sedflux.h>#include "compact.h"Go to the source code of this file.
Functions | |
| Sed_column | _scan_sediment_column (const gchar *file, double dy, GError **error) |
| gint | _print_sediment_column (const gchar *file, Sed_column s, GError **error) |
| gint | main (gint argc, gchar *argv[]) |
Variables | |
| char * | help_msg [] |
| char * | file_msg [] |
| gint _print_sediment_column | ( | const gchar * | file, | |
| Sed_column | s, | |||
| GError ** | error | |||
| ) |
Definition at line 236 of file compact_main.c.
References eh_dlm_print(), eh_free_2, eh_new_2, eh_require, eh_return_val_if_fail, sed_cell_nth_fraction(), sed_cell_size(), sed_column_len(), sed_column_nth_cell(), and sed_sediment_env_n_types().
Referenced by main().
| Sed_column _scan_sediment_column | ( | const gchar * | file, | |
| double | dy, | |||
| GError ** | error | |||
| ) |
Definition at line 176 of file compact_main.c.
References COMPACT_ERROR, COMPACT_ERROR_INPUT_FILE, eh_dlm_read(), eh_free_2, eh_require, eh_return_val_if_fail, sed_cell_destroy(), sed_cell_new_sized(), sed_cell_set_fraction(), sed_column_add_cell(), sed_column_destroy(), sed_column_new(), sed_column_resize_cell(), sed_column_set_z_res(), and sed_sediment_env_n_types().
Referenced by main().
| gint main | ( | gint | argc, | |
| gchar * | argv[] | |||
| ) |
Definition at line 101 of file compact_main.c.
References _print_sediment_column(), _scan_sediment_column(), compact(), COMPACTION_MAJOR_VERSION, COMPACTION_MICRO_VERSION, COMPACTION_MINOR_VERSION, COMPACTION_PROGRAM_NAME, eh_exit(), eh_exit_on_error(), eh_fprint_version_info(), eh_init_glib(), sed_column_destroy(), sed_column_rebin(), sed_diag_destroy(), sed_diag_fprint(), sed_diag_new_target_column(), sed_diag_start(), sed_diag_stop(), sed_sediment_destroy(), sed_sediment_scan(), sed_sediment_set_env(), and sed_sediment_unset_env().
| char* file_msg[] |
Initial value:
{
" ",
" The input file consists of a header line followed by data lines. The header",
" line consists of a single number stating the number of data lines to follow.",
" For each cell in the sediment column that is to be compacted, the input file",
" gives the thickness of a cell and the fractions of each grain type that make",
" up that cell. Each line of the file describes packages of sediment with the",
" first being the top of the sediment column. The lines are divided into at ",
" least two columns. The first is the thickness (in meters) of that sediment ",
" package, and the rest are the fractions of each grain that compose that ",
" cell. The fractions are renormalized and so don't have to add up to one. ",
" ",
NULL
}
Definition at line 59 of file compact_main.c.
| char* help_msg[] |
Initial value:
{
" ",
" compact [options] [parameters] [filein] ",
" compact a sedflux profile. ",
" ",
" Options ",
" -v - be verbose. [off] ",
" -h - print this help message. ",
" -hfile - print a help message on the file formats. ",
" -a - input will be ascii. This is the default. ",
" -b - input will be a binary file from a sedflux dump. ",
" ",
" Parameters ",
" -pdy=value - set the height of sediment cells in the output ASCII file to ",
" be value. The deafult is to not rebin the cells. ",
" ",
" Files ",
" -fsed=file - specify the name of the file containing the sediment ",
" information. [compact.sed] ",
" -fin=file - specify the name of the input file. [stdin] ",
" -fout=file - specify the name of the output file. [stdout] ",
" ",
NULL
}
Definition at line 33 of file compact_main.c.
1.5.2