CARMA C++
|
Class for binary access to MIRIAD uv-data. More...
#include <carma/sdp/MiriadUV.h>
Public Member Functions | |
MiriadUVBin () | |
Constructor. More... | |
virtual void | uvclose () |
Close a UV dataset. More... | |
virtual void | uvnext () |
Go to next record. More... | |
void | uvopen (const char *name, const char *mode) |
Open a UV dataset. More... | |
bool | uvprobvr (const char *name, char &type, int &length, bool &update) |
Gives change information about a variable. More... | |
virtual void | uvread (double preamble[5], float *data, int *flags, int n, int &nread) |
Read UV data. More... | |
virtual void | uvset (const char *object, const char *type, int n, double p1, double p2, double p3) |
Set UV dataset processing options. More... | |
virtual void | uvwread (float *data, int *flags, int n, int &nread) |
Similar to uvread but for 'wide'. More... | |
virtual void | uvwrite (const double preamble[5], const float *data, const int *flags, int n) |
Write UV data. More... | |
virtual void | uvwwrite (const float *data, const int *flags, int n) |
Similar to uvwrite but for 'wide'. More... | |
virtual | ~MiriadUVBin () |
Destructor. More... | |
virtual void | uvgetvra (const char *name, char *buf, size_t n) |
Get ASCII. More... | |
virtual void | uvgetvrj (const char *name, int &buf) |
Get one short. More... | |
virtual void | uvgetvrj (const char *name, int *buf, int n) |
Get array of shorts (Note use of int array!). More... | |
virtual void | uvgetvri (const char *name, int &buf) |
Get an integer value. More... | |
virtual void | uvgetvri (const char *name, int *buf, int n) |
Get an array of ints. More... | |
virtual void | uvgetvrr (const char *name, float &buf) |
Get a float value. More... | |
virtual void | uvgetvrr (const char *name, float *buf, int n) |
Get an array of floats. More... | |
virtual void | uvgetvrd (const char *name, double &buf) |
Get a double value. More... | |
virtual void | uvgetvrd (const char *name, double *buf, int n) |
Get an array of doubles. More... | |
virtual void | uvgetvrc (const char *name, float &buf) |
Get a complex value. More... | |
virtual void | uvgetvrc (const char *name, float *buf, int n) |
Get an array of complex values. More... | |
virtual void | uvputvra (const char *name, const char *buf) |
Output an ASCII buffer. More... | |
virtual void | uvputvrj (const char *name, const int *buf, int n) |
Output an array of shorts. More... | |
virtual void | uvputvrj (const char *name, const int buf) |
Output a short value. More... | |
virtual void | uvputvri (const char *name, const int buf) |
Output an int value. More... | |
virtual void | uvputvri (const char *name, const int *buf, int n) |
Output an array of ints. More... | |
virtual void | uvputvrr (const char *name, const float buf) |
Output a float value. More... | |
virtual void | uvputvrr (const char *name, const float *buf, int n) |
Output an array of floats. More... | |
virtual void | uvputvrd (const char *name, const double buf) |
Output a double value. More... | |
virtual void | uvputvrd (const char *name, const double *buf, int n) |
Output an array of doubles. More... | |
virtual void | uvputvrc (const char *name, const float &buf) |
Output a complex value. More... | |
virtual void | uvputvrc (const char *name, const float *buf, int n) |
Output an array of complex values. More... | |
![]() | |
MiriadUV () | |
Constructor. More... | |
virtual | ~MiriadUV () |
Destructor. More... | |
![]() | |
const std::string & | getFileName () const |
Return name of dataset. More... | |
int | getHandle () const |
Return handle for dataset. More... | |
bool | isOld () const |
Is this an 'old' dataset? More... | |
bool | isOpen () const |
Is dataset open? More... | |
bool | justGather () |
Miriad () | |
Constructor. More... | |
const std::string & | name () const |
Return name of dataset. More... | |
void | setGather (const bool gather) |
virtual | ~Miriad () |
Destructor. More... | |
bool | isHistoryOpen () const |
Is history files open? More... | |
![]() | |
MiriadBin () | |
Constructor. More... | |
virtual | ~MiriadBin () |
Destrcutor. More... | |
virtual void | hisopen (const char *status) |
Opens history file. More... | |
virtual void | hisclose () |
Close history file. More... | |
virtual bool | hisread (char *line, int linelength) |
Read one line from history file. More... | |
virtual void | hiswrite (const char *line) |
Write one line to history file. More... | |
virtual void | hopen (const char *name, const char *status, int &iostat) |
Open a MIRIAD dataset. More... | |
virtual void | hclose () |
Close a MIRIAD dataset. More... | |
virtual void | haccess (int &handle, const char *name, const char *status, int &iostat) |
Open as a file some part of a data set. More... | |
virtual void | hreada (int handle, char *buf, int buflen, int &iostat) |
Read ascii string terminated by a newline. More... | |
virtual void | hdaccess (int handle, int &iostat) |
Close file. More... | |
void | hwritea (int handle, const char *buf, int buflen, int &iostat) |
Write ASCII text to file. More... | |
Static Public Attributes | |
static bool | error |
![]() | |
static bool | error |
Additional Inherited Members | |
![]() | |
void | mirclose () |
Sets the isOpen_ and hisOpen flags to false and tno_ to -1. More... | |
void | miropen (int tno, const std::string &name, bool isOld) |
Sets various variables relating to an open dataset. More... | |
void | setHistoryIsOpen (bool isopen) |
Sets the flag indicating the history file status. More... | |
Class for binary access to MIRIAD uv-data.
Definition at line 177 of file MiriadUV.h.
carma::sdp::MiriadUVBin::MiriadUVBin | ( | ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Close a UV dataset.
Implements carma::sdp::MiriadUV.
|
virtual |
Get ASCII.
Implements carma::sdp::MiriadUV.
|
virtual |
Get a complex value.
Reimplemented from carma::sdp::MiriadUV.
Definition at line 204 of file MiriadUV.h.
|
virtual |
Get an array of complex values.
Implements carma::sdp::MiriadUV.
|
virtual |
Get a double value.
Reimplemented from carma::sdp::MiriadUV.
Definition at line 201 of file MiriadUV.h.
|
virtual |
Get an array of doubles.
Implements carma::sdp::MiriadUV.
|
virtual |
Get an integer value.
Reimplemented from carma::sdp::MiriadUV.
Definition at line 196 of file MiriadUV.h.
|
virtual |
Get an array of ints.
Implements carma::sdp::MiriadUV.
|
virtual |
Get one short.
(Note use of int variable!).
Reimplemented from carma::sdp::MiriadUV.
Definition at line 194 of file MiriadUV.h.
|
virtual |
Get array of shorts (Note use of int array!).
Implements carma::sdp::MiriadUV.
|
virtual |
Get a float value.
Reimplemented from carma::sdp::MiriadUV.
Definition at line 198 of file MiriadUV.h.
|
virtual |
Get an array of floats.
Implements carma::sdp::MiriadUV.
|
virtual |
Go to next record.
Implements carma::sdp::MiriadUV.
|
virtual |
Open a UV dataset.
Implements carma::sdp::MiriadUV.
|
virtual |
Gives change information about a variable.
name | Name of variable. |
type | Type of variable. (a, j, i, r, d, c). |
length | Length of variable. |
update | If true, the variable has changed. |
Implements carma::sdp::MiriadUV.
|
virtual |
Output an ASCII buffer.
Implements carma::sdp::MiriadUV.
|
virtual |
Output a complex value.
Reimplemented from carma::sdp::MiriadUV.
Definition at line 221 of file MiriadUV.h.
|
virtual |
Output an array of complex values.
Implements carma::sdp::MiriadUV.
|
virtual |
Output a double value.
Reimplemented from carma::sdp::MiriadUV.
Definition at line 218 of file MiriadUV.h.
|
virtual |
Output an array of doubles.
Implements carma::sdp::MiriadUV.
|
virtual |
Output an int value.
Reimplemented from carma::sdp::MiriadUV.
Definition at line 212 of file MiriadUV.h.
|
virtual |
Output an array of ints.
Implements carma::sdp::MiriadUV.
|
virtual |
|
virtual |
Output a short value.
Reimplemented from carma::sdp::MiriadUV.
Definition at line 210 of file MiriadUV.h.
|
virtual |
Output a float value.
Reimplemented from carma::sdp::MiriadUV.
Definition at line 215 of file MiriadUV.h.
|
virtual |
Output an array of floats.
Implements carma::sdp::MiriadUV.
|
virtual |
|
virtual |
Set UV dataset processing options.
Implements carma::sdp::MiriadUV.
|
virtual |
Similar to uvread but for 'wide'.
Implements carma::sdp::MiriadUV.
|
virtual |
|
virtual |
Similar to uvwrite but for 'wide'.
Implements carma::sdp::MiriadUV.