#include "fitsio.h"
#include "Obit.h"
#include "ObitIO.h"
#include "ObitTableDesc.h"
#include "ObitTableSel.h"
#include "ObitIOTableFITSDef.h"
Go to the source code of this file.
Classes | |
| struct | ObitIOTableFITS |
| ObitIOTableFITS Class structure. More... | |
| struct | ObitIOTableFITSClassInfo |
| ClassInfo Structure. More... | |
Defines | |
| #define | ObitIOTableFITSUnref(in) ObitUnref (in) |
| Macro to unreference (and possibly destroy) an ObitIOTableFITS returns a ObitIOTableImageFITS* (NULL). | |
| #define | ObitIOTableFITSRef(in) ObitRef (in) |
| Macro to reference (update reference count) an ObitIOTableFITS. | |
| #define | ObitIOTableFITSIsA(in) ObitIsA (in, ObitIOTableFITSGetClass()) |
| Macro to determine if an object is the member of this or a derived class. | |
Functions | |
| void | ObitIOTableFITSClassInit (void) |
| Public: Class initializer. | |
| ObitIOTableFITS * | newObitIOTableFITS (gchar *name, ObitInfoList *info, ObitErr *err) |
| Public: Constructor. | |
| gconstpointer | ObitIOTableFITSGetClass (void) |
| Public: ClassInfo pointer. | |
| gboolean | ObitIOTableFITSSame (ObitIO *in, ObitInfoList *in1, ObitInfoList *in2, ObitErr *err) |
| Public: Are underlying structures the same. | |
| void | ObitIOTableFITSZap (ObitIOTableFITS *in, ObitErr *err) |
| Public: Delete underlying structures. | |
| ObitIOTableFITS * | ObitIOTableFITSCopy (ObitIOTableFITS *in, ObitIOTableFITS *out, ObitErr *err) |
| Public: Copy constructor. | |
| ObitIOCode | ObitIOTableFITSOpen (ObitIOTableFITS *in, ObitIOAccess access, ObitInfoList *info, ObitErr *err) |
| Public: Open. | |
| ObitIOCode | ObitIOTableFITSClose (ObitIOTableFITS *in, ObitErr *err) |
| Public: Close. | |
| ObitIOCode | ObitIOTableFITSSet (ObitIOTableFITS *in, ObitInfoList *info, ObitErr *err) |
| Public: Init I/O. | |
| ObitIOCode | ObitIOTableFITSRead (ObitIOTableFITS *in, gfloat *data, ObitErr *err) |
| Public: Read. | |
| ObitIOCode | ObitIOTableFITSReadRow (ObitIOTableFITS *in, glong rowno, gfloat *data, ObitErr *err) |
| Public: Read specifying start row. | |
| ObitIOCode | ObitIOTableFITSWrite (ObitIOTableFITS *in, gfloat *data, ObitErr *err) |
| Public: Write. | |
| ObitIOCode | ObitIOTableFITSWriteRow (ObitIOTableFITS *in, glong rowno, gfloat *data, ObitErr *err) |
| Public: Write specifying start row. | |
| ObitIOCode | ObitIOTableFITSFlush (ObitIOTableFITS *in, ObitErr *err) |
| Public: Flush. | |
| ObitIOCode | ObitIOTableFITSReadDescriptor (ObitIOTableFITS *in, ObitErr *err) |
| Public: Read Descriptor. | |
| ObitIOCode | ObitIOTableFITSWriteDescriptor (ObitIOTableFITS *in, ObitErr *err) |
| Public: Write Descriptor. | |
| void | ObitIOTableFITSCreateBuffer (gfloat **data, glong *size, ObitIOTableFITS *in, ObitInfoList *info, ObitErr *err) |
| Public: Create buffer. | |
This class provides an interface to the cfitsio package for FITS images.
This class is derived from the ObitIO class. Related functions are in the ObitIOTableFITSUtil module.
|
|
Macro to determine if an object is the member of this or a derived class. Returns TRUE if a member, else FALSE in = object to reference |
|
|
Macro to reference (update reference count) an ObitIOTableFITS. returns a ObitIOTableFITS*. in = object to reference |
|
|
Macro to unreference (and possibly destroy) an ObitIOTableFITS returns a ObitIOTableImageFITS* (NULL). in = object to unreference. |
|
||||||||||||||||
|
Public: Constructor. Initializes class on the first call.
|
|
|
Public: Class initializer.
|
|
||||||||||||
|
Public: Close.
|
|
||||||||||||||||
|
Public: Copy constructor. The result will have pointers to the more complex members. Parent class members are included but any derived class info is ignored.
|
|
||||||||||||||||||||||||
|
Public: Create buffer. Should be called after ObitIO is opened.
|
|
||||||||||||
|
Public: Flush.
|
|
|
Public: ClassInfo pointer. Initializes class if needed on first call.
|
|
||||||||||||||||||||
|
Public: Open. The file etc. info should have been stored in the ObitInfoList. The table descriptor is read if ReadOnly or ReadOnly and written to disk if opened WriteOnly. For accessing FITS files the following entries in the ObitInfoList are used:
|
|
||||||||||||||||
|
Public: Read. When OBIT_IO_EOF is returned all data has been read (then is no new data in buffer) and the I/O has been closed. If there are existing rows in the buffer marked as modified ("_status" column value =1) the buffer is rewritten to disk before the new buffer is read.
|
|
||||||||||||
|
Public: Read Descriptor. If the table version number is 0, then the highest numbered table of the same name is used.
|
|
||||||||||||||||||||
|
Public: Read specifying start row. When OBIT_IO_EOF is returned all data has been read (then is no new data in buffer) and the I/O has been closed. If there are existing rows in the buffer marked as modified ("_status" column value =1) the buffer is rewritten to disk before the new buffer is read.
|
|
||||||||||||||||||||
|
Public: Are underlying structures the same. This test is done using values entered into the ObitInfoList in case the object has not yet been opened.
|
|
||||||||||||||||
|
Public: Init I/O.
|
|
||||||||||||||||
|
Public: Write. When OBIT_IO_EOF is returned the data has been written, data in data is ignored and the I/O is closed.
|
|
||||||||||||
|
Public: Write Descriptor. If the table version number is 0, then the highest numbered table of the same name +1 is used.
|
|
||||||||||||||||||||
|
Public: Write specifying start row.
|
|
||||||||||||
|
Public: Delete underlying structures.
|
1.3.9.1