#include "fitsio.h"
#include "ObitIO.h"
#include "ObitImageDesc.h"
#include "ObitIOImageFITSDef.h"
#include "ObitClassDef.h"
#include "ObitIOClassDef.h"
Go to the source code of this file.
Classes | |
| struct | ObitIOImageFITS |
| ObitIOImageFITS Class structure. More... | |
| struct | ObitIOImageFITSClassInfo |
| ClassInfo Structure. More... | |
Defines | |
| #define | ObitIOImageFITSUnref(in) ObitUnref (in) |
| Macro to unreference (and possibly destroy) an ObitIOImageFITS returns a ObitIOImageImageFITS* (NULL). | |
| #define | IOImageFITSRef(in) ObitRef (in) |
| Macro to reference (update reference count) an IOImageFITS. | |
| #define | IOImageFITSIsA(in) ObitIsA (in, IOImageFITSGetClass()) |
| Macro to determine if an object is the member of this or a derived class. | |
Functions | |
| void | ObitIOImageFITSClassInit (void) |
| Public: Class initializer. | |
| ObitIOImageFITS * | newObitIOImageFITS (gchar *name, ObitInfoList *info, ObitErr *err) |
| Public: Constructor. | |
| gconstpointer | ObitIOImageFITSGetClass (void) |
| Public: ClassInfo pointer. | |
| gboolean | ObitIOImageFITSSame (ObitIO *in, ObitInfoList *in1, ObitInfoList *in2, ObitErr *err) |
| Public: Are underlying structures the same. | |
| void | ObitIOImageFITSRename (ObitIO *in, ObitInfoList *info, ObitErr *err) |
| Public: Rename underlying structures. | |
| void | ObitIOImageFITSZap (ObitIOImageFITS *in, ObitErr *err) |
| Public: Delete underlying structures. | |
| ObitIOImageFITS * | ObitIOImageFITSCopy (ObitIOImageFITS *in, ObitIOImageFITS *out, ObitErr *err) |
| Public: Copy constructor. | |
| ObitIOImageFITS * | freeObitIOImageFITS (ObitIOImageFITS *in) |
| Public: Unconditional destructor. | |
| ObitIOCode | ObitIOImageFITSOpen (ObitIOImageFITS *in, ObitIOAccess access, ObitInfoList *info, ObitErr *err) |
| Public: Open. | |
| ObitIOCode | ObitIOImageFITSClose (ObitIOImageFITS *in, ObitErr *err) |
| Public: Close. | |
| ObitIOCode | ObitIOImageFITSSet (ObitIOImageFITS *in, ObitInfoList *info, ObitErr *err) |
| Public: Init I/O. | |
| ObitIOCode | ObitIOImageFITSRead (ObitIOImageFITS *in, gfloat *data, ObitErr *err) |
| Public: Read. | |
| ObitIOCode | ObitIOImageFITSWrite (ObitIOImageFITS *in, gfloat *data, ObitErr *err) |
| Public: Write. | |
| ObitIOCode | ObitIOImageFITSFlush (ObitIOImageFITS *in, ObitErr *err) |
| Public: Flush. | |
| ObitIOCode | ObitIOImageFITSReadDescriptor (ObitIOImageFITS *in, ObitErr *err) |
| Public: Read Descriptor. | |
| ObitIOCode | ObitIOImageFITSWriteDescriptor (ObitIOImageFITS *in, ObitErr *err) |
| Public: Write Descriptor. | |
| void | ObitIOImageFITSCreateBuffer (gfloat **data, glong *size, ObitIOImageFITS *in, ObitInfoList *info, ObitErr *err) |
| Public: Create buffer. | |
| Obit * | newObitIOImageFITSTable (ObitIOImageFITS *in, ObitIOAccess access, gchar *tabType, glong *tabVer, ObitErr *err) |
| Public: Create an associated Table Typed as base class to avoid problems. | |
| ObitIOCode | ObitIOImageFITSUpdateTables (ObitIOImageFITS *in, ObitInfoList *info, ObitErr *err) |
| Public: Update disk resident tables information. | |
| void | ObitIOImageFITSUpdateScale (ObitIOImageFITS *in, gfloat quant, ObitErr *err) |
| Public: Update header BSCALE,BZERO. | |
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 IOImageFITS. returns a IOImageFITS*. in = object to reference |
|
|
Macro to unreference (and possibly destroy) an ObitIOImageFITS returns a ObitIOImageImageFITS* (NULL). in = object to unreference. |
|
|
Public: Unconditional destructor.
|
|
||||||||||||||||
|
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. Not actually used for Images. 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 image descriptor is read if ReadOnly or ReadWrite and written to disk if opened WriteOnly. For accessing FITS files the following entries in the ObitInfoList are used:
|
|
||||||||||||||||
|
Public: Read. Reads row in->myDesc->row + 1; plane in->myDesc->plane + 1 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.
|
|
||||||||||||||||
|
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 header BSCALE,BZERO.
|
|
||||||||||||||||
|
Public: Update disk resident tables information. Nothing is needed for FITS files.
|
|
||||||||||||||||
|
Public: Write. Writes row in->myDesc->row + 1; plane in->myDesc->plane + 1 Writing partial images is only supported in row at a time mode. When OBIT_IO_EOF is returned the image has been written, data in data is ignored and the I/O is closed.
|
|
||||||||||||
|
Public: Write Descriptor.
|
|
||||||||||||
|
Public: Delete underlying structures. Delete the whole FITS file.
|
1.3.9.1