Commit 3e7d4b30 authored by Johan Richard's avatar Johan Richard
Browse files

Invert residuals into data-model

parent 9cc7b673
......@@ -250,6 +250,13 @@ int o_chi_lhood0(double *chi_ext, double *lhood0_ext, double *np_b0)
fprintf(stderr, "Write output residuals with same header as input - residuals.fits\n");
//invert residuals to produce data - model instead of model - data (within contours)
for( i = 0; i < imFrame.ny; i++ )
for( j = 0; j < imFrame.nx; j++)
wrf_from_header(imFrame.pixfile,"residuals.fits", imFrame.nx, imFrame.ny, ero);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment