Return to directory of Todd's tools

Compute the derivative along the spectral axis of a cube. Sets the two edge channels of the result to zero.


tt.cubeDerivative(cube, output='', overwrite=True, kind='linear', spectralAxis=3,
                   bounds_error=False, fill_value=0.0)
  • cube: the name of the input CASA image cube
  • output: the name of the output CASA image cube (default = cube + '.derivative')
  • overwrite: if True, overwrite the output image if it exists
  • kind : str or int, optional Specifies the kind of interpolation as a string ('linear', 'nearest', 'zero', 'slinear', 'quadratic', 'cubic' where 'slinear', 'quadratic' and 'cubic' refer to a spline interpolation of first, second or third order) or as an integer specifying the order of the spline interpolator to use. Default is 'linear'.
  • spectralAxis: use this value only if it is not found automatically from the header
  • bounds_error, fill_value: passed to scipy.interpolate.interp1d

-- ToddHunter - 2015-05-12
Topic revision: r1 - 2015-05-12, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback