Changeset 1239 in Sophya for trunk/SophyaProg/PMixer/tgrsr.cc


Ignore:
Timestamp:
Oct 18, 2000, 10:58:53 PM (25 years ago)
Author:
ansari
Message:

Modifs FITS , Reza 18/10/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaProg/PMixer/tgrsr.cc

    r1141 r1239  
    133133  cout << "\n Writing Matrix NRows= " << mtx.NRows() << "  NCols= "
    134134       << mtx.NCols() << " to FITS file: " << (string)(arg[4]) << endl;
    135   FITS_TArray<r_8> fios(&mtx);
    136   fios.Write(arg[4]);   // $CHECK$ A passer em HDU=2 , Reza 31/7/2000
     135  FitsOutFile fios(arg[4]);
     136  fios.firstImageOnPrimaryHeader(false);  // use secondary header
     137  fios << mtx ;
    137138  PrtTim("End of Matrix->FITS ");
    138139  }
    139140
    140141  if (narg > 5) { // Writing ImageR4 fo FITS file
    141     cout << "wrting ImageR4(" << npt << ", 2) to FITS file: "
     142    cout << "writing ImageR4(" << npt << ", 2) to FITS file: "
    142143         << (string)(arg[5]) << endl;
    143     FITS_TArray<r_4> fios(&img);
    144     fios.Write(arg[5]);
     144    FitsOutFile fios(arg[5]);
     145    fios.firstImageOnPrimaryHeader(true);  // use primary  header
     146    fios << img ;
    145147    PrtTim("End of ImageR4->FITS ");
    146148  }
Note: See TracChangeset for help on using the changeset viewer.