Trouble with fits2alms (HEALPix)

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Alba Peláez
Posts: 2
Joined: August 05 2012
Affiliation: IAC

Trouble with fits2alms (HEALPix)

Post by Alba Peláez » April 24 2014

Hi,

I have trouble using the Fortran subroutine fits2alms. I get the following error message:

error #6285: There is no matching specific subroutine for this generic subroutine call. [FITS2ALMS]

Here's my piece of code:

Code: Select all

 
USE healpix_types
USE fitstools

IMPLICIT NONE

INTEGER :: nalms
CHARACTER(len=80) :: header
real(dp), DIMENSION(:,:,:), ALLOCATABLE :: w0_alms

lmax=2*nside
nalms=(lmax+1)*(lmax+2)/2
ALLOCATE(w0_alms(1:nalms,1:4,1:1))

CALL fits2alms('w_lm.fits', nalms, w0_alms, 3, header, 80, 1)
Thanks!

Alba Peláez
Posts: 2
Joined: August 05 2012
Affiliation: IAC

Trouble with fits2alms (HEALPix)

Post by Alba Peláez » April 25 2014

Solved:

Code: Select all

CHARACTER(len=80) :: header(1:80,1:1)

Post Reply