cddx_mod2 - reopen a DDS dataset, passing headers


SYNOPSIS

#include "cdds.h"

BIN_TAG function cddx_mod2(alias, value, title, old_tag);

const char *alias
const char *value
const char *title
BIN_TAG old_tag

DESCRIPTION

Routine, "cdds_mod2", opens an input file for modification with trace headers and "Samples". If the file does not exist, then a new one will be created either from an existing file using "old_tag" or from scratch using "title".

After opening a file for input with "cddx_mod2" the input buffer Dictionary will be left open for scanning. The open process will look for "alias" for the dictionary (or usp, segy or su binary on input), "alias_data" for overriding the binary, and "alias_format" for overriding the format. The input parameter, "value", is the default value used for a fallback in cases where "alias" is not specified by the user. The input parameter, "title", should be a brief one line description of the application program. It will return a binary tag associated with the internal binary upon successful opening, a value of -2 if the dataset is not specified and no default value is given, otherwise a value of -1 to signify an open failure.

AUTHOR

Jerry Ehlers, BP America (May 2003)