LSSTApplications  11.0-13-gbb96280,12.1.rc1,12.1.rc1+1,12.1.rc1+2,12.1.rc1+5,12.1.rc1+8,12.1.rc1-1-g06d7636+1,12.1.rc1-1-g253890b+5,12.1.rc1-1-g3d31b68+7,12.1.rc1-1-g3db6b75+1,12.1.rc1-1-g5c1385a+3,12.1.rc1-1-g83b2247,12.1.rc1-1-g90cb4cf+6,12.1.rc1-1-g91da24b+3,12.1.rc1-2-g3521f8a,12.1.rc1-2-g39433dd+4,12.1.rc1-2-g486411b+2,12.1.rc1-2-g4c2be76,12.1.rc1-2-gc9c0491,12.1.rc1-2-gda2cd4f+6,12.1.rc1-3-g3391c73+2,12.1.rc1-3-g8c1bd6c+1,12.1.rc1-3-gcf4b6cb+2,12.1.rc1-4-g057223e+1,12.1.rc1-4-g19ed13b+2,12.1.rc1-4-g30492a7
LSSTDataManagementBasePackage
Macros | Functions
TanWcsFormatter.cc File Reference

Implementation of TanWcsFormatter class. More...

#include <string>
#include <boost/archive/binary_iarchive.hpp>
#include <boost/archive/binary_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp>
#include "wcslib/wcs.h"
#include "lsst/daf/base.h"
#include "lsst/daf/persistence.h"
#include "lsst/daf/persistence/PropertySetFormatter.h"
#include "lsst/pex/exceptions.h"
#include "lsst/log/Log.h"
#include "lsst/afw/formatters/ImageFormatter.h"
#include "lsst/afw/formatters/MaskedImageFormatter.h"
#include "lsst/afw/formatters/TanWcsFormatter.h"
#include "lsst/afw/image/TanWcs.h"

Go to the source code of this file.

Macros

#define __attribute__(x)   /*NOTHING*/
 

Functions

template<class Archive >
void serializeEigenArray (Archive &ar, Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > &m)
 Provide a function to serialise an Eigen::Matrix so we can persist the SIP matrices. More...
 

Detailed Description

Implementation of TanWcsFormatter class.

Author
$Author$
Version
$Revision$
Date
$Date$

Contact: Kian-Tat Lim (ktl@s.nosp@m.lac..nosp@m.stanf.nosp@m.ord..nosp@m.edu)

Definition in file TanWcsFormatter.cc.

Macro Definition Documentation

#define __attribute__ (   x)    /*NOTHING*/

Definition at line 39 of file TanWcsFormatter.cc.

Function Documentation

template<class Archive >
void serializeEigenArray ( Archive &  ar,
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > &  m 
)

Provide a function to serialise an Eigen::Matrix so we can persist the SIP matrices.

Definition at line 140 of file TanWcsFormatter.cc.

140  {
141  int rows = m.rows();
142  int cols = m.cols();
143  ar & rows & cols;
144  if (Archive::is_loading::value) {
145  m = Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic>(rows, cols);
146  }
147  for (int j = 0; j < m.cols(); ++j) {
148  for (int i = 0; i < m.rows(); ++i) {
149  ar & m(i,j);
150  }
151  }
152 }
tuple m
Definition: lsstimport.py:48