Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
xQML
xQML
Commits
38dcfeca
Commit
38dcfeca
authored
Jan 21, 2020
by
Matthieu Tristram
Browse files
Force computing pur modes (TT,EE,BB) for TE, TB, EB
parent
ecb32a95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
src/libcov.c
src/libcov.c
+14
-5
No files found.
src/libcov.c
View file @
38dcfeca
...
...
@@ -51,7 +51,7 @@ void build_dSdC( int nside, int nstokes, int npix, int nbin, long *ispec, long *
dSdCpix
[
il
]
=
(
double
*
)
calloc
(
ns
*
ns
,
sizeof
(
double
));
if
(
dSdCpix
[
il
]
==
NULL
)
EXIT_INFO
(
-
1
,
"Problem allocation dSdCpix (l=%d)...
\n
"
,
il
);
}
int
sI
=
0
,
sQ
=
1
,
sU
=
2
;
if
(
nstokes
==
2
)
{
sQ
=
0
;
sU
=
1
;
}
...
...
@@ -383,13 +383,22 @@ int ispec2nspec( long *ispec)
{
int
nspec
=
0
;
//force TT & EE for TE
if
(
ispec
[
3
]
==
1
)
ispec
[
0
]
=
ispec
[
1
]
=
1
;
//force TT & BB for TB
if
(
ispec
[
4
]
==
1
)
ispec
[
0
]
=
ispec
[
2
]
=
1
;
//force EE & BB
if
(
ispec
[
1
]
==
1
)
ispec
[
1
]
=
ispec
[
2
]
=
1
;
if
(
ispec
[
2
]
==
1
)
ispec
[
1
]
=
ispec
[
2
]
=
1
;
//force EE & BB for EB
if
(
ispec
[
5
]
==
1
)
ispec
[
1
]
=
ispec
[
2
]
=
1
;
for
(
int
i
=
0
;
i
<
6
;
i
++
)
if
(
ispec
[
i
])
nspec
++
;
//force EE and BB
if
(
ispec
[
1
]
==
1
)
ispec
[
2
]
==
1
;
if
(
ispec
[
2
]
==
1
)
ispec
[
1
]
==
1
;
return
(
nspec
);
}
...
...
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