Changeset 1276
- Timestamp:
- 09/15/06 10:32:56 (18 years ago)
- Location:
- tags/Release2.1.1b
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/Release2.1.1b/doc/userguide.tex
r1267 r1276 1021 1021 \begin{verbatim} 1022 1022 ASAP>scans.save('myscans') # Save in default format 1023 ASAP>scans.save('myscans', 'FITS') # Save as FITS for exporting into CLASS1024 1023 ASAP>scans.save('myscans', overwrite=True) # Overwrite an existing file 1025 1024 \end{verbatim} … … 1621 1620 Scan, beam and IF selection are also available in the selector object as 1622 1621 describe in section~\ref{sec:selection}. 1623 1624 \subsection{Saving}1625 1626 \index{Polarisation!saving}When saving data using the \cmd{save}1627 function, the \cmd{stokes} argument can be used to save the data as1628 Stoke values when saving in FITS format.1629 1630 Example:1631 1632 \begin{verbatim}1633 ASAP>scans.save('myscan.sdfits', 'SDFITS', stokes=True)1634 \end{verbatim}1635 1622 1636 1623 \section{Specialised Processing} … … 2233 2220 2234 2221 % scantable 2235 \asaprc{scantable.save}{{\bf ASAP} SDFITS FITSASCII MS2}{Default output2222 \asaprc{scantable.save}{{\bf ASAP} SDFITS ASCII MS2}{Default output 2236 2223 format when saving} 2237 2224 -
tags/Release2.1.1b/python/scantable.py
r1274 r1276 77 77 def save(self, name=None, format=None, overwrite=False): 78 78 """ 79 Store the scantable on disk. This can be an asap (aips++) Table, SDFITS,80 ImageFITS or MS2 format.79 Store the scantable on disk. This can be an asap (aips++) Table, 80 SDFITS or MS2 format. 81 81 Parameters: 82 82 name: the name of the outputfile. For format "ASCII" -
tags/Release2.1.1b/src/STWriter.cpp
r1259 r1276 65 65 } else if (t== "SDFITS") { 66 66 writer_ = new PKSSDwriter(); 67 } else if (t== "FITS") {68 writer_ = 0;69 67 } else if (t== "ASCII") { 70 68 writer_ = 0; … … 94 92 } else if (t== "SDFITS") { 95 93 writer_ = new PKSSDwriter(); 96 } else if (t== "FITS") {97 writer_ = 0;98 94 } else if (t== "ASCII") { 99 95 writer_ = 0; … … 108 104 { 109 105 110 // Image FITS 111 112 if (format_=="FITS") { 113 // Bool verbose = True; 114 // SDFITSImageWriter iw; 115 // if (iw.write(*in, filename, verbose)) { 116 // return 0; 117 // } else { 118 // return 1; 119 // } 120 } else if (format_=="ASCII") { 121 STAsciiWriter iw; 122 if (iw.write(*in, filename)) { 123 return 0; 124 } else { 125 return 1; 126 } 106 if (format_=="ASCII") { 107 STAsciiWriter iw; 108 if (iw.write(*in, filename)) { 109 return 0; 110 } else { 111 return 1; 112 } 127 113 } 128 114 … … 143 129 144 130 const Table table = in->table(); 145 // ROArrayColumn<uInt> freqIDCol(table, "FREQ_ID");146 // Vector<uInt> freqIDs;147 131 148 132 // Create the output file and write static data. 149 133 Int status; 150 //Bool havexpol = Bool(in->npol() > 2);151 134 status = writer_->create(String(filename), hdr.observer, hdr.project, 152 135 hdr.antennaname, hdr.antennaposition,
Note:
See TracChangeset
for help on using the changeset viewer.