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
9abd0048
Commit
9abd0048
authored
Aug 14, 2013
by
rhenders
Browse files
Temporary hack to solve DES specific issue with extension numbers in tile-compressed files
parent
2f7e66c2
Changes
1
Show whitespace changes
Inline
Side-by-side
src/makeit.c
View file @
9abd0048
...
@@ -304,7 +304,6 @@ void makeit()
...
@@ -304,7 +304,6 @@ void makeit()
nok
=
0
;
nok
=
0
;
for
(
ntab
=
0
;
ntab
<
ntabmax
;
ntab
++
,
imatab
=
imatab
->
nexttab
)
for
(
ntab
=
0
;
ntab
<
ntabmax
;
ntab
++
,
imatab
=
imatab
->
nexttab
)
{
{
printf
(
"matab->naxis %d\ imatab->xtension = %s compressed? %d
\n
"
,
imatab
->
naxis
,
imatab
->
xtension
,
imatab
->
isTileCompressed
);
/*-- Check for the next valid image extension */
/*-- Check for the next valid image extension */
if
(
!
forcextflag
&&
((
imatab
->
naxis
<
2
)
if
(
!
forcextflag
&&
((
imatab
->
naxis
<
2
)
||
!
strncmp
(
imatab
->
xtension
,
"BINTABLE"
,
8
)
||
!
strncmp
(
imatab
->
xtension
,
"BINTABLE"
,
8
)
...
@@ -692,6 +691,10 @@ static int selectext(char *filename)
...
@@ -692,6 +691,10 @@ static int selectext(char *filename)
if
((
bracr
=
strrchr
(
bracl
+
1
,
']'
)))
if
((
bracr
=
strrchr
(
bracl
+
1
,
']'
)))
*
bracr
=
'\0'
;
*
bracr
=
'\0'
;
next
=
strtol
(
bracl
+
1
,
NULL
,
0
);
next
=
strtol
(
bracl
+
1
,
NULL
,
0
);
// VERY BAD HACK to check if this is tile-compressed, if so, add +1 to extension number requested
if
(
strstr
(
filename
,
".fits.fz"
)
!=
NULL
)
next
=
next
+
1
;
return
next
;
return
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