Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
msc
sextractor
Commits
4b47f9f1
Commit
4b47f9f1
authored
Jun 06, 2012
by
Emmanuel Bertin
Browse files
Fixed Inf in some instances of SPREADERR_MODEL.
parent
def38ae6
Changes
2
Show whitespace changes
Inline
Side-by-side
src/profit.c
View file @
4b47f9f1
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
* You should have received a copy of the GNU General Public License
* You should have received a copy of the GNU General Public License
* along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
* along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
*
*
* Last modified: 0
1
/06/2012
* Last modified: 0
6
/06/2012
*
*
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
...
@@ -166,7 +166,7 @@ OUTPUT Pointer to an allocated fit structure (containing details about the
...
@@ -166,7 +166,7 @@ OUTPUT Pointer to an allocated fit structure (containing details about the
fit).
fit).
NOTES It is a modified version of the lm_minimize() of lmfit.
NOTES It is a modified version of the lm_minimize() of lmfit.
AUTHOR E. Bertin (IAP)
AUTHOR E. Bertin (IAP)
VERSION 0
1
/06/2012
VERSION 0
6
/06/2012
***/
***/
void
profit_fit
(
profitstruct
*
profit
,
void
profit_fit
(
profitstruct
*
profit
,
picstruct
*
field
,
picstruct
*
wfield
,
picstruct
*
field
,
picstruct
*
wfield
,
...
@@ -177,13 +177,13 @@ void profit_fit(profitstruct *profit,
...
@@ -177,13 +177,13 @@ void profit_fit(profitstruct *profit,
psfstruct
*
psf
;
psfstruct
*
psf
;
checkstruct
*
check
;
checkstruct
*
check
;
double
emx2
,
emy2
,
emxy
,
a
,
cp
,
sp
,
cn
,
bn
,
n
,
double
emx2
,
emy2
,
emxy
,
a
,
cp
,
sp
,
cn
,
bn
,
n
,
sump
,
sumq
,
sumpw2
,
sumqw2
,
sumpqw
,
sump0
,
sumq0
;
sump
,
sumq
,
sumpw2
,
sumqw2
,
sumpqw
,
sump0
,
sumq0
,
err
;
PIXTYPE
valp
,
valq
,
sig2
;
PIXTYPE
valp
,
valq
,
sig2
;
float
param0
[
PARAM_NPARAM
],
param1
[
PARAM_NPARAM
],
float
param0
[
PARAM_NPARAM
],
param1
[
PARAM_NPARAM
],
param
[
PARAM_NPARAM
],
param
[
PARAM_NPARAM
],
**
list
,
**
list
,
*
cov
,
*
cov
,
psf_fwhm
,
dchi2
,
err
,
aspect
,
chi2
;
psf_fwhm
,
dchi2
,
aspect
,
chi2
;
int
*
index
,
int
*
index
,
i
,
j
,
p
,
nparam
,
nparam2
,
ncomp
,
nprof
;
i
,
j
,
p
,
nparam
,
nparam2
,
ncomp
,
nprof
;
...
...
src/readimage.c
View file @
4b47f9f1
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
* This file part of: SExtractor
* This file part of: SExtractor
*
*
* Copyright: (C) 1993-201
1
Emmanuel Bertin -- IAP/CNRS/UPMC
* Copyright: (C) 1993-201
2
Emmanuel Bertin -- IAP/CNRS/UPMC
*
*
* License: GNU General Public License
* License: GNU General Public License
*
*
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
* You should have received a copy of the GNU General Public License
* You should have received a copy of the GNU General Public License
* along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
* along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
*
*
* Last modified:
25
/0
3
/201
0
* Last modified:
04
/0
6
/201
2
*
*
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
...
@@ -273,7 +273,7 @@ void readimagehead(picstruct *field)
...
@@ -273,7 +273,7 @@ void readimagehead(picstruct *field)
field
->
npix
=
(
KINGSIZE_T
)
field
->
width
*
field
->
height
;
field
->
npix
=
(
KINGSIZE_T
)
field
->
width
*
field
->
height
;
field
->
bitpix
=
tab
->
bitpix
;
field
->
bitpix
=
tab
->
bitpix
;
field
->
bytepix
=
tab
->
bytepix
;
field
->
bytepix
=
tab
->
bytepix
;
if
(
tab
->
bitsgn
&&
prefs
.
fitsunsigned_flag
)
if
(
tab
->
bitsgn
&&
(
prefs
.
fitsunsigned_flag
||
tab
->
bitpix
==
BP_BYTE
)
)
tab
->
bitsgn
=
0
;
tab
->
bitsgn
=
0
;
FITSREADS
(
tab
->
headbuf
,
"OBJECT "
,
field
->
ident
,
"Unnamed"
);
FITSREADS
(
tab
->
headbuf
,
"OBJECT "
,
field
->
ident
,
"Unnamed"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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