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
ift
NIFTy
Commits
dcb216d1
Commit
dcb216d1
authored
May 17, 2017
by
Martin Reinecke
Browse files
fixes
parent
927b2f2b
Pipeline
#12577
passed with stage
in 5 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/plotting/plots/heatmaps/glmollweide.py
View file @
dcb216d1
...
...
@@ -45,11 +45,12 @@ class GLMollweide(Heatmap):
np
.
arcsin
(
2
/
np
.
pi
*
(
np
.
arcsin
(
t1
)
+
t1
*
np
.
sqrt
((
1.
-
t1
)
*
(
1
+
t1
)))))
phi
=
-
0.5
*
np
.
pi
*
u
[
mask
]
/
np
.
maximum
(
np
.
sqrt
((
1
-
t1
)
*
(
1
+
t1
)),
1e-6
)
x
=
np
.
reshape
(
x
,
(
nl
on
,
nlat
))
x
=
np
.
reshape
(
x
,
(
nl
at
,
nlon
))
ra
=
np
.
linspace
(
0
,
2
*
np
.
pi
,
nlon
+
1
)
dec
=
np
.
arccos
(
pyHealpix
.
GL_thetas
(
nlat
))
ilat
=
self
.
_find_closest
(
-
dec
,
-
theta
)
dec
=
pyHealpix
.
GL_thetas
(
nlat
)
print
"dec:"
,
dec
ilat
=
self
.
_find_closest
(
dec
,
theta
)
ilon
=
self
.
_find_closest
(
ra
,
phi
+
np
.
pi
)
ilon
=
np
.
where
(
ilon
==
nlon
,
0
,
ilon
)
res
[
mask
]
=
x
[
il
on
,
il
at
]
res
[
mask
]
=
x
[
il
at
,
il
on
]
return
res
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