|
<< Click to Display Table of Contents >> Navigation: General > Parse filename |
The Parse filename module decomposes a full file path into its three constituent parts: the directory path, the file stem (base name without extension), and the file extension. This is useful in automated workflows where subsequent modules need to construct related filenames or route data to specific directories based on an input file reference.
For example, given the input path C:\data\survey\line01.sgy, the module outputs the directory C:\data\survey, the stem line01, and the extension .sgy. The three output strings can then be connected to downstream modules that require individual path components.
The full path to the seismic file whose name you want to parse. Use the file browser to select a SEG-Y file (.sgy or .segy). The module reads only the path string — it does not open or read the file contents. This input is typically connected to a loop or file-list variable so that the module can process a series of files automatically.
This module has no user-configurable parameters. All processing is determined entirely by the input filename.
The directory portion of the input file path — everything up to, but not including, the filename itself. Connect this output to modules that write results to the same directory as the source file.
The file stem — the base filename without its directory or extension. Use this output to construct derived filenames, for example by appending a suffix such as _processed before passing the result to a Save SEG-Y module.
The file extension extracted from the input path, including the leading dot (for example, .sgy). This can be used downstream to conditionally route processing based on file format.