// Pour boucher les trous d'une sphere HEALPIX utilisant une autre sphere // cmv 13/6/01 #include "machdefs.h" #include #include #include #include #include #include "skymapinit.h" #include "skymap.h" #include "fitsspherehealpix.h" void usage(); void usage() { cout<<"extrap2sph [-w sphinw.fits -0 nulval]"<=narg) {usage(); exit(1);} char * fsphin = arg[optind]; char * fsphred = arg[optind+1]; char * fsphout = arg[optind+2]; cout<<"Sphere Input : "< sphin; {FitsInFile sfits(fsphin); sfits >> sphin;} int nlat = sphin.SizeIndex(); cout<<"Opening Sphere Input :"< sphinw; if(fsphinw) { FitsInFile sfits(fsphinw); sfits >> sphinw; cout<<"Opening Weight Sphere Input :"< sphred; {FitsInFile sfits(fsphred); sfits >> sphred;} cout<<"Opening Reducted Sphere Input :"< sphout(sphin,false); // Filling hole for Output Sphere cout<<"...Filling hole for Output Sphere"<0.) continue;} else {if(sphout(i)!=nulval) continue;} double theta,phi; sphout.PixThetaPhi(i,theta,phi); int_4 ir = sphred.PixIndexSph(theta,phi); sphout(i) = sphred(ir); n++; } cout<<" Number of filled pixels "<