Skip to content

Commit

Permalink
fix healpy-based projection
Browse files Browse the repository at this point in the history
  • Loading branch information
marius311 committed Jul 13, 2023
1 parent 3d154e4 commit 2bc85a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/proj_healpix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ function project(projector::Projector{:bilinear}, (hpx_map, cart_proj)::Pair{<:H
@assert projector.hpx_proj == hpx_map.proj && projector.cart_proj == cart_proj
@unpack (Ny, Nx, T) = cart_proj
@unpack (θs, ϕs) = projector
BaseMap(T.(reshape(PyArray(pyimport("healpy").get_interp_val(collect(hpx_map), θs, ϕs)), Ny, Nx)), cart_proj)
np = pyimport("numpy")
BaseMap(T.(reshape(PyArray(pyimport("healpy").get_interp_val(np.array(collect(hpx_map)), np.array(θs), np.array(ϕs))), Ny, Nx)), cart_proj)
end

function project(projector::Projector{:fft}, (hpx_map, cart_proj)::Pair{<:HealpixMap,<:CartesianProj})
Expand Down

0 comments on commit 2bc85a9

Please sign in to comment.