def alm2map_der1(alm, nside, lmax=None, mmax=None): """Computes an Healpix map and its first derivatives given the alm. The alm are given as a complex array. You can specify lmax and mmax, or they will be computed from array size (assuming lmax==mmax). Parameters ---------- alm : array, complex A complex array of alm. Size must be of the form mmax(lmax-mmax+1)/2+lmax nside : int The nside of the output map. lmax : None or int, optional Explicitly define lmax (needed if mmax!=lmax) mmax : None or int, optional Explicitly define mmax (needed if mmax!=lmax) Returns ------- m, d_theta, d_phi : tuple of arrays The maps correponding to alm, and its derivatives with respect to theta and phi. """ if lmax is None: lmax = -1 if mmax is None: mmax = -1 return sphtlib._alm2map_der1(alm, nside, lmax=lmax, mmax=mmax)
def alm2map_der1(alm, nside, lmax = None, mmax = None): """Computes an Healpix map and its first derivatives given the alm. The alm are given as a complex array. You can specify lmax and mmax, or they will be computed from array size (assuming lmax==mmax). Parameters ---------- alm : array, complex A complex array of alm. Size must be of the form mmax(lmax-mmax+1)/2+lmax nside : int The nside of the output map. lmax : None or int, optional Explicitly define lmax (needed if mmax!=lmax) mmax : None or int, optional Explicitly define mmax (needed if mmax!=lmax) Returns ------- m, d_theta, d_phi : tuple of arrays The maps correponding to alm, and its derivatives with respect to theta and phi. """ if lmax is None: lmax = -1 if mmax is None: mmax = -1 return sphtlib._alm2map_der1(alm,nside,lmax=lmax,mmax=mmax)
def alm2map_der1(alm, nside, lmax=-1, mmax=-1): """Computes an Healpix map and its first derivatives given the alm. The alm are given as a complex array. You can specify lmax and mmax, or they will be computed from array size (assuming lmax==mmax). Parameters: - alm: a complex array of alm. Size must be of the form size=mmax(lmax-mmax+1)/2+lmax - nside: the nside of the output map. - lmax: explicitly define lmax (needed if mmax!=lmax) - mmax: explicitly define mmax (needed if mmax!=lmax) Return: an Healpix map in RING scheme at nside. """ return sphtlib._alm2map_der1(alm, nside, lmax=lmax, mmax=mmax)
def alm2map_der1(alm, nside, lmax=-1, mmax=-1): """Computes an Healpix map and its first derivatives given the alm. The alm are given as a complex array. You can specify lmax and mmax, or they will be computed from array size (assuming lmax==mmax). Parameters: - alm: a complex array of alm. Size must be of the form size=mmax(lmax-mmax+1)/2+lmax - nside: the nside of the output map. - lmax: explicitly define lmax (needed if mmax!=lmax) - mmax: explicitly define mmax (needed if mmax!=lmax) Return: an Healpix map in RING scheme at nside. """ return sphtlib._alm2map_der1(alm,nside,lmax=lmax,mmax=mmax)