Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lenstool
Lenstool
Commits
3e7d4b30
Commit
3e7d4b30
authored
Jun 10, 2020
by
Johan Richard
Browse files
Invert residuals into data-model
parent
9cc7b673
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/o_chires.c
View file @
3e7d4b30
...
...
@@ -250,6 +250,13 @@ int o_chi_lhood0(double *chi_ext, double *lhood0_ext, double *np_b0)
if
(
M
.
output
)
{
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
++
)
ero
[
i
][
j
]
=-
ero
[
i
][
j
];
wrf_from_header
(
imFrame
.
pixfile
,
"residuals.fits"
,
imFrame
.
nx
,
imFrame
.
ny
,
ero
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment