#include "sopnamsp.h" #include "machdefs.h" #include #include #include #include #include #include #include "fioarr.h" #include "skymap.h" // set fname = ( `cat gsm820948.list | awk '{print $3}' | sed 's/data/ppf/'` ) // cmvgsm2cube -o gsm820948_cube.ppf -p 360,0.1666667,160. -t 360,0.1666667,30. $fname void usage(void) { cout <<"cmvgsm2cube [options] liste_des_spheres_healpix"< phi0+nphi*dphi (degres)"< theta0+ntheta*dtheta (degres)"< sphname; for(int i=optind;i Cube(sphname.size(),nphi,ntheta); Cube = 0.; for(unsigned int is=0;is sph; pis>>PPFNameTag("sph")>>sph; for(int it=0;itM_PI) continue; for(int ip=0;ip=2.*M_PI) p -= 2.*M_PI; int_4 ksph = sph.PixIndexSph(t,p); Cube(is,ip,it) = sph(ksph); } } } POutPersist pos(ppfrn); pos<