topo-fuse v3.2.3¶
Mercurial revision 5786:5c8b45563631 | 2026-08-04
Description¶
topo-fuse merges Digital Terrain Models (MNTs) into a quadtree file for enhanced performance and storage efficiency. It is designed to combine multiple bathymetry or topography datasets into a single, optimized structure.
Usage¶
topo-fuse [OPTIONS] input
Options¶
General Options¶
Option |
Description |
|---|---|
|
Display help and exit. |
|
Enable debug verbose mode. |
Input/Output Options¶
Option |
Description |
|---|---|
|
Input file (required). |
|
Base bathymetry file to merge with. |
|
ASCII file containing a list of input files (overrides the |
|
Input format: |
|
Libproj4 projection parameters. Only effective if |
|
Output filename (NetCDF quadtree format). |
Deprecated Options¶
Note: These options are no longer recommended and may be removed in future versions.
Option |
Description |
|---|---|
|
Output format: |
|
Selection polygon file. |
|
Toggle depth/altitude on the final topography. |
|
Toggle depth/altitude on the imported topography. |
|
Minimum imported depth. |
|
Maximum imported depth. |
|
Path to a file to convert hydrographic level to mean level by adding its values. |
|
Path to a file to convert hydrographic level to mean level by subtracting its values. |
|
Unused. |
|
Unused. |
|
Only import data on masked areas. |
Examples¶
Basic Usage¶
Merge a single input file into a quadtree:
topo-fuse input.grd -o output.nc
Merge with a Base Bathymetry¶
Combine an input file with a base bathymetry:
topo-fuse input.grd -b base_bathymetry.grd -o output.nc
Use a List of Input Files¶
Merge multiple files listed in files.txt:
topo-fuse -l files.txt -o output.nc
Specify Input Format¶
Merge a NetCDF input file:
topo-fuse input.nc -iF netcdf -o output.nc
Apply Projection Parameters¶
Merge with a custom projection (e.g., UTM zone 33N):
topo-fuse input.grd --proj="+proj=utm +zone=33 +ellps=GRS80 +units=m" -o output.nc
Debug Mode¶
Enable debug verbose mode for troubleshooting:
topo-fuse input.grd -debug -o output.nc
Only Import Masked Areas¶
Import data only where the mask is applied:
topo-fuse input.grd --masked-only -o output.nc
Environment Variables¶
topo-fuse uses OpenMP (version 201511) for parallelization. Key environment variables:
Variable |
Description |
|---|---|
|
Number of threads to use. |
|
Runtime schedule type and chunk size. |
|
Enable/disable dynamic thread adjustment. |
|
Enable/disable nested parallelism. |
Example:
OMP_NUM_THREADS=6 topo-fuse input.grd -o output.nc
Note: If running on a busy machine, limit threads to the number of free CPUs to avoid performance degradation.
Notes¶
Input Files:
Supported formats:
grd,grd-float,netcdf,xyz.The
-iFoption is required for non-default formats.
Output:
Default output format: NetCDF quadtree (
-ooption).Deprecated output formats (
-oF,-f) are not recommended.
Projection:
Use
--proj=to specify custom projection parameters (requires-iF).Warning: Projections may not work with mode 0 and 1 grids.
Performance:
For large datasets, use
-debugto monitor progress and identify bottlenecks.Adjust
OMP_NUM_THREADSbased on available CPU resources.
Masking:
Use
--masked-onlyto import data only where the mask is applied.
Depth/Altitude:
Use
-invor-positiveto toggle depth/altitude values (deprecated).
See Also¶
Libproj4 Documentation (for projection parameters)
NetCDF Format (for input/output formats)
OpenMP Documentation (for parallelization)