ocmw.domain.bathyTools module¶
Bathymetry manipulation tools.
Load bathymetry data from ASCII .xyz or.csv files, or netCDF files |
|
Interpolation of bathymetry data onto nodel nodes. |
Bathymetry manipulation tools.
Chris Old IES, School of Engineering, University of Edinburgh Nov 2023
- ocmw.domain.bathyTools.load_bathy(bathyfile, boffsets=[0.0, 0.0, 0.0])[source]¶
Load bathymetry data from ASCII .xyz or.csv files, or netCDF files
- ocmw.domain.bathyTools.bathy_msl_offset(bathyfile, offset, outfile, delimiter=',', headerSkip=0)[source]¶
Function for adding MSL correction to ASCII bathymetr data. Currently only works for *.xyz and *.csv files.
- Parameters:
bathyfile (str) – Full path and filename of ASCII bathymetry data file.
offset (float) – Offset in m to be applied to correct bathymetry data to MSL.
outfile (str) – Full path and filename of output data file for corrected bathymetry.
delimiter (str, optional) – Delimiter used in ASCII file. The default is ‘,’.
headerSkip (int, optional) – Number of header lines to copy and skip. The default is 0.
- Returns:
None.