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
08c0ebe3
Unverified
Commit
08c0ebe3
authored
Mar 09, 2023
by
Emmanuel Bertin
Committed by
GitHub
Mar 09, 2023
Browse files
Merge pull request #47 from astromatic/develop
Develop
parents
9689a1c4
f7c10f46
Changes
45
Hide whitespace changes
Inline
Side-by-side
src/preflist.h
View file @
08c0ebe3
...
...
@@ -22,7 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
*
* Last modified:
15/07/2020
* Last modified:
07/03/2023
*
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
...
...
@@ -61,6 +61,7 @@
{
"BACK_FILTERSIZE"
,
P_INTLIST
,
prefs
.
backfsize
,
1
,
11
,
0
.
0
,
0
.
0
,
{
""
},
1
,
2
,
&
prefs
.
nbackfsize
},
{
"BACK_FILTTHRESH"
,
P_FLOAT
,
&
prefs
.
backfthresh
,
0
,
0
,
0
.
0
,
BIG
},
{
"BACK_PEARSON"
,
P_FLOAT
,
&
prefs
.
back_pearson
,
0
,
0
,
1
.
0
,
BIG
},
{
"BACKPHOTO_THICK"
,
P_INT
,
&
prefs
.
pback_size
,
1
,
256
},
{
"BACKPHOTO_TYPE"
,
P_KEY
,
&
prefs
.
pback_type
,
0
,
0
,
0
.
0
,
0
.
0
,
{
"GLOBAL"
,
"LOCAL"
,
""
}},
...
...
@@ -261,6 +262,9 @@ char *default_prefs[] =
" "
,
"*BACK_TYPE AUTO # AUTO or MANUAL"
,
"*BACK_VALUE 0.0 # Default background value in MANUAL mode"
,
"*BACK_PEARSON 2.5 # Pearson's factor alpha >= 1 with"
,
"* # (mode - mean) ~ alpha * (median - mean)"
,
"* # Legacy value is 2.5, but 3.5 is more accurate"
,
"BACK_SIZE 64 # Background mesh: <size> or <width>,<height>"
,
"BACK_FILTERSIZE 3 # Background filter: <size> or <width>,<height>"
,
" "
,
...
...
src/prefs.h
View file @
08c0ebe3
...
...
@@ -7,7 +7,7 @@
*
* This file part of: SExtractor
*
* Copyright: (C) 1993-202
0
IAP/CNRS/SorbonneU
* Copyright: (C) 1993-202
3
IAP/CNRS/SorbonneU
*
* License: GNU General Public License
*
...
...
@@ -22,7 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
*
* Last modified:
15/07/2020
* Last modified:
07/03/2023
*
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
...
...
@@ -136,6 +136,7 @@ typedef struct
int
backfsize
[
2
];
/* bkgnd filt. size */
int
nbackfsize
;
/* nb of params */
double
backfthresh
;
/* bkgnd fil. thresh */
double
back_pearson
;
/* Pearson's factor */
enum
{
GLOBAL
,
LOCAL
}
pback_type
;
/* phot. bkgnd type */
int
pback_size
;
/* rect. ann. width */
/*----- memory */
...
...
src/readimage.c
View file @
08c0ebe3
...
...
@@ -7,7 +7,7 @@
*
* This file part of: SExtractor
*
* Copyright: (C) 1993-20
15 Emmanuel Bertin --
IAP/CNRS/
UPMC
* Copyright: (C) 1993-20
20
IAP/CNRS/
SorbonneU
*
* License: GNU General Public License
*
...
...
@@ -22,7 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
*
* Last modified:
14
/0
1
/20
15
* Last modified:
23
/0
9
/20
20
*
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
...
...
@@ -93,7 +93,12 @@ void *loadstrip(picstruct *field, picstruct *wfield)
else
if
(
flags
&
INTERP_FIELD
)
copydata
(
field
,
0
,
nbpix
);
else
{
#ifdef HAVE_CFITSIO
tab
->
currentElement
=
1
;
#endif
read_body
(
tab
,
data
,
nbpix
);
}
if
(
flags
&
(
WEIGHT_FIELD
|
RMS_FIELD
|
BACKRMS_FIELD
|
VAR_FIELD
))
weight_to_var
(
field
,
data
,
nbpix
);
if
((
flags
&
MEASURE_FIELD
)
&&
(
check
=
prefs
.
check
[
CHECK_IDENTICAL
]))
...
...
src/types.h
View file @
08c0ebe3
...
...
@@ -621,7 +621,7 @@ typedef struct pic
int
interp_xtimeout
;
/* interpolation timeout value in x */
int
interp_ytimeout
;
/* interpolation timeout value in y */
struct
pic
*
reffield
;
/* pointer to a reference field */
OFF_T
mefpos
;
/* Position in a MEF file */
OFF_T
2
mefpos
;
/* Position in a MEF file */
}
picstruct
;
...
...
src/xml.c
View file @
08c0ebe3
...
...
@@ -7,7 +7,7 @@
*
* This file part of: SExtractor
*
* Copyright: (C) 2006-20
1
3
Emmanuel Bertin -- IAP/CNRS/UPMC
* Copyright: (C) 2006-20
2
3
CFHT/IAP/CNRS/SorbonneU
*
* License: GNU General Public License
*
...
...
@@ -22,7 +22,7 @@
* You should have received a copy of the GNU General Public License
* along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
*
* Last modified:
2
7/0
4
/20
1
3
* Last modified:
0
7/0
3
/20
2
3
*
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
...
...
@@ -231,8 +231,8 @@ INPUT Pointer to the output file (or stream),
Pointer to an error msg (or NULL).
OUTPUT RETURN_OK if everything went fine, RETURN_ERROR otherwise.
NOTES -.
AUTHOR E. Bertin (IAP)
VERSION
25
/0
4
/20
1
3
AUTHOR E. Bertin (
CFHT/
IAP)
VERSION
07
/0
3
/20
2
3
***/
int
write_xml_meta
(
FILE
*
file
,
char
*
error
)
{
...
...
@@ -546,6 +546,7 @@ int write_xml_meta(FILE *file, char *error)
write_xmlconfigparam
(
file
,
"BackPhoto_Type"
,
""
,
"meta.code;obs.param"
,
""
);
write_xmlconfigparam
(
file
,
"BackPhoto_Thick"
,
"pix"
,
"obs.param"
,
"%d"
);
write_xmlconfigparam
(
file
,
"Back_FiltThresh"
,
"ct"
,
"obs.param;"
,
"%g"
);
write_xmlconfigparam
(
file
,
"Back_Pearson"
,
""
,
"obs.param;"
,
"%g"
);
write_xmlconfigparam
(
file
,
"CheckImage_Type"
,
""
,
"meta.code;obs.param"
,
""
);
write_xmlconfigparam
(
file
,
"CheckImage_Name"
,
""
,
...
...
Prev
1
2
3
Next
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