diffX
Differentiate a gridded field in the periodic x direction.
Declaration
derivative = diffX(field,options)
Parameters
fieldgridded field with the transform’s spatial shapeoptions.nderivative order; default1
Returns
derivativex derivative with the same shape asfield
Discussion
Differentiate a gridded field in the periodic x direction.
The derivative is evaluated spectrally. The input and output retain the same spatial layout, and derivative order n defaults to 1.
dudx = wvt.diffX(u);