#include "fitsio.h"
#include "ObitIO.h"
#include "ObitOTFDesc.h"
#include "ObitOTFSel.h"
#include "ObitIOOTFFITSDef.h"
Go to the source code of this file.
Classes | |
struct | ObitIOOTFFITS |
ObitIOOTFFITS Class structure. More... | |
struct | ObitIOOTFFITSClassInfo |
ClassInfo Structure. More... | |
Defines | |
#define | ObitIOOTFFITSUnref(in) ObitUnref (in) |
Macro to unreference (and possibly destroy) an ObitIOOTFFITS returns a ObitIOOTFFITS* (NULL). | |
#define | ObitIOOTFFITSRef(in) ObitRef (in) |
Macro to reference (update reference count) an ObitIOOTFFITS. | |
#define | ObitIOOTFFITSIsA(in) ObitIsA (in, ObitIOOTFFITSGetClass()) |
Macro to determine if an object is the member of this or a derived class. | |
Functions | |
void | ObitIOOTFFITSClassInit (void) |
Public: Class initializer. | |
ObitIOOTFFITS * | newObitIOOTFFITS (gchar *name, ObitInfoList *info, ObitErr *err) |
Public: Constructor. | |
gconstpointer | ObitIOOTFFITSGetClass (void) |
Public: ClassInfo pointer. | |
ObitIOOTFFITS * | ObitIOOTFFITSCopy (ObitIOOTFFITS *in, ObitIOOTFFITS *out, ObitErr *err) |
Public: Copy constructor. | |
gboolean | ObitIOOTFFITSSame (ObitIO *in, ObitInfoList *in1, ObitInfoList *in2, ObitErr *err) |
Public: Are underlying structures the same. | |
void | ObitIOOTFFITSRename (ObitIO *in, ObitInfoList *info, ObitErr *err) |
Public: Rename underlying structures. | |
void | ObitIOOTFFITSZap (ObitIOOTFFITS *in, ObitErr *err) |
Public: Delete underlying structures. | |
ObitIOCode | ObitIOOTFFITSOpen (ObitIOOTFFITS *in, ObitIOAccess access, ObitInfoList *info, ObitErr *err) |
Public: Open. | |
ObitIOCode | ObitIOOTFFITSClose (ObitIOOTFFITS *in, ObitErr *err) |
Public: Close. | |
ObitIOCode | ObitIOOTFFITSSet (ObitIOOTFFITS *in, ObitInfoList *info, ObitErr *err) |
Public: Init I/O. | |
ObitIOCode | ObitIOOTFFITSRead (ObitIOOTFFITS *in, gfloat *data, ObitErr *err) |
Public: Read. | |
ObitIOCode | ObitIOOTFFITSWrite (ObitIOOTFFITS *in, gfloat *data, ObitErr *err) |
Public: Write. | |
ObitIOCode | ObitIOOTFFITSFlush (ObitIOOTFFITS *in, ObitErr *err) |
Public: Flush. | |
ObitIOCode | ObitIOOTFFITSReadDescriptor (ObitIOOTFFITS *in, ObitErr *err) |
Public: Read Descriptor. | |
ObitIOCode | ObitIOOTFFITSWriteDescriptor (ObitIOOTFFITS *in, ObitErr *err) |
Public: Write Descriptor. | |
void | ObitIOOTFFITSCreateBuffer (gfloat **data, glong *size, ObitIOOTFFITS *in, ObitInfoList *info, ObitErr *err) |
Public: Create buffer. | |
Obit * | newObitIOOTFFITSTable (ObitIOOTFFITS *in, ObitIOAccess access, gchar *tabType, glong *tabVer, ObitErr *err) |
Public: Create an associated Table Typed as base class to avoid problems. | |
ObitIOCode | ObitIOOTFFITSUpdateTables (ObitIOOTFFITS *in, ObitInfoList *info, ObitErr *err) |
Public: Update disk resident tables information. |
This class provides an interface to the cfitsio package for FITS images. This class is derived from the ObitIO class.
|
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 ObitIOOTFFITS. returns a ObitIOOTFFITS*. in = object to reference |
|
Macro to unreference (and possibly destroy) an ObitIOOTFFITS returns a ObitIOOTFFITS* (NULL). in = object to unreference. |
|
Public: Constructor. Initializes class on the first call.
|
|
Public: Create an associated Table Typed as base class to avoid problems. If such an object exists, a reference to it is returned, else a new object is created and entered in the ObitTableList. Returned object is typed an Obit to prevent circular definitions between the ObitTable and the ObitIO classes.
|
|
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 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. The number read will be mySel->nRecPIO (until the end of the selected range of records in which case it will be smaller). The first row number after a read is myDesc->firstRec and the number of rows attempted is mySel->numRecRead; actual value saved as myDesc->numRecBuff. When OBIT_IO_EOF is returned all data has been read (then is no new data in data) and the I/O has been closed.
|
|
Public: Read Descriptor. Also reads the Array Geometry table.
|
|
Public: Rename underlying structures. New name information is given on the info member:
|
|
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: Update disk resident tables information. Nothing is needed for FITS files.
|
|
Public: Write. The data in the buffer will be written starting at record myDesc->firstRec and the number written will be myDesc->numRecBuff which should not exceed mySel->nRecPIO if the internal buffer is used. myDesc->firstRec will be maintained and need not be changed for sequential writing.
|
|
Public: Write Descriptor. Also writes the Array Geometry table.
|
|
Public: Delete underlying structures. Delete the whole FITS file.
|