Scripting Resources for DigitalMicrograph™

banner

Dave Mitchell's DigitalMicrograph™ Scripting Website

Home | Scripts | Examples | Functions | Recent Updates | Tutorials | Resources | Publications | Consulting | Projects | Contact & Bio |PyJEM| Search

 

Function: Natural and Contrained Cubic Spline
Function

Function to calculate the natural cubic spline of a data set. This draws a smooth curve through a series of data points. There is also a constrainedcubicspline() function which has clamped ends. This avoids the oscillations that can sometimes appear at the end of spline fitted curves or where data bunches. However, the constrainedcubicspline() function does this at the expense of smoothness.

Version
version:20080228, v1.0
Author
D. R. G. Mitchell
Acknowledgements
Comments
Data to test these functions is synthesised within the main part of the program. Descriptions of the data format are given within the script.
System Requirements
Should be compatible with all recent versions of DigitalMicrograph.
Known Issues
Supported
Yes
Included Files
Main script file.
Source Code

See attached script.