Changeset 2055 in Sophya for trunk


Ignore:
Timestamp:
Jun 13, 2002, 5:50:34 PM (23 years ago)
Author:
cecile
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/TestPipes/tsttoi2mapsq.cc

    r2046 r2055  
    186186 
    187187 // Creation de la lmapere de poids Healpix
    188  PixelMap<r_8>* map;
    189  PixelMap<r_8>* wmap;
    190 
    191  LocalMap<r_8>* lmap = new LocalMap<r_8>(nbin,nbin);
    192 
    193  lmap->SetSize(size,size);
    194  lmap->SetOrigin(xcenter,ycenter);
     188 LocalMap<r_8>* lmap = new LocalMap<r_8>(nbin,nbin,size,size,xcenter,ycenter);
     189
     190 //lmap->SetSize(size,size);
     191 //lmap->SetOrigin(xcenter,ycenter);
    195192 cout<<"LocalMap: Type de map : "<<lmap->TypeOfMap()<<endl
    196193     <<"               Nombre de pixels : "<<lmap->NbPixels()<<endl
    197194     <<"               Nbin : "<<lmap->SizeIndex()<<endl;
    198195
    199  map = lmap;
    200  wmap = new LocalMap<r_8>(*lmap);
     196 LocalMap<r_8>* wmap = new LocalMap<r_8>(*lmap);
    201197 
    202198
    203199 // TOI Processor
    204  TOI2Map toi2m(map,wmap);
     200 TOI2Map toi2m(lmap,wmap);
    205201 cout<<"TOI2Map created"<<endl;
    206202 toi2m.SetEquinox(equi);
     
    210206 toi2m.SetTestMin(tmin,vmin);
    211207 toi2m.SetTestMax(tmax,vmax);
    212  toi2m.Print(cout);
     208 toi2m.Print(cout); 
    213209
    214210 // Definition des tuyaux
     
    273269 FitsOutFile sfits(fitlmapout,FitsFile::clear);
    274270 cout<<"tsttoi2map: Creating lmapere fits file "<<fitlmapout<<endl;
    275  sfits << *(LocalMap<r_8>*)map;
     271 sfits << *lmap;
    276272 }
    277273
     
    280276   FitsOutFile swfits(fitlmapwout,FitsFile::clear);
    281277   cout<<"tsttoi2map: Creating lmapere weight fits file "<<fitlmapwout<<endl;
    282    swfits << *(LocalMap<r_8>*)wmap;
     278   swfits << *wmap;
    283279 }
    284280
Note: See TracChangeset for help on using the changeset viewer.