./
ramp_basiclinfit.pro
This function performs a basic linear fit, returns intercept and slope for each pixel
top source RAMP_BasicLinFit
JWST Data Processing - NIRCam Cryo tests
RAMP_BasicLinFit, data0, fit_params
Basic linear fit, returns intercept and slope for each pixel
Parameters
- data0 in required type=fltarr(2048,2048,Ngroup)
ramp datacube to be fit
- fit_params out required type=fltarr(2048,2048,2)
intercept => [2048,2048,0] slope => [2048,2048,1] sigma_intercept => [2048,2048,2] sigma_slope => [2048,2048,3]
Examples
IDL> ramp_BasicLinFit, data0, fit_params
Author information
- Author:
- Based on clever code exploiting IDL matrix operators from R. Arendt (GSFC) - Adapted by M. Robberto, 25 Apr. 2013 - Added errors on intercept and slope, MR. 25 Feb. 2014
Statistics
Lines: | 58 lines |
McCabe complexity: | 4 |
File attributes
Modification date: | Tue Feb 25 13:14:48 2014 |
Lines: | 84 |