Changeset 794 for trunk/src


Ignore:
Timestamp:
12/09/05 14:50:59 (18 years ago)
Author:
mar637
Message:

update from Release12

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Makefile

    r717 r794  
    11TARGET   := /tmp/_asap.so
     2
     3
     4# the casa environment AIPSPATH has to be defined
     5CASAROOT  := $(word 1, $(AIPSPATH))
     6CASAARCH  := $(word 2, $(AIPSPATH))
     7CASAINC   := -I$(CASAROOT)/code/include -I$(CASAROOT)/code/casa
     8CASALIB   := $(CASAROOT)/$(CASAARCH)/lib
     9
     10
     11# the compiler
    212ifndef CXX
    313   CXX      := g++
    414endif
     15
     16# compiler flags
    517CXXFLAGS := -O3 -fPIC
    6 CXXFLAGS += -ansi
    7 CXXFLAGS += -pedantic -Wno-long-long
     18CXXFLAGS += -ansi -pedantic -Wno-long-long
    819CXXOPTS := -DAIPS_NO_TEMPLATE_SRC
    920
    10 CFITSIOROOT := /usr/local If aips++ is build with LFS you need to have
     21# darwin specific flags
     22ifeq "$(CASAARCH)" "darwin"
     23   CXXFLAGS := -O2 -DAIPS_DARWIN
     24   CXXFLAGS += -ansi -pedantic -Wno-long-long -Wno-long-double
     25endif
     26
     27
     28# cfitsio
     29CFITSIOROOT := /usr/local
     30# If aips++ is build with LFS you need to have
    1131# libcfitsio with lfs support
    12 CFITSIOLIB := /usr/local/lib/libcfitsio_lfs.a
    13 #CFITSIOINC := -I$(CFITSIOROOT)/include/cfitsio
     32CFITSIOINC := -I$(CFITSIOROOT)/include
     33CFITSIOLIB := $(CFITSIOROOT)/lib/libcfitsio_lfs.a
    1434#CFITSIOLIB := -L$(CFITSIOROOT) -lcfitsio
    1535
    16 
    17 CASAROOT  := $(word 1, $(AIPSPATH))
    18 CASAARCH  := $(word 2, $(AIPSPATH))
    19 CASAINC   := -I$(CASAROOT)/code/include -I$(CASAROOT)/code/casa/wcslib
    20 CASALIB   := $(CASAROOT)/$(CASAARCH)/lib
    21 
     36#rpfits
     37RPFITSROOT := /usr/local
     38RPFITSLIB := $(RPFITSROOT)/lib/librpfits.a
    2239
    2340# This assumes all casa libs are static only (*.a)
    2441# if not than there might by symbol resolution errors.
    2542CASAPPLIB := $(CASALIB)/version.o \
    26              -L$(CASALIB) -static \
     43             -L$(CASALIB) \
    2744             -latnf -limages -lms -lcomponents -lcoordinates \
    2845             -llattices -lfits -lmeasures -lmeasures_f \
    2946             -ltables -lscimath -lscimath_f -lcasa  \
    3047             $(CASALIB)/libwcs.a \
    31               -lrpfits $(CFITSIOLIB) -dy -llapack -lblas -lg2c
     48             $(RPFITSLIB) $(CFITSIOLIB) -lg2c -lstdc++
    3249
     50# darwin specific CASA flags
     51ifeq "$(CASAARCH)" "darwin"
     52   CASAPPLIB += -framework vecLib
     53else
     54   CASAPPLIB += -llapack -lblas
     55endif
     56
     57# the linker
    3358LD        := $(CXX)
     59
    3460LDFLAGS   := -shared -Wl$(TARGET) -s
     61ifeq "$(CASAARCH)" "darwin"
     62   LDFLAGS   := -dynamiclib -single_module
     63endif
    3564
     65# python only 2.3 has been tested
    3666PYVERSION := 2.3
    3767PYTHONROOT := /usr
     
    3969PYTHONLIB := -L$(PYTHONROOT)/lib -lpython$(PYVERSION)
    4070
    41 
     71# has to be build with same g++ version as casa
    4272BOOSTROOT := /usr
    4373BOOSTLIB  := -L$(BOOSTROOT)/lib -lboost_python
     
    4575
    4676
     77# DO NOT MODIFY AFTER THIS
    4778INCDIRS   := -I. $(CASAINC) $(BOOSTINC) $(PYTHONINC) $(CFITSIOINC)
    4879LIBS      := $(PYTHONLIB)  $(BOOSTLIB) $(CASAPPLIB)
  • trunk/src/SDMemTable.cc

    r780 r794  
    244244  srcnCol_.get(whichRow, name);
    245245  return name;
     246}
     247
     248float SDMemTable::getElevation(Int whichRow) const
     249{
     250  float elevation;
     251  elCol_.get(whichRow, elevation);
     252  return elevation;
     253}
     254
     255float SDMemTable::getAzimuth(Int whichRow) const
     256{
     257  float azimuth;
     258  azCol_.get(whichRow, azimuth);
     259  return azimuth;
     260}
     261
     262float SDMemTable::getParAngle(Int whichRow) const
     263{
     264  float parangle;
     265  paraCol_.get(whichRow, parangle);
     266  return parangle;
    246267}
    247268
  • trunk/src/SDMemTable.h

    r777 r794  
    147147
    148148  std::string getSourceName(casa::Int whichRow=0) const;
     149
     150  float getElevation(casa::Int whichRow=0) const;
     151  float getAzimuth(casa::Int whichRow=0) const;
     152  float getParAngle(casa::Int whichRow=0) const;
     153
    149154  double getInterval(casa::Int whichRow=0) const;
    150155
  • trunk/src/SDMemTableWrapper.h

    r777 r794  
    136136  std::string getSourceName(int whichRow=0) {
    137137    return table_->getSourceName(whichRow);
     138  }
     139
     140  float getElevation(int whichRow=0) {
     141    return table_->getElevation(whichRow);
     142  }
     143  float getAzimuth(int whichRow=0) {
     144    return table_->getAzimuth(whichRow);
     145  }
     146  float getParAngle(int whichRow=0) {
     147    return table_->getParAngle(whichRow);
    138148  }
    139149
  • trunk/src/SDTemplates.cc

    r701 r794  
    3434#include <casa/namespace.h>
    3535#include <casa/Exceptions/Error.cc>
    36 #include <casa/Exceptions/Error2.cc>
     36//#include <casa/Exceptions/Error2.cc>
    3737#include <casa/Utilities/CountedPtr.cc>
    38 #include <casa/Utilities/CountedPtr2.cc>
     38//#include <casa/Utilities/CountedPtr2.cc>
    3939
    4040namespace asap {
     
    5353#include <casa/Arrays/Array.cc>
    5454#include <casa/Arrays/Vector.h>
    55 #include <casa/Arrays/Vector2.cc>
    56 #include <casa/Arrays/Vector.cc>
    57 #include <casa/Utilities/PtrHolder.cc>
    5855#include <casa/Utilities/BinarySearch.cc>
    5956#include <coordinates/Coordinates/FrequencyAligner.cc>
    6057#include <lattices/Lattices/Lattice.h>
    6158#include <lattices/Lattices/LatticeUtilities.cc>
    62 #include <scimath/Functionals/CompiledFunction.cc>
    63 #include <scimath/Functionals/CompiledParam.cc>
    64 #include <scimath/Mathematics/AutoDiff.h>
    65 #include <scimath/Mathematics/AutoDiffMath.h>
    6659#include <scimath/Mathematics/InterpolateArray1D.cc>
    6760#include <tables/Tables/BaseMappedArrayEngine.cc>
     
    6962template void convertArray<Bool, uChar>(Array<Bool> &, Array<uChar> const &);
    7063template void convertArray<uChar, Bool>(Array<uChar> &, Array<Bool> const &);
    71 template LogicalArray operator!=<Float>(Array<Float> const &, Float const &);
    72 template LogicalArray operator==<Float>(Array<Float> const &, Float const &);
    73 template LogicalArray operator><Float>(Array<Float> const &, Float const &);
    74 template LogicalArray operator>=<Float>(Array<Float> const &, Float const &);
     64
    7565template Array<Float>& operator/=<Float>(Array<Float>&, MaskedArray<Float> const&);
    7666template MaskedArray<Float> const& operator*=<Float>(MaskedArray<Float> const&, Float const&);
     
    9080template Float sumsquares<Float>(MaskedArray<Float> const&);
    9181template Float avdev<Float>(MaskedArray<Float> const&);
    92 template class CompiledFunction<AutoDiff<Float> >;
    93 template class CompiledParam<AutoDiff<Float> >;
    9482
    95 template class Vector<Vector<Int> >;
    96 template class Vector<Vector<Bool> >;
    97 template class Vector<Vector<String> >;
    98 template Vector<Bool>::Vector(const vector<bool> &);
    99 template Vector<Int>::Vector(const vector<int> &);
    100 template Vector<Float>::Vector(const vector<float> &);
    101 template Vector<Double>::Vector(const vector<double> &);
    102 template void Array<float>::tovector(vector<float> &) const;
    103 template void Array<Bool>::tovector(vector<bool> &) const;
    104 template void Array<Double>::tovector(vector<double> &) const;
    105 template void Array<Int>::tovector(vector<int> &) const;
    106 template void Array<std::complex<float> >::reference(const Array<std::complex<float> >&);
    10783template void LatticeUtilities::bin(MaskedArray<float>&, MaskedArray<float> const&, uInt, uInt);
    108 template class PtrHolder<Lattice<Float> >;
     84
    10985template class FrequencyAligner<Float>;
    110 template class InterpolateArray1D<Double, Float>;
    111 template Int binarySearchBrackets<Vector<Double>,Double>(Bool &, Vector<Double> const &, Double const &, uInt, Int);
     86
    11287template class BaseMappedArrayEngine<Float, Float>;
    11388
  • trunk/src/python_SDMemTable.cc

    r777 r794  
    9393    .def("_getsourcename", &SDMemTableWrapper::getSourceName,
    9494         (boost::python::arg("whichRow")=0) )
     95    .def("_getelevation", &SDMemTableWrapper::getElevation,
     96         (boost::python::arg("whichRow")=0) )
     97    .def("_getazimuth", &SDMemTableWrapper::getAzimuth,
     98         (boost::python::arg("whichRow")=0) )
     99    .def("_getparangle", &SDMemTableWrapper::getParAngle,
     100         (boost::python::arg("whichRow")=0) )
    95101    .def("_gettime", &SDMemTableWrapper::getTime,
    96102         (boost::python::arg("whichRow")=0) )
Note: See TracChangeset for help on using the changeset viewer.