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
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
spherelib
Spherelib
Commits
e418e9e2
Commit
e418e9e2
authored
Sep 14, 2010
by
Maude Le Jeune
Browse files
double precision
parent
983c4385
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
python/spherelib/fitsfunc2.py
python/spherelib/fitsfunc2.py
+2
-2
python/spherelib/myIO.py
python/spherelib/myIO.py
+1
-1
No files found.
python/spherelib/fitsfunc2.py
View file @
e418e9e2
...
...
@@ -133,7 +133,7 @@ def write_covmat (filename, covmat, nbmodes=None):
c
=
0
for
i
in
range
(
ndet
):
for
j
in
range
(
i
+
1
):
cols
.
append
(
pyfits
.
Column
(
name
=
'cross %d'
%
c
,
format
=
'
E
'
,
array
=
array
(
covmat
[
i
,
j
,:])))
cols
.
append
(
pyfits
.
Column
(
name
=
'cross %d'
%
c
,
format
=
'
D
'
,
array
=
array
(
covmat
[
i
,
j
,:])))
c
=
c
+
1
cols
=
pyfits
.
ColDefs
(
cols
)
...
...
@@ -186,7 +186,7 @@ def write_table (filename, mat, colname=None):
cols
=
[]
for
c
in
range
(
ncols
):
cols
.
append
(
pyfits
.
Column
(
name
=
colname
[
c
],
format
=
'
E
'
,
array
=
array
(
mat
[:,
c
])))
cols
.
append
(
pyfits
.
Column
(
name
=
colname
[
c
],
format
=
'
D
'
,
array
=
array
(
mat
[:,
c
])))
cols
=
pyfits
.
ColDefs
(
cols
)
tbhdu
=
pyfits
.
new_table
(
cols
)
...
...
python/spherelib/myIO.py
View file @
e418e9e2
...
...
@@ -161,7 +161,7 @@ def write_map (file, map):
except
pio
.
pioError
,
val
:
return
str
(
val
)
else
:
hp
.
write_map
(
file
,
map
)
hp
.
write_map
(
file
,
map
,
dtype
=
np
.
float64
)
def
read_alm
(
file
):
""" Read Healpix alm from file
...
...
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