Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
FitsWriterHelper.cpp File Reference
#include "FitsWriterHelper.h"
#include "ElementsKernel/Exception.h"
#include "ReaderHelper.h"
#include "Table/Table.h"
#include <CCfits/CCfits>
#include <algorithm>
#include <boost/lexical_cast.hpp>
#include <sstream>
#include <valarray>
Include dependency graph for FitsWriterHelper.cpp:

Go to the source code of this file.

Namespaces

namespace  Euclid
 
namespace  Euclid::Table
 

Functions

template<typename T >
std::string Euclid::Table::scientificFormat (const 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.
 
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.
 
template<typename T >
std::vector< T > Euclid::Table::createColumnData (const 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, int column_index, const CCfits::ExtHDU &table_hdu, long first_row)
 
template<typename T >
void Euclid::Table::populateNdArrayColumn (const Table &table, int column_index, const CCfits::ExtHDU &table_hdu, long first_row)
 
std::string Euclid::Table::getTDIM (const Table &table, int column_index)
 
void Euclid::Table::populateColumn (const Table &table, int column_index, const 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

Copyright (C) 2012-2022 Euclid Science Ground Segment

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3.0 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Date
April 23, 2014
Author
Nikolaos Apostolakos

Definition in file FitsWriterHelper.cpp.