NCL Home> Application examples> Data Processing || Data files for examples

Regression

There are two regression functions, regline which works on one dimensional arrays and regcoef which works on multidimensional arrays.
regress_1.ncl: Demonstrates the use of the ncl built-in function regline, which calculate the least squared regression for a one dimensional array.
regress_2.ncl: Demonstrates the use of the ncl built-in function regCoef, which calculate the least squared regression for a mulit-dimensional array.