| LSSTApplications
    20.0.0
    LSSTDataManagementBasePackage | 
 
 
 
Go to the documentation of this file.
   22 #ifndef ASTSHIM_FITSTABLE_H 
   23 #define ASTSHIM_FITSTABLE_H 
   43             : 
Table(reinterpret_cast<AstTable *>(astFitsTable(const_cast<AstObject *>(header.
getRawPtr()),
 
   44                                                               "%s", options.c_str()))) {
 
   48             : 
Table(reinterpret_cast<AstTable *>(astFitsTable(NULL,
 
   49                                                               "%s", options.c_str()))) {
 
   62         auto *rawFitsChan = 
reinterpret_cast<AstObject *
>(astGetTableHeader(
getRawPtr()));
 
   67         return Object::fromAstObject<FitsChan>(rawFitsChan, 
false);
 
   88         for (
auto &
val : shape) {
 
   91         ndarray::Array<double, 1, 1> coldata = ndarray::allocate(ndarray::makeVector(totnel));
 
   93         astGetColumnData(
getRawPtr(), column.
c_str(), AST__NANF, AST__NAN, totnel*
sizeof(
double),
 
   94                          coldata.getData(), &nelem);
 
  103       explicit FitsTable(AstFitsTable *rawFitsTable) : 
Table(reinterpret_cast<AstTable *>(rawFitsTable)) {
 
  106               os << 
"this is a " << 
getClassName() << 
", which is not a FitsTable";
 
  
FitsTable(FitsTable const &)=default
ndarray::Array< double, 1, 1 > getColumnData1D(std::string const &column)
void assertOK(AstObject *rawPtr1=nullptr, AstObject *rawPtr2=nullptr)
Throw std::runtime_error if AST's state is bad.
FitsTable & operator=(FitsTable &&)=default
FitsTable(std::string const &options="")
A specialized form of Channel which reads and writes FITS header cards.
std::vector< int > columnShape(std::string const &column)
Abstract base class for all AST objects.
FitsTable(AstFitsTable *rawFitsTable)
Construct a FitsTable from a raw AstFitsTable.
FitsTable(FitsTable &&)=default
FitsTable(FitsChan const &header, std::string const &options="")
int getNRow() const
Get NRow: The number of rows currently in the Table.
std::string getClassName() const
Get Class: the name of the class (e.g.
FitsTable & operator=(FitsTable const &)=delete
std::shared_ptr< FitsChan > getTableHeader() const
AST wrapper classes and functions.
std::size_t columnSize(std::string const &column)
AstObject const  * getRawPtr() const
Get the raw AST pointer.
DataType columnType(std::string const &column) const