-convert_dgm_1d(path_src_file, path_out_file_1d_x; excerpt = 20, section = 100);</code></pre><p>Calling this expression tells <a href="https://trixi-framework.github.io/TrixiBottomTopography.jl/dev/reference/#TrixiBottomTopography.convert_dgm_1d-Tuple{String,%20String}"><code>convert_dgm_1d</code></a> that the source file is <code>path_src_file</code> and the converted file will be saved in the file <code>path_out_file_1d_x</code>. The optional attribute <code>excerpt</code> tells the function that only every <code>20</code>th point in the <code>x</code> direction (in this case, in the ETRS89 East coordinate) will be considered. Setting <code>section</code> to <code>100</code> tells the function that the corresponding <code>z</code> values (DHHN2016 in this case) from the <code>100</code>th <code>y</code> coordinate (ETRS89 North) will be chosen. The entire converted file produced by this routine is available <a href="https://github.com/trixi-framework/TrixiBottomTopography.jl/blob/main/examples/data/rhine_data_1d_20_x.txt">here</a>.</p><pre><code class="language-julia hljs">convert_dgm_1d(path_src_file, path_out_file_1d_y; excerpt = 20, direction = "y", section = 100);</code></pre><p>Similar to the previous expression, this one has the additional attribute <code>direction = "y"</code> which tells <a href="https://trixi-framework.github.io/TrixiBottomTopography.jl/dev/reference/#TrixiBottomTopography.convert_dgm_1d-Tuple{String,%20String}"><code>convert_dgm_1d</code></a> that the data will be read from the <code>y</code> direction. (Click <a href="https://github.com/trixi-framework/TrixiBottomTopography.jl/blob/main/examples/data/rhine_data_1d_20_y.txt">here</a> to view the resulting file)</p><pre><code class="language-julia hljs">convert_dgm_2d(path_src_file, path_out_file_2d; excerpt = 20);</code></pre><p>The two dimensional version <a href="https://trixi-framework.github.io/TrixiBottomTopography.jl/dev/reference/#TrixiBottomTopography.convert_dgm_2d-Tuple{String,%20String}"><code>convert_dgm_2d</code></a> works similar to the one dimensional case except that the optional attributes <code>direction</code> and <code>section</code> do not exist, but only <code>excerpt</code>. Setting e.g. to <code>20</code> tells the function that only every <code>20</code>th value in the <code>x</code> and <code>y</code> direction of the source file <code>path_src_file</code> will be stored in <code>path_out_file_2d</code>. The resulting file after the two dimensional conversion is available <a href="https://github.com/trixi-framework/TrixiBottomTopography.jl/blob/main/examples/data/rhine_data_2d_20.txt">here</a>.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../">« Home</a><a class="docs-footer-nextpage" href="../structure/">B-spline structure »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.17.0 on <span class="colophon-date" title="Friday 8 May 2026 10:08">Friday 8 May 2026</span>. Using Julia version 1.10.11.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
0 commit comments