Changeset 1120 in Sophya for trunk/SophyaProg/PMixer
- Timestamp:
- Jul 31, 2000, 3:47:02 PM (25 years ago)
- Location:
- trunk/SophyaProg/PMixer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaProg/PMixer/pmixer.h
r933 r1120 18 18 #include "pexceptions.h" 19 19 #include "datacards.h" 20 #include "fitsioserver.h" 20 #include "ntuple.h" 21 #include "fiospherehealpix.h" 21 22 #include "fitsspherehealpix.h" 22 23 #include "fitstarray.h" 24 #include "cimage.h" 23 25 24 26 #include "radspecvector.h" -
trunk/SophyaProg/PMixer/skymixer.cc
r1062 r1120 442 442 443 443 if (dc.HasKey(key) ) { // Reading FITS filter file 444 FitsIoServer fios;445 444 char ifnm[256]; 446 445 strncpy(ifnm, dc.SParam(key, 1).c_str(), 255); 447 446 ifnm[255] = '\0'; 448 Matrix mtx(2,10); 449 fios.load(mtx, ifnm); 447 Matrix mtx; 448 FITS_TArray<r_8> fios(ifnm, 2); // $CHECK$ A passer em HDU=2 , Reza 31/7/2000 449 mtx = fios; 450 450 double numin = dc.DParam(key, 2, 1.); 451 451 double numax = dc.DParam(key, 3, 9999.); … … 496 496 char * ifnm = BuildFITSFileName(dc.SParam(key, 0)); 497 497 cout << " Reading Input FITS spectra file " << (string)ifnm << endl; 498 FitsIoServer fios;499 Matrix mtx(2,10);500 fios.load(mtx, ifnm);498 Matrix mtx; 499 FITS_TArray<r_8> fios(ifnm, 2); // $CHECK$ A passer em HDU=2 , Reza 31/7/2000 500 mtx = fios; 501 501 double numin = dc.DParam(key, 2, 1.); 502 502 double numax = dc.DParam(key, 3, 9999.); -
trunk/SophyaProg/PMixer/tgrsr.cc
r949 r1120 128 128 PrtTim("End of filling "); 129 129 130 FitsIoServer fios;130 { 131 131 cout << "\n Writing Matrix NRows= " << mtx.NRows() << " NCols= " 132 132 << mtx.NCols() << " to FITS file: " << (string)(arg[4]) << endl; 133 fios.save(mtx, arg[4]); 133 FITS_TArray<r_8> fios(&mtx); 134 fios.Write(arg[4]); // $CHECK$ A passer em HDU=2 , Reza 31/7/2000 134 135 PrtTim("End of Matrix->FITS "); 136 } 135 137 136 138 if (narg > 5) { // Writing ImageR4 fo FITS file 137 139 cout << "wrting ImageR4(" << npt << ", 2) to FITS file: " 138 140 << (string)(arg[5]) << endl; 139 fios.save(img, arg[5]); 141 FITS_TArray<r_4> fios(&img); 142 fios.Write(arg[5]); 140 143 PrtTim("End of ImageR4->FITS "); 141 144 } -
trunk/SophyaProg/PMixer/tgsky.cc
r949 r1120 108 108 109 109 110 111 F itsIoServer fios;112 fios. save(sph,arg[4]);110 { 111 FITS_SphereHEALPix<r_4> fios(&sph); 112 fios.Write(arg[4]); 113 113 cout << "SphereHEALPix<float> written to FITS file " << (string)(arg[4]) << endl; 114 114 PrtTim("End of WriteFITS "); 115 116 115 } 117 catch (PThrowable exc) { 118 cerr << " tgsky: Catched Exception - Msg= " << exc.Msg() << endl; 116 } 117 catch (PThrowable & exc) { 118 cerr << " tgsky: Catched Exception - Msg= " << exc.Msg() 119 << " Type=" << (string)typeid(exc).name() << endl; 119 120 } 120 121 catch (...) {
Note:
See TracChangeset
for help on using the changeset viewer.