Alexandria  2.25.0
SDC-CH common library for the Euclid project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions | Variables
FitsWriterHelper.cpp File Reference
#include "FitsWriterHelper.h"
#include "ElementsKernel/Exception.h"
#include "Table/Table.h"
#include <CCfits/CCfits>
#include <algorithm>
#include <boost/lexical_cast.hpp>
#include <iomanip>
#include <sstream>
#include <valarray>
Include dependency graph for FitsWriterHelper.cpp:

Go to the source code of this file.

Namespaces

 Euclid
 
 Euclid::Table
 

Functions

template<typename T >
std::string Euclid::Table::scientificFormat (T value)
 
size_t Euclid::Table::maxWidth (const Table &table, size_t column_index)
 
size_t Euclid::Table::maxWidthScientific (const Table &table, size_t column_index)
 
std::vector< std::stringEuclid::Table::getAsciiFormatList (const Table &table)
 Returns a vector with strings representing the FITS ASCII table formats for the given table. More...
 
template<typename T >
size_t Euclid::Table::vectorSize (const Table &table, size_t column_index)
 
template<typename T >
size_t Euclid::Table::ndArraySize (const Table &table, size_t column_index)
 
template<typename T >
static std::string Euclid::Table::GenericScalarFormat (const Table &, size_t)
 
template<typename T >
static std::string Euclid::Table::GenericVectorFormat (const Table &table, size_t column_index)
 
template<typename T >
static std::string Euclid::Table::GenericNdFormat (const Table &table, size_t column_index)
 
std::vector< std::stringEuclid::Table::getBinaryFormatList (const Table &table)
 Returns a vector with strings representing the FITS binary table formats for the given table. More...
 
template<typename T >
std::vector< T > Euclid::Table::createColumnData (const Euclid::Table::Table &table, size_t column_index)
 
template<typename T >
std::vector< std::valarray< T > > Euclid::Table::createVectorColumnData (const Euclid::Table::Table &table, size_t column_index)
 
template<typename T >
std::vector< T > Euclid::Table::createSingleValueVectorColumnData (const Euclid::Table::Table &table, size_t column_index)
 
template<typename T >
std::vector< std::valarray< T > > Euclid::Table::createNdArrayColumnData (const Euclid::Table::Table &table, size_t column_index)
 
template<typename T >
std::vector< T > Euclid::Table::createSingleNdArrayVectorColumnData (const Euclid::Table::Table &table, size_t column_index)
 
template<typename T >
void Euclid::Table::populateVectorColumn (const Table &table, size_t column_index, CCfits::ExtHDU &table_hdu, long first_row)
 
template<typename T >
void Euclid::Table::populateNdArrayColumn (const Table &table, size_t column_index, CCfits::ExtHDU &table_hdu, long first_row)
 
std::string Euclid::Table::getTDIM (const Table &table, size_t column_index)
 
void Euclid::Table::populateColumn (const Table &table, size_t column_index, CCfits::ExtHDU &table_hdu, long first_row)
 

Variables

const std::map
< std::type_index,
std::function< std::string(const
Table &, size_t)> > 
Euclid::Table::BinaryFormatter
 

Detailed Description

Date
April 23, 2014
Author
Nikolaos Apostolakos

Definition in file FitsWriterHelper.cpp.