Ignore:
Timestamp:
04/05/06 14:31:47 (18 years ago)
Author:
mar637
Message:

implemented data export for the asap2 Scantable as in Ticket #4.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STAsciiWriter.h

    r823 r988  
    11//#---------------------------------------------------------------------------
    2 //# SDAsciiWriter.h: ASAP class to write out single dish spectra as image FITS
     2//# STAsciiWriter.h: ASAP class to write out single dish spectra as image FITS
    33//#---------------------------------------------------------------------------
    44//# Copyright (C) 2004
     
    2929//# $Id$
    3030//#---------------------------------------------------------------------------
    31 #ifndef SDASCIIWRITER_H
    32 #define SDASCIIWRITER_H
     31#ifndef STASCIIWRITER_H
     32#define STASCIIWRITER_H
    3333
    3434#include <casa/aips.h>
    3535#include <casa/BasicSL/String.h>
    36 #include <SDMemTable.h>
     36#include <casa/ostream.h>
    3737
    38 #include "SDLog.h"
     38#include "Scantable.h"
     39#include "Logger.h"
    3940
    4041template<class T> class casa::Vector;
    41 
     42class casa::MDirection;
    4243
    4344namespace asap {
    4445
    45 class SDAsciiWriter : public SDLog {
     46class STAsciiWriter : public Logger {
    4647public:
    4748// Constructor
    48   SDAsciiWriter();
     49  STAsciiWriter();
    4950
    5051// Destructor
    51   ~SDAsciiWriter();
     52  ~STAsciiWriter();
    5253
    5354// Write out ascii table
    54   casa::Bool write(const SDMemTable& table, const casa::String& name, casa::Bool toStokes);
     55  casa::Bool write(const Scantable& table, const casa::String& name);
    5556
    5657private:
    57    casa::Int convertStokes(casa::Int val);
    58    casa::String formatDirection(const casa::Vector<casa::Double>& lonLat);
     58  casa::String formatDirection(const casa::MDirection& md) const;
     59  template <class T>
     60  void addLine(std::ostream& of, const casa::String& lbl,
     61               const T& value);
    5962};
    6063
Note: See TracChangeset for help on using the changeset viewer.