- Timestamp:
- 09/11/06 15:10:05 (18 years ago)
- Location:
- trunk/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/LineCatalog.cpp
r1126 r1259 96 96 oss << std::left << setw(20) << getName(i); 97 97 oss << setw(12) << setprecision(8) << std::left << getFrequency(i); 98 oss << setw(12) << setprecision(8) << std::left << getStrength(i); 98 99 oss << endl; 99 100 } … … 103 104 oss << std::left << setw(20) << getName(row); 104 105 oss << setw(12) << setprecision(8) << std::left << getFrequency(row); 106 oss << setw(12) << setprecision(8) << std::left << getStrength(row); 105 107 oss << endl; 106 108 } else { … … 127 129 } 128 130 131 double asap::LineCatalog::getStrength(uint row) const 132 { 133 ROScalarColumn<Double> col(table_, "Column3"); 134 return col(row); 135 } 136 129 137 130 138 } // namespace -
trunk/src/LineCatalog.h
r1126 r1259 85 85 86 86 /** 87 * Return the line strength value for a specific row 88 * @param row the row number 89 * @return a double rest line strength value 90 */ 91 double getStrength(uint row) const; 92 93 /** 87 94 * 88 95 * @param row -
trunk/src/Makefile
r1198 r1259 25 25 26 26 # cfitsio 27 CFITSIOROOT := /usr 28 # If aips++ is build with LFS (default) you need to have 29 # libcfitsio with lfs support 30 # this is default in cfitsio >= 3.0 27 CFITSIOROOT := /usr/local 31 28 CFITSIOINC := -I$(CFITSIOROOT)/include 32 CFITSIOLIB := -L$(CFITSIOROOT) -lcfitsio29 CFITSIOLIB := -L$(CFITSIOROOT)/lib -lcfitsio 33 30 34 31 #rpfits … … 36 33 RPFITSLIB := $(RPFITSROOT)/lib/librpfits.a 37 34 38 G2CROOT := /usr 39 G2CLIB := $(G2CROOT)/lib -lg2c 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) 40 39 41 40 # This assumes all casa libs are static only (*.a) … … 79 78 80 79 # has to be build with same g++ version as casa 81 BOOSTROOT := /usr 80 BOOSTROOT := /usr/local 82 81 BOOSTLIB := -L$(BOOSTROOT)/lib -lboost_python 83 82 BOOSTINC := -I$(BOOSTROOT)/include/boost … … 92 91 RowAccumulator.o \ 93 92 Logger.o \ 93 LineCatalog.o \ 94 94 STAttr.o \ 95 95 STHeader.o \ … … 124 124 python_STFitEntry.o \ 125 125 python_STWriter.o \ 126 python_LineCatalog.o \ 126 127 python_asap.o 127 128 -
trunk/src/STMath.cpp
r1232 r1259 350 350 TableRow row(tout); 351 351 ROScalarColumn<Double> offtimeCol(offs, "TIME"); 352 353 352 ArrayColumn<Float> outspecCol(tout, "SPECTRA"); 354 353 ROArrayColumn<Float> outtsysCol(tout, "TSYS"); … … 359 358 ROScalarColumn<Double> offtimeCol(offs, "TIME"); 360 359 Double mindeltat = min(abs(offtimeCol.getColumn() - ontime)); 361 Table sel = offs( abs(offs.col("TIME")-ontime) <= mindeltat 360 // Timestamp may vary within a cycle ???!!! 361 // increase this by 0.5 sec in case of rounding errors... 362 // There might be a better way to do this. 363 mindeltat += 0.5; 364 Table sel = offs( abs(offs.col("TIME")-ontime) <= (mindeltat+0.5) 362 365 && offs.col("BEAMNO") == Int(rec.asuInt("BEAMNO")) 363 366 && offs.col("IFNO") == Int(rec.asuInt("IFNO")) 364 367 && offs.col("POLNO") == Int(rec.asuInt("POLNO")) ); 365 368 369 if ( sel.nrow() < 1 ) { 370 throw(AipsError("No closest in time found... This could be a rounding " 371 "issue. Try quotient instead.")); 372 } 366 373 TableRow offrow(sel); 367 374 const TableRecord& offrec = offrow.get(0);//should only be one row -
trunk/src/STPolCircular.cpp
r1189 r1259 35 35 if ( index == 0 ) 36 36 out = Vector<Float>(getSpectrum(0) + getSpectrum(1)); 37 else if ( index == 3 ) 38 out = Vector<Float>(getSpectrum(0) - getSpectrum(1)); 37 39 } 38 40 return out; -
trunk/src/STWriter.cpp
r1072 r1259 298 298 { 299 299 String poltype = tab.keywordSet().asString("POLTYPE"); 300 if ( poltype != "linear") {300 if ( poltype == "stokes") { 301 301 String msg = "poltype = " + poltype + " not yet supported in output."; 302 302 throw(AipsError(msg)); -
trunk/src/python_Scantable.cpp
r1189 r1259 77 77 (arg("whichrow")=0, arg("poltype")=std::string("")) ) 78 78 .def("poltype", &ScantableWrapper::getPolType ) 79 .def(" column_names", &ScantableWrapper::columnNames)79 .def("get_column_names", &ScantableWrapper::columnNames) 80 80 .def("_getpollabel", &ScantableWrapper::getPolarizationLabel) 81 81 .def("_setspectrum",&ScantableWrapper::setSpectrum,
Note:
See TracChangeset
for help on using the changeset viewer.