FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
NetCDF seafloor
+ Collaboration diagram for NetCDF seafloor:

Bathymetry SimObject that reads a depth map from a NetCDF file.

Loads a 2D bathymetry grid from a NetCDF file using the netcdf_sinmod parser and registers it as the active seafloor on the shared Environment resource. The depth map is bilinearly interpolated at query positions. Areas outside the grid bounds return a depth of 11034 m (Mariana Trench fallback).

This SimObject must be placed after the Environment SimObject in the XML so that the shared Environment resource is available during FinalSetup.


Example Configuration (XML)

<Lib
LibName = "fhsim_environment"
SimObject = "NetCdfSeafloor"
Name = "Seafloor"
NetcdfFile = "path/to/bathymetry.nc"
/>

Parameters

Name Width Description
NetcdfFile 1 Path to the NetCDF bathymetry file.
SeabedMaterial 1 Ogre material name for the rendered seabed (visualization builds only). (Default: "sepia")

This SimObject is referred to as NetCdfSeafloor