Created
August 14, 2015 07:29
-
-
Save tammojan/7cc75bfb5b151fef13a6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -I '.*\$Id.*' -r casacore-2.0.1/casa/Arrays/ArrayBase.cc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/casa/Arrays/ArrayBase.cc | |
95c95 | |
< void ArrayBase::baseReform (ArrayBase& tmp, const IPosition& len) const | |
--- | |
> void ArrayBase::baseReform (ArrayBase& tmp, const IPosition& len, Bool strict) const | |
98c98 | |
< if (len.product() != Int64(nelements())) { | |
--- | |
> if (strict && len.product() != Int64(nelements())) { | |
116a117 | |
> tmp.nels_p = len.product(); | |
diff -I '.*\$Id.*' -r casacore-2.0.1/casa/Arrays/ArrayBase.h /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/casa/Arrays/ArrayBase.h | |
193,194c193,195 | |
< // Reform the array to a shape with the same nr of elements. | |
< void baseReform (ArrayBase& tmp, const IPosition& shape) const; | |
--- | |
> // Reform the array to a shape with the same nr of elements. If nonStrict then | |
> // caller assumes responsibility for not overrunning storage (avoid or use with extreme care). | |
> void baseReform (ArrayBase& tmp, const IPosition& shape, Bool strict=True) const; | |
diff -I '.*\$Id.*' -r casacore-2.0.1/casa/Arrays/Array.h /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/casa/Arrays/Array.h | |
170a171,172 | |
> typedef T ElementType; | |
> | |
346c348,376 | |
< | |
--- | |
> | |
> // Having an array that can be reused without requiring reallocation can | |
> // be useful for large arrays. The method reformOrResize permits this | |
> // usage. | |
> // | |
> // The reformOrResize method first attempts to reform the matrix so that | |
> // it reuses the existing storage for an array with a new shape. If the | |
> // existing storage will not hold the new shape, then the method will | |
> // resize the array when resizeIfNeeded is true; if a resize is needed and | |
> // resizeIfNeeded is false, then an ArrayConformanceError is thrown. The | |
> // copyDataIfNeeded parameter is passed to resize if resizing is performed. | |
> // resizePercentage is the percent of additional storage to be addeed when | |
> // a resize is performed; this allows the allocations to be amortized when | |
> // the caller expects to be callin this method again in the future. The | |
> // parameter is used to define an allocation shape which differs from the | |
> // newShape by increasing the last dimension by resizePercentage percent | |
> // (i.e., lastDim = *lastDim * (100 + resizePercentage)) / 100). If | |
> // resizePercentage <= 0 then resizing uses newShape as is. | |
> // | |
> // To truncate the array so that it no longer holds additional storage, | |
> // use the resize method. | |
> | |
> void reformOrResize (const IPosition & newShape, | |
> Bool resizeIfNeeded, | |
> Bool copyDataIfNeeded = True, | |
> uInt resizePercentage = 0); | |
> | |
> size_t capacity () const; // returns the number of elements allocated. | |
> | |
diff -I '.*\$Id.*' -r casacore-2.0.1/casa/Arrays/Array.tcc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/casa/Arrays/Array.tcc | |
451c451,453 | |
< template<class T> Array<T> Array<T>::reform(const IPosition &len) const | |
--- | |
> template<class T> | |
> Array<T> | |
> Array<T>::reform(const IPosition &len) const | |
455a458,466 | |
> | |
> if (len.product () > (Int64) (data_p->nelements())){ | |
> String message = | |
> String::format ("Array<T>::reform() - insufficient storage for nonStrict reform: " | |
> "nElementInAllocation=%d, nElementsRequested=%d", | |
> data_p->nelements(), len.product()); | |
> throw ArrayConformanceError(message); | |
> } | |
> | |
457c468 | |
< baseReform (tmp, len); | |
--- | |
> baseReform (tmp, len, False); | |
459a471,545 | |
> } | |
> | |
> template<class T> | |
> void | |
> Array<T>::reformOrResize (const IPosition & newShape, | |
> Bool resizeIfNeeded, | |
> Bool copyDataIfNeeded, | |
> uInt resizePercentage) | |
> { | |
> DebugAssert(ok(), ArrayError); | |
> | |
> if (newShape == shape()){ | |
> return; // No op | |
> } | |
> | |
> if (!contiguous_p){ | |
> String message = "Array<T>::reformOrResize() - array must be contiguous"; | |
> throw ArrayConformanceError(message); | |
> } | |
> | |
> // Check if reform is possible and needed. | |
> // If not needed, simply return a copy. | |
> | |
> Bool resizeNeeded = (newShape.product() > (Int64) (data_p->nelements())); | |
> | |
> if (resizeNeeded){ | |
> | |
> // Insufficient storage so resize required | |
> | |
> if (resizeNeeded && ! resizeIfNeeded){ | |
> | |
> // Resize not permitted so throw ArrayConformanceError | |
> | |
> String message = | |
> String::format ("Array<T>::reformOrResize() - insufficient storage for reform: " | |
> "nElementInAllocation=%d, nElementsRequested=%d", | |
> data_p->nelements(), newShape.product()); | |
> throw ArrayConformanceError(message); | |
> } | |
> | |
> // Resize the array either exactly or with padding. | |
> | |
> if (resizePercentage <= 0){ | |
> | |
> // Perform an exact resize | |
> | |
> resize (newShape, copyDataIfNeeded); | |
> | |
> } else { | |
> | |
> // Padding was requested so resize to match the padded shape | |
> // and then reform it to use the desired shape. | |
> | |
> IPosition paddedShape; | |
> paddedShape = newShape; | |
> paddedShape.last() = (paddedShape.last() * (100 + resizePercentage)) / 100; | |
> resize (paddedShape, copyDataIfNeeded); | |
> | |
> // Reform it | |
> | |
> baseReform (* this, newShape, False); | |
> setEndIter(); | |
> } | |
> } else { | |
> | |
> baseReform (* this, newShape, False); | |
> setEndIter(); | |
> } | |
> } | |
> | |
> template<class T> | |
> size_t | |
> Array<T>::capacity () const | |
> { | |
> return data_p->nelements(); // returns the number of elements allocated. | |
diff -I '.*\$Id.*' -r casacore-2.0.1/casa/BasicMath/test/tMathNaN.cc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/casa/BasicMath/test/tMathNaN.cc | |
211c211 | |
< inputs.version ("$Revision$"); | |
--- | |
> inputs.version ("$Revision: 21505 $"); | |
diff -I '.*\$Id.*' -r casacore-2.0.1/casa/BasicSL/Complexfwd.h /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/casa/BasicSL/Complexfwd.h | |
44a45 | |
> #ifdef AIPS_CXX11 | |
45a47,51 | |
> #else | |
> namespace std { | |
> template<typename T> struct complex; | |
> } | |
> #endif | |
diff -I '.*\$Id.*' -r casacore-2.0.1/casa/Exceptions/CasaErrorTools.cc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/casa/Exceptions/CasaErrorTools.cc | |
59a60 | |
> #include <execinfo.h> | |
diff -I '.*\$Id.*' -r casacore-2.0.1/casa/Exceptions/Error2.cc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/casa/Exceptions/Error2.cc | |
109c109 | |
< String AipsError::getLastStackTrace (); | |
--- | |
> String AipsError::getLastStackTrace () | |
diff -I '.*\$Id.*' -r casacore-2.0.1/casa/IO/IO_1.html /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/casa/IO/IO_1.html | |
27c27,29 | |
< <!-- hhmts start -->Last modified: Mon Oct 27 14:15:00 CET 2014 <!-- hhmts end --> | |
--- | |
> <!-- hhmts start --> | |
> Last modified: Wed Nov 20 14:34:05 1996 | |
> <!-- hhmts end --> | |
diff -I '.*\$Id.*' -r casacore-2.0.1/casa/IO/MemoryIO.cc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/casa/IO/MemoryIO.cc | |
32,33d31 | |
< #include <iostream> | |
< #include <sstream> | |
141,146c139,142 | |
< std::ostringstream oss; | |
< oss << "MemoryIO::read - incorrect number of bytes read: " | |
< << std::endl | |
< << " size=" << size << ", used=" << itsUsed | |
< << ", pos=" << itsPosition << ", left=" << bytesLeft; | |
< throw AipsError (oss.str()); | |
--- | |
> String m = String::format ("MemoryIO::read - incorrect number of bytes read:\n" | |
> " size=%u, used=%lld, pos=%lld, left=%lld", | |
> size, itsUsed, itsPosition, bytesLeft); | |
> throw (AipsError (m)); | |
149,154c145,148 | |
< std::ostringstream oss; | |
< oss << "MemoryIO::read - buffer position is invalid:" | |
< << std::endl | |
< << " size=" << size << ", used=" << itsUsed | |
< << ", pos=" << itsPosition << ", left=" << bytesLeft; | |
< throw AipsError (oss.str()); | |
--- | |
> String m = String::format ("MemoryIO::read - buffer position is invalid:\n" | |
> " size=%u, used=%lld, pos=%lld, left=%lld", | |
> size, itsUsed, itsPosition, bytesLeft); | |
> throw (AipsError (m)); | |
diff -I '.*\$Id.*' -r casacore-2.0.1/casa/IO/test/CMakeLists.txt /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/casa/IO/test/CMakeLists.txt | |
19d18 | |
< tMultiHDF5 | |
diff -I '.*\$Id.*' -r casacore-2.0.1/casa/IO/test/tAipsIO.cc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/casa/IO/test/tAipsIO.cc | |
33a34 | |
> #include <casacore/casa/IO/MultiHDF5.h> | |
diff -I '.*\$Id.*' -r casacore-2.0.1/casa/Quanta/Quantum.h /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/casa/Quanta/Quantum.h | |
31,32d30 | |
< | |
< //# Includes | |
345,346c343,355 | |
< // Get value in specified units | |
< Qtype getValue(const Unit &other) const; | |
--- | |
> | |
> // Get value in specified units. If the <src>other</src> units do not conform to | |
> // the units of this object and requireConform is True, an exception is thrown, | |
> // with the following excepions: | |
> // angle to/from time conversions are implicitly supported, frequency to/from | |
> // wavelength conversions are implicitly supported. | |
> // Note, I added requireConform and made the default value False for backward | |
> // compatibility. However, I think that ultimately requireConform should be removed | |
> // and an exception should be thrown if the units do not conform. It's not clear to | |
> // me what this was not in the original implementation; it's much to easy for | |
> // non-conformation bugs to slip by unnoticed. - dmehring 09feb2015 | |
> Qtype getValue(const Unit &other, Bool requireConform=False) const; | |
> | |
diff -I '.*\$Id.*' -r casacore-2.0.1/casa/Quanta/Quantum.tcc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/casa/Quanta/Quantum.tcc | |
227,235c227,264 | |
< Qtype Quantum<Qtype>::getValue(const Unit &other) const { | |
< Double d1 = other.getValue().getFac() / | |
< qUnit.getValue().getFac(); // SUN native overloading problems | |
< if (qUnit.getValue() == UnitVal::ANGLE) { | |
< if (other.getValue() == UnitVal::TIME) | |
< d1 *= C::circle/C::day; | |
< } else if (qUnit.getValue() == UnitVal::TIME) { | |
< if (other.getValue() == UnitVal::ANGLE) | |
< d1 *= C::day/C::circle; | |
--- | |
> Qtype Quantum<Qtype>::getValue(const Unit &other, Bool requireConform) const { | |
> UnitVal myType = qUnit.getValue(); | |
> UnitVal otherType = other.getValue(); | |
> Double myFac = myType.getFac(); | |
> Double otherFac = otherType.getFac(); | |
> Double d1 = otherFac/myFac; | |
> if (myType == otherType) { | |
> return (Qtype)(qVal/d1); | |
> } | |
> if ( | |
> myType == UnitVal::ANGLE | |
> && otherType == UnitVal::TIME | |
> ) { | |
> d1 *= C::circle/C::day; | |
> } | |
> else if ( | |
> myType == UnitVal::TIME | |
> && otherType == UnitVal::ANGLE | |
> ) { | |
> d1 *= C::day/C::circle; | |
> } | |
> else if( | |
> myType == 1/UnitVal::TIME | |
> && otherType == UnitVal::LENGTH | |
> ) { | |
> return (Qtype)(C::c/qVal/myFac/otherFac); | |
> } | |
> else if( | |
> myType == UnitVal::LENGTH | |
> && otherType == 1/UnitVal::TIME | |
> ) { | |
> return (Qtype)(C::c/qVal/myFac/otherFac); | |
> } | |
> else if (requireConform) { | |
> ThrowCc( | |
> "From/to units not consistent. Cannot convert " | |
> + qUnit.getName() + " to " + other.getName() | |
> ); | |
360d388 | |
< | |
362d389 | |
< | |
diff -I '.*\$Id.*' -r casacore-2.0.1/casa/Quanta/test/tQuantum.cc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/casa/Quanta/test/tQuantum.cc | |
26,27c26 | |
< //# $Id$ | |
< | |
--- | |
> //# $Id: tQuantum.cc 21090 2011-06-01 10:01:28Z gervandiepen $ | |
275a275,308 | |
> { | |
> // getValue() | |
> Bool thrown = False; | |
> try { | |
> // doesn't throw by default | |
> Quantum<Double> q(1, "Hz"); | |
> q.getValue("K"); | |
> } | |
> catch (const AipsError& x) { | |
> thrown = True; | |
> } | |
> AlwaysAssert(! thrown, AipsError); | |
> | |
> try { | |
> Quantum<Double> q(1, "Hz"); | |
> q.getValue("K", True); | |
> } | |
> catch (const AipsError& x) { | |
> thrown = True; | |
> } | |
> AlwaysAssert(thrown, AipsError); | |
> | |
> Quantum<Double> q(1, "m"); | |
> AlwaysAssert(q.getValue("km") == 0.001, AipsError); | |
> q = Quantum<Double>(1, "h"); | |
> AlwaysAssert(q.getValue("deg") == 15, AipsError); | |
> q = Quantum<Double>(30, "deg"); | |
> AlwaysAssert(near(q.getValue("min"), 120.0), AipsError); | |
> q = Quantum<Double>(1.5, "GHz"); | |
> AlwaysAssert(near(q.getValue("cm"), 19.9862, 1e-5), AipsError); | |
> q = Quantum<Double>(3, "mm"); | |
> AlwaysAssert(near(q.getValue("MHz"), 99930.8, 1e-5), AipsError); | |
> | |
> } | |
diff -I '.*\$Id.*' -r casacore-2.0.1/casa/Utilities/GenSort.tcc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/casa/Utilities/GenSort.tcc | |
38c38,39 | |
< #ifdef _OPENMP | |
--- | |
> // (CAS-7378) | |
> #ifdef DISABLED_FOR_4_4 | |
80,81c81,85 | |
< #ifdef _OPENMP | |
< #pragma omp parallel for | |
--- | |
> /* TODO only uses 2 threads of the group, should use tasks | |
> * only parallelize when work time ~ barrier spin time (3ms) | |
> * otherwise oversubscription kills performance */ | |
> #ifdef DISABLED_FOR_4_4 | |
> #pragma omp parallel for if (nr > 50000) | |
242c246 | |
< #ifdef _OPENMP | |
--- | |
> #ifdef DISABLED_FOR_4_4 | |
247d250 | |
< omp_set_num_threads (nthr); | |
264,265c267,268 | |
< #ifdef _OPENMP | |
< #pragma omp parallel for | |
--- | |
> #ifdef DISABLED_FOR_4_4 | |
> #pragma omp parallel for num_threads(nthr) | |
349c352 | |
< #ifdef _OPENMP | |
--- | |
> #ifdef DISABLED_FOR_4_4 | |
437c440 | |
< #ifdef _OPENMP | |
--- | |
> #ifdef DISABLED_FOR_4_4 | |
511c514 | |
< #ifdef _OPENMP | |
--- | |
> #ifdef DISABLED_FOR_4_4 | |
581c584 | |
< #ifdef _OPENMP | |
--- | |
> #ifdef DISABLED_FOR_4_4 | |
586d588 | |
< omp_set_num_threads (nthr); | |
603,604c605,606 | |
< #ifdef _OPENMP | |
< #pragma omp parallel for | |
--- | |
> #ifdef DISABLED_FOR_4_4 | |
> #pragma omp parallel for num_threads(nthr) | |
674c676 | |
< #ifdef _OPENMP | |
--- | |
> #ifdef DISABLED_FOR_4_4 | |
758,759c760,764 | |
< #ifdef _OPENMP | |
< #pragma omp parallel for | |
--- | |
> /* TODO only uses 2 threads of the group, should use tasks | |
> * only parallelize when work time ~ barrier spin time (3ms) | |
> * otherwise oversubscription kills performance */ | |
> #ifdef DISABLED_FOR_4_4 | |
> #pragma omp parallel for if (nr > 50000) | |
diff -I '.*\$Id.*' -r casacore-2.0.1/casa/version.h /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/casa/version.h | |
34c34 | |
< #define CASACORE_VERSION "2.0.0" | |
--- | |
> #define CASACORE_VERSION "2.0.2" | |
Only in casacore-2.0.1/: casacore | |
Only in casacore-2.0.1/: changescripts | |
Only in casacore-2.0.1/: CHANGES.md | |
diff -I '.*\$Id.*' -r casacore-2.0.1/cmake/cmake_assay /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/cmake/cmake_assay | |
35c35 | |
< $rootdir/build-tools/casacore_assay "$@" | |
--- | |
> $rootdir/scons-tools/casacore_assay "$@" | |
diff -I '.*\$Id.*' -r casacore-2.0.1/cmake/FindCFITSIO.cmake /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/cmake/FindCFITSIO.cmake | |
36c36 | |
< HINTS ${CFITSIO_ROOT_DIR} PATH_SUFFIXES include include/cfitsio include/libcfitsio0) | |
--- | |
> PATHS ${CFITSIO_ROOT_DIR} PATH_SUFFIXES include include/cfitsio) | |
38c38 | |
< HINTS ${CFITSIO_ROOT_DIR} PATH_SUFFIXES lib) | |
--- | |
> PATHS ${CFITSIO_ROOT_DIR} PATH_SUFFIXES lib) | |
diff -I '.*\$Id.*' -r casacore-2.0.1/cmake/FindHDF5.cmake /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/cmake/FindHDF5.cmake | |
205c205 | |
< HINTS | |
--- | |
> PATHS | |
diff -I '.*\$Id.*' -r casacore-2.0.1/cmake/FindWCSLIB.cmake /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/cmake/FindWCSLIB.cmake | |
36c36 | |
< HINTS ${WCSLIB_ROOT_DIR} PATH_SUFFIXES include) | |
--- | |
> PATHS ${WCSLIB_ROOT_DIR} PATH_SUFFIXES include) | |
38c38 | |
< HINTS ${WCSLIB_ROOT_DIR} PATH_SUFFIXES lib) | |
--- | |
> PATHS ${WCSLIB_ROOT_DIR} PATH_SUFFIXES lib) | |
diff -I '.*\$Id.*' -r casacore-2.0.1/CMakeLists.txt /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/CMakeLists.txt | |
10c10 | |
< set(PROJECT_VERSION_PATCH 1) | |
--- | |
> set(PROJECT_VERSION_PATCH 0) | |
14a15,30 | |
> SET(NO_SOVERSION FALSE CACHE BOOL "do not add version information to shared libraries") | |
> set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") | |
> if( NOT NO_SOVERSION ) | |
> set( epochdelta 1385614800 ) | |
> execute_process( COMMAND perl -e "$t=time( )-${epochdelta};$z=$t & 0xff; $y=($t>>8)&0xff; $x=($t>>16)&0xffff; print \"$x.$y.$z\"" | |
> OUTPUT_VARIABLE __casa_soversion ) | |
> set(casa_soversion ${__casa_soversion} CACHE STRING "version for shared objects") | |
> message( STATUS "Shared object version number ${casa_soversion}" ) | |
> file( WRITE ${CMAKE_INSTALL_PREFIX}/casa_sover.txt | |
> "# generated by casacore/CMakeList.txt... Do not edit\n" | |
> "${casa_soversion}\n" | |
> ) | |
> else( ) | |
> message( STATUS "User disabled shared library versioning" ) | |
> endif( ) | |
> | |
67a84 | |
> set(CMAKE_INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib" ) | |
231c248 | |
< include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}) | |
--- | |
> include_directories (${CMAKE_SOURCE_DIR}/.. ${CMAKE_BINARY_DIR}) | |
304,309c321,336 | |
< set_target_properties( | |
< casa_${module} | |
< PROPERTIES | |
< VERSION "${PROJECT_VERSION}" | |
< SOVERSION "${PROJECT_VERSION_MAJOR}" | |
< ) | |
--- | |
> if (casa_soversion) | |
> set(CMAKE_INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib" ) | |
> set_target_properties( | |
> casa_${module} | |
> PROPERTIES | |
> VERSION "${casa_soversion}" | |
> SOVERSION "${casa_soversion}" | |
> ) | |
> else( ) | |
> set_target_properties( | |
> casa_${module} | |
> PROPERTIES | |
> VERSION "${PROJECT_VERSION}" | |
> SOVERSION "${PROJECT_VERSION_MAJOR}" | |
> ) | |
> endif( ) | |
345,373d371 | |
< | |
< | |
< # List of build variables and defaults. | |
< # BUILD_PYTHON NO | |
< # ENABLE_SHARED YES | |
< # ENABLE_RPATH YES | |
< # CXX11 NO | |
< # ENABLE_TABLELOCKING YES | |
< # USE_HDF5 NO | |
< # USE_FFTW NO | |
< # USE_THREADS NO | |
< # USE_OPENMP NO | |
< # USE_STACKTRACE NO | |
< # DATA_DIR "" | |
< # | |
< # List of possibly used external packages and where | |
< # CFITSIO fits | |
< # WCSLIB coordinates | |
< # DL casa (optional) | |
< # READLINE casa (optional) | |
< # HDF5 casa (optional) | |
< # BISON tables,images | |
< # FLEX tables,images | |
< # LAPACK scimath | |
< # BLAS scimath | |
< # FFTW scimath (optional) | |
< # BOOST python (Boost-Python only) | |
< # PYTHON python | |
< # NUMPY python | |
diff -I '.*\$Id.*' -r casacore-2.0.1/coordinates/Coordinates/CoordinateSystem.cc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/coordinates/Coordinates/CoordinateSystem.cc | |
3463a3464,3469 | |
> if (pc->type() == Coordinate::SPECTRAL) { | |
> SpectralCoordinate* sc = dynamic_cast<SpectralCoordinate*>(pc); | |
> if (sc->isTabular()) { | |
> string += " (tab)"; | |
> } | |
> } | |
diff -I '.*\$Id.*' -r casacore-2.0.1/coordinates/Coordinates/FITSCoordinateUtil.cc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/coordinates/Coordinates/FITSCoordinateUtil.cc | |
594c594 | |
< delete [] tmp; | |
--- | |
> delete tmp; | |
diff -I '.*\$Id.*' -r casacore-2.0.1/coordinates/makefile /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/coordinates/makefile | |
3,5c3,10 | |
< # Use the generic AIPS++ package makefile. | |
< #----------------------------------------- | |
< include $(word 1, $(AIPSPATH))/code/install/makefile.pkg | |
--- | |
> # Use the generic AIPS++ class implementation makefile. | |
> #------------------------------------------------------ | |
> include $(word 1, $(AIPSPATH))/code/install/makefile.imp | |
> | |
> # Set up a parallel make if PARALLEL_MAKE is defined in makedefs. | |
> ifdef PARALLEL_MAKE | |
> MAKE := $(PARALLEL_MAKE) | |
> endif | |
diff -I '.*\$Id.*' -r casacore-2.0.1/doxygen.cfg /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/doxygen.cfg | |
2c2 | |
< PROJECT_NUMBER = $Rev$ | |
--- | |
> PROJECT_NUMBER = $Rev: 20931 $ | |
27d26 | |
< CASACORE_NO_AUTO_TEMPLATES \ | |
31c30 | |
< HAVE_HDF5 \ | |
--- | |
> HAVE_LIBHDF5 \ | |
50c49 | |
< INPUT = mainpage.dox casa coordinates derivedmscal fits images lattices measures meas ms msfits python scimath tables | |
--- | |
> INPUT = mainpage.dox casa components coordinates derivedmscal fits images lattices measures ms msfits scimath tables | |
52c51 | |
< INPUT_FILTER = build-tools/doxygen_pp | |
--- | |
> INPUT_FILTER = scons-tools/doxygen_pp | |
54,57d52 | |
< | |
< #FILE_PATTERNS = MVAngle0.dout | |
< #INPUT = doc | |
< #OUTPUT_DIRECTORY = doc1 | |
diff -I '.*\$Id.*' -r casacore-2.0.1/fits/FITS/blockio.cc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/fits/FITS/blockio.cc | |
179,183c179,184 | |
< // iobuffer was added with version 3.181... | |
< // cfitsio 3.03-3.14 do not have this... | |
< // However, something like CFITSIO_VERSION 3.03 is greek to CPP. | |
< // So assume that by 1-Apr-2015 all sites use a sufficiently new cfitsio. | |
< free((fptr->Fptr)->iobuffer); // free memory for I/O buffers | |
--- | |
> // iobuffer was added with version 3.181... cfitsio 3.03-3.14 do not have this... | |
> // cfitsio 3.03 defines CFITSIO_VERSION to be 3.03 (which is greek to CPP)... | |
> // sometime after 3.181, a translator came along and added CFITSIO_MINOR as a separate #define | |
> #ifdef CFITSIO_MINOR | |
> free((fptr->Fptr)->iobuffer); // free memory for I/O buffers | |
> #endif | |
diff -I '.*\$Id.*' -r casacore-2.0.1/fits/FITS/hdu.tcc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/fits/FITS/hdu.tcc | |
769c769 | |
< delete [] extname_x; | |
--- | |
> delete extname_x; | |
Only in casacore-2.0.1/: .gitignore | |
diff -I '.*\$Id.*' -r casacore-2.0.1/images/Images/ExtendImage.h /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/images/Images/ExtendImage.h | |
34a35 | |
> #include <casacore/casa/Utilities/PtrHolder.h> | |
41d41 | |
< | |
190,191c190,191 | |
< ImageInterface<T>* itsImagePtr; | |
< ExtendLattice<T>* itsExtLatPtr; | |
--- | |
> PtrHolder<ImageInterface<T> > itsImagePtr; | |
> PtrHolder<ExtendLattice<T> > itsExtLatPtr; | |
diff -I '.*\$Id.*' -r casacore-2.0.1/images/Images/ExtendImage.tcc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/images/Images/ExtendImage.tcc | |
62c62 | |
< itsExtLatPtr = new ExtendLattice<T> (image, newShape, newAxes, stretchAxes); | |
--- | |
> itsExtLatPtr.set(new ExtendLattice<T> (image, newShape, newAxes, stretchAxes)); | |
73,76c73,74 | |
< itsImagePtr (other.itsImagePtr->cloneII()) | |
< { | |
< itsExtLatPtr = new ExtendLattice<T> (*other.itsExtLatPtr); | |
< } | |
--- | |
> itsImagePtr (other.itsImagePtr->cloneII()), | |
> itsExtLatPtr(new ExtendLattice<T> (*other.itsExtLatPtr)) {} | |
79,83c77 | |
< ExtendImage<T>::~ExtendImage() | |
< { | |
< delete itsImagePtr; | |
< delete itsExtLatPtr; | |
< } | |
--- | |
> ExtendImage<T>::~ExtendImage() {} | |
90,93c84,85 | |
< delete itsImagePtr; | |
< itsImagePtr = other.itsImagePtr->cloneII(); | |
< delete itsExtLatPtr; | |
< itsExtLatPtr = new ExtendLattice<T> (*other.itsExtLatPtr); | |
--- | |
> itsImagePtr.set(other.itsImagePtr->cloneII()); | |
> itsExtLatPtr.set(new ExtendLattice<T> (*other.itsExtLatPtr)); | |
diff -I '.*\$Id.*' -r casacore-2.0.1/images/Images/FITSQualityImage.cc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/images/Images/FITSQualityImage.cc | |
77d76 | |
< pPixelMask_p (0), | |
167,172c166,173 | |
< delete fitsdata_p; | |
< fitsdata_p=0; | |
< delete fitserror_p; | |
< fitserror_p=0; | |
< delete pPixelMask_p; | |
< pPixelMask_p = 0; | |
--- | |
> if (fitsdata_p) { | |
> delete fitsdata_p; | |
> fitsdata_p=0; | |
> } | |
> if (fitserror_p){ | |
> delete fitserror_p; | |
> fitserror_p=0; | |
> } | |
diff -I '.*\$Id.*' -r casacore-2.0.1/images/Images/ImageFITS2Converter.cc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/images/Images/ImageFITS2Converter.cc | |
1676d1675 | |
< fitsOut = 0; | |
diff -I '.*\$Id.*' -r casacore-2.0.1/images/Images/ImageOpener.cc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/images/Images/ImageOpener.cc | |
105,114c105,112 | |
< // Skip AipsIO's object length, magicval, and string length. | |
< if (nread >= 30) { | |
< String str1(buf+12, 14); | |
< if (str1 == "CompoundImage-") { | |
< String str2(buf+26, 4); | |
< if (str2 == "Conc") { | |
< return IMAGECONCAT; | |
< } else if (str2 == "Expr") { | |
< return IMAGEEXPR; | |
< } | |
--- | |
> // Ignore AipsIO's object length, magicval, and string length. | |
> String str1(buf+12, 14); | |
> if (str1 == "CompoundImage-") { | |
> String str2(buf+26, 4); | |
> if (str2 == "Conc") { | |
> return IMAGECONCAT; | |
> } else if (str2 == "Expr") { | |
> return IMAGEEXPR; | |
diff -I '.*\$Id.*' -r casacore-2.0.1/images/Images/ImageRegrid.tcc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/images/Images/ImageRegrid.tcc | |
161c161 | |
< Quantity outpix = min(Quantity(inc[0], units[0]), Quantity(inc[1], units[1])); | |
--- | |
> Quantity outpix = min(Quantity(abs(inc[0]), units[0]), Quantity(abs(inc[1]), units[1])); | |
178,179c178,182 | |
< << "You are regridding an image whose beam is not well sampled by the " | |
< << "pixel size. Total flux can be lost when regridding such " | |
--- | |
> << "You are regridding an image whose beam minor axis " | |
> << inbeam | |
> << " is not well sampled by the " | |
> << "pixel size (input=" << inpix << ", output=" << outpix << "). " | |
> << "Total flux can be lost when regridding such " | |
diff -I '.*\$Id.*' -r casacore-2.0.1/images/Images/ImageStatistics.tcc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/images/Images/ImageStatistics.tcc | |
428,429c428,435 | |
< String minPosString = CoordinateUtil::formatCoordinate (minPos_p, cSys, precision_); | |
< String maxPosString = CoordinateUtil::formatCoordinate (maxPos_p, cSys, precision_); | |
--- | |
> // one of minPos_p or maxPos_p will be empty for fit-to-half stats | |
> String minPosString, maxPosString; | |
> if (! minPos_p.empty()) { | |
> minPosString = CoordinateUtil::formatCoordinate (minPos_p, cSys, precision_); | |
> } | |
> if (! maxPos_p.empty()) { | |
> maxPosString = CoordinateUtil::formatCoordinate (maxPos_p, cSys, precision_); | |
> } | |
diff -I '.*\$Id.*' -r casacore-2.0.1/images/Images/test/CMakeLists.txt /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/images/Images/test/CMakeLists.txt | |
17a18,28 | |
> | |
> decon_test.im/logtable/table.info | |
> decon_test.im/logtable/table.lock | |
> decon_test.im/logtable/table.dat | |
> decon_test.im/logtable/table.f0 | |
> decon_test.im/table.info | |
> decon_test.im/table.lock | |
> decon_test.im/table.dat | |
> decon_test.im/table.f0_TSM0 | |
> decon_test.im/table.f0 | |
> | |
Only in /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/images/Images/test: decon_test.im | |
diff -I '.*\$Id.*' -r casacore-2.0.1/images/Images/test/dImageStatistics.cc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/images/Images/test/dImageStatistics.cc | |
128c128 | |
< inputs.version ("$Revision$"); | |
--- | |
> inputs.version ("$Revision: 21578 $"); | |
diff -I '.*\$Id.*' -r casacore-2.0.1/images/Images/test/dImageSummary.cc /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/images/Images/test/dImageSummary.cc | |
49c49 | |
< inputs.version ("$Revision$"); | |
--- | |
> inputs.version ("$Revision: 21512 $"); | |
diff -I '.*\$Id.*' -r casacore-2.0.1/images/Images/test/mexinputtest.fits /home/dijkema/opt/casacore/casa_release-4_4/casacore-4_4/images/Images/test/mexinputtest.fits | |
2c2 | |
< B B B B B B" |