NaN Removal

Description Replace NaN (missing or invalid values) with constants or simple interpolation.
Module(s) Explorationist, Image Gather Processing
Requirements Volume
Related Volume Maths, Volume Maths (Simple)
Works with 2D, Stacks, Gathers


NaN, or "not a number", is a common acronym used to represent values that are undefined. In seismic data and other volumes, NaN values are used to represent non-existent data or missing values. Some processes and formulas may generate NaN values when the calculation is invalid.

NaN removal is independent for each trace. Samples for interpolation, extrapolation and nearest values are selected from the same trace.

  1. In the Control Panel, open the Process tab.
  2. At the tab header, click the Add icon and select New Process.
  3. Scroll down and double-click on NaN Removal.
  4. Type a name for the process and click OK.

Configure the NaN Removal process

  1. In the Details Panel, select the input Volume.
  2. Action:
    • Replace With Constant: Samples are replaced with the value.
    • Linear Interpolation: Samples are interpolated linearly between the nearest non-NaN values. Traces are extrapolated up and down using the first and last valid samples.
    • Nearest Neighbour: Samples are replaced with the nearest non-NaN value.           
  3. If trace is all NaNs:
    • Drop trace: Discards the entire trace.
    • Fill with constant value: Replace all samples the value.
    • Error: Warns interactively, but fails with an error in a workflow.  
  4. NaN replacement value: 
    • Use this value for Replace With Constant and/or Fill with constant value.
  5. Treat zeros as NaN: 
    • Also replace/update samples with a value of 0.