Skip to content

netCDF to SEG-Y conversion#

This utility script converts pseudo-3D cube from netCDF-4 to SEG-Y format.

Description#

The format conversion is done by utilizing the SEGY-SAK together with the segyio packages.

Command line interface#

The script accepts a netCDF cube (*.nc) as input:

There are two options to run the script. We recommend using the CLI entry point like:

>>> 15_cube_cnv_netcdf2segy /path/to/cube.nc --params_netcdf /path/to/config.yml [optional parameters]
Alternatively, the script can be executed using the (more verbose) command:
>>> python -m pseudo_3D_interpolation.cube_cnv_netcdf2segy_3D /path/to/cube.nc \
      --params_netcdf /path/to/config.yml [optional parameters]

Optionally, the following parameters can be specified:

  • --help, -h: Show help.
  • --params_netcdf: Path of netCDF parameter file (YAML format). Required!
  • --path_segy: Path of output SEG-Y file. Defaults to using input netCDF filename.
  • --scalar_coords: Coordinate scalar for SEG-Y trace header [100, 10, 1, -10, -100, 'auto']. Defaults to auto, i.e. applying a suitable scalar derived from the coordinates stored in the netCDF.
  • --verbose {LEVEL}, -V: Level of output verbosity (default: 0).

Last update: Monday, 03 July 2023 at 09:46:51