- Timestamp:
- 11/06/06 22:22:03 (18 years ago)
- Location:
- trunk/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/LineCatalog.h
r1259 r1295 36 36 */ 37 37 LineCatalog(const std::string& name = "jpl"); 38 /**39 * select a subset of the table by frequency range40 * @param fmin the lower frequency bound41 * @param fmin the upper frequency bound42 */43 38 44 39 virtual ~LineCatalog() {} … … 50 45 */ 51 46 void setFrequencyLimits(double fmin, double fmax); 47 52 48 /** 53 49 * select a subset of the table by line strength range … … 56 52 */ 57 53 void setStrengthLimits(double smin, double smax); 54 58 55 /** 59 56 * select a subset of the data by name pattern match (unix-style) … … 64 61 */ 65 62 void setPattern(const std::string& name, const std::string& ptype="pattern"); 63 66 64 /** 67 65 * save the table with current limits to disk (as an aips++ table) … … 69 67 */ 70 68 void save(const std::string& name); 69 71 70 /** 72 71 * Return a string representation of this table -
trunk/src/Makefile
r1259 r1295 34 34 35 35 G2CROOT := /usr/local 36 G2CARCH := $(G2CROOT)/lib/gcc/i386-apple-darwin8.7.1/4.2.0/libgcc.a 37 G2CARCH := $(G2CROOT)/lib/gcc/powerpc-apple-darwin8.7.0/4.2.0/libgcc.a 38 G2CLIB := $(G2CROOT)/lib/libgfortran.a $(G2CARCH) 36 G2CARCH := #$(G2CROOT)/lib/gcc/powerpc-apple-darwin8.7.0/4.2.0/libgcc.a 37 G2CLIB := $(G2CROOT)/lib/libg2c.a $(G2CARCH) 39 38 40 39 # This assumes all casa libs are static only (*.a) … … 42 41 CASAPPLIB := $(CASALIB)/version.o \ 43 42 -L$(CASALIB) \ 44 -latnf -l images -lms -lcomponents -lcoordinates \45 -llattices -lfits -lmeasures -lmeasures_f\43 -latnf -lms -lcomponents -lcoordinates \ 44 -llattices -lfits -lmeasures \ 46 45 -ltables -lscimath -lscimath_f -lcasa \ 47 46 $(CASALIB)/libwcs.a \ -
trunk/src/RowAccumulator.h
r1114 r1295 43 43 * @param tsys the Tsys corresponing to the spectrum 44 44 * @param interval the intergration time 45 * @param t he time of the observation45 * @param time the time of the observation 46 46 */ 47 47 void add(const casa::Vector<casa::Float>& v, -
trunk/src/STAsciiWriter.cpp
r996 r1295 109 109 String fName = rootName + String(onstr) + String(".txt"); 110 110 ofstream of(fName.chars(), ios::trunc); 111 int row0 = t.rowNumbers( )[0];111 int row0 = t.rowNumbers(tab)[0]; 112 112 MDirection mdir = stable.getDirection(row0); 113 113 of << setfill('#') << setw(70) << "" << setfill(' ') << endl; -
trunk/src/STMath.h
r1200 r1295 51 51 52 52 /** 53 * get the currnt @attr inistu state53 * get the currnt @attr inistu_ state 54 54 */ 55 55 bool insitu() const { return insitu_;}; … … 65 65 * average a vector of Scantables 66 66 * @param in the vector of Scantables to average 67 * @param an optional mask to apply on specific weights67 * @param mask an optional mask to apply on specific weights 68 68 * @param weight weighting scheme 69 69 * @param avmode the mode ov averaging. Per "SCAN" or "ALL". -
trunk/src/STWriter.cpp
r1280 r1295 119 119 //const Int nPol = hdr.npol; 120 120 //const Int nChan = hdr.nchan; 121 int nIF = in->nif(); 121 std::vector<uint> ifs = in->getIFNos(); 122 int nIF = in->nif();//ifs.size(); 122 123 Vector<uInt> nPol(nIF),nChan(nIF); 123 124 Vector<Bool> havexpol(nIF); 124 for (int i=0;i<nIF;++i) { 125 nPol(i) = in->npol(); 126 nChan(i) = in->nchan(i); 127 havexpol(i) = nPol(i) > 2; 125 nPol = 0;nChan = 0; havexpol = False; 126 for (int i=0;i<ifs.size();++i) { 127 nPol(ifs[i]) = in->npol(); 128 nChan(ifs[i]) = in->nchan(ifs[i]); 129 havexpol(ifs[i]) = nPol(ifs[i]) > 2; 128 130 } 129 131 … … 170 172 ROScalarColumn<Double> svelCol(btable, "SRCVELOCITY"); 171 173 svelCol.get(0, srcVel); 174 ROScalarColumn<uInt> bCol(btable, "BEAMNO"); 175 beamno = bCol(0)+1; 172 176 Int cycno = 1; 173 177 while (!cycit.pastEnd() ) { … … 181 185 const TableRecord& rec = row.get(0); 182 186 ROArrayColumn<Float> specCol(itable, "SPECTRA"); 187 ifno = rec.asuInt("IFNO")+1; 183 188 uInt nchan = specCol(0).nelements(); 184 189 Double cdelt,crval,crpix, restfreq; … … 244 249 } 245 250 ++count; 246 ++ifno;251 //++ifno; 247 252 ++ifit; 248 253 } … … 250 255 ++cycit; 251 256 } 252 ++beamno;257 //++beamno; 253 258 ++beamit; 254 259 } -
trunk/src/Scantable.h
r1189 r1295 120 120 /** 121 121 * set the header 122 * @param[in] s dh an STHeader object122 * @param[in] sth an STHeader object 123 123 */ 124 124 void setHeader( const STHeader& sth ); … … 175 175 /** 176 176 * set the direction type as a string, e.g. "J2000" 177 * @param[in] the direction type177 * @param[in] refstr the direction type 178 178 */ 179 179 void setDirectionRefString(const std::string& refstr=""); … … 203 203 /** 204 204 * Set the Stokes type of the data 205 * @param a string representing the type, e.g "circular" or "linear"205 * @param feedtype a string representing the type, e.g "circular" or "linear" 206 206 */ 207 207 void setFeedType( const std::string& feedtype );
Note:
See TracChangeset
for help on using the changeset viewer.