Changes between Version 12 and Version 13 of InstallingHealpixForMars
- Timestamp:
- 10/04/19 19:18:12 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallingHealpixForMars
v12 v13 25 25 }}} 26 26 27 The following example on reading and writingis adapted from !RootHealPix/tutorials/ReadAndWrite.C.27 The following example on reading and writing to and from FITS files is adapted from !RootHealPix/tutorials/ReadAndWrite.C. 28 28 29 29 {{{#!Spoiler … … 47 47 } 48 48 49 std::vector<THealPix*> vec;49 vector<THealPix*> vec; 50 50 vec.push_back(&hpd1); 51 51 vec.push_back(&hpd2); … … 56 56 THealPixD* hpd = THealPixD::ReadFits("test.fits", "data2"); 57 57 58 std::cout << "Order: " << hpd->GetOrder() << std::endl;59 std::cout << "Nside: " << hpd->GetNside() << std::endl;60 std::cout << "Npix : " << hpd->GetNpix() << std::endl;61 std::cout << "Unit : " << hpd->GetUnit() << std::endl;62 std::cout << "Title: " << hpd->GetTitle() << std::endl;58 cout << "Order: " << hpd->GetOrder() << endl; 59 cout << "Nside: " << hpd->GetNside() << endl; 60 cout << "Npix : " << hpd->GetNpix() << endl; 61 cout << "Unit : " << hpd->GetUnit() << endl; 62 cout << "Title: " << hpd->GetTitle() << endl; 63 63 } 64 64 }}}