#include "ObitImage.h"
#include "ObitIOImageFITS.h"
#include "ObitIOImageAIPS.h"
#include "ObitAIPSDir.h"
#include "ObitSystem.h"
#include "ObitMem.h"
#include "ObitHistory.h"
Functions | |
| void | ObitImageInit (gpointer in) |
| Private: Initialize newly instantiated object. | |
| void | ObitImageClear (gpointer in) |
| Private: Deallocate members. | |
| ObitImage * | newObitImage (gchar *name) |
| Public: Constructor. | |
| ObitImage * | newObitImageScratch (ObitImage *in, ObitErr *err) |
| Public: Copy Constructor for scratch file. | |
| gconstpointer | ObitImageGetClass (void) |
| Public: ClassInfo pointer. | |
| gboolean | ObitImageSame (ObitImage *in1, ObitImage *in2, ObitErr *err) |
| Public: Do two Imagess have the same underlying structures?. | |
| ObitImage * | ObitImageZap (ObitImage *in, ObitErr *err) |
| Public: Delete underlying structures. | |
| void | ObitImageRename (ObitImage *in, ObitErr *err) |
| Public: Rename underlying structures. | |
| ObitImage * | ObitImageCopy (ObitImage *in, ObitImage *out, ObitErr *err) |
| Public: Copy (deep) constructor. | |
| void | ObitImageClone (ObitImage *in, ObitImage *out, ObitErr *err) |
| Public: Copy structure. | |
| void | ObitImageClone2 (ObitImage *in1, ObitImage *in2, ObitImage *out, ObitErr *err) |
| Public: Copy structure of in1 on grid of in2. | |
| void | ObitImageCloneMem (ObitImage *in, ObitImage *out, ObitErr *err) |
| Public: Copy structure of in to memory resident Image out. | |
| ObitIOCode | ObitImageOpen (ObitImage *in, ObitIOAccess access, ObitErr *err) |
| Public: Create ObitIO structures and open file. | |
| ObitIOCode | ObitImageClose (ObitImage *in, ObitErr *err) |
| Public: Close file and become inactive. | |
| void | ObitImageFullInstantiate (ObitImage *in, gboolean exist, ObitErr *err) |
| Public: Fully instantiate. | |
| ObitIOCode | ObitImageRead (ObitImage *in, gfloat *data, ObitErr *err) |
| Public: Read specified data. | |
| ObitIOCode | ObitImageWrite (ObitImage *in, gfloat *data, ObitErr *err) |
| Public: Write specified data. | |
| ObitIOCode | ObitImageGetPlane (ObitImage *in, gfloat *data, gint plane[5], ObitErr *err) |
| Public: Read specified image plane. | |
| ObitIOCode | ObitImagePutPlane (ObitImage *in, gfloat *data, gint plane[5], ObitErr *err) |
| Public: Write specified image plane. | |
| ObitTable * | newObitImageTable (ObitImage *in, ObitIOAccess access, gchar *tabType, glong *tabVer, ObitErr *err) |
| Public: Return an associated Table. | |
| ObitIOCode | ObitImageZapTable (ObitImage *in, gchar *tabType, glong tabVer, ObitErr *err) |
| Public: Destroy an associated Table. | |
| ObitIOCode | ObitImageCopyTables (ObitImage *in, ObitImage *out, gchar **exclude, gchar **include, ObitErr *err) |
| Public: Copy associated Tables. | |
| ObitIOCode | ObitImageUpdateTables (ObitImage *in, ObitErr *err) |
| Public: Update disk resident tables information. | |
| ObitIOCode | ObitImageIOSet (ObitImage *in, ObitErr *err) |
| Reposition IO to beginning of file. | |
| void | ObitImageSetBeamName (ObitImage *image, ObitErr *err) |
| Public: Set name etc for a beam associated with an image. | |
| void | ObitImageWriteKeyword (ObitImage *in, gchar *name, ObitInfoType type, gint32 *dim, gconstpointer data, ObitErr *err) |
| Public: Write header keyword. | |
| void | ObitImageReadKeyword (ObitImage *in, gchar *name, ObitInfoType *type, gint32 *dim, gpointer data, ObitErr *err) |
| Public: Read header keyword. | |
| void | ObitImageClassInit (void) |
| Public: Class initializer. | |
This class is derived from the ObitData base class.
This class contains an astronomical image and allows access. An ObitImage is the front end to a persistent disk resident structure.
|
|
Public: Constructor. Initializes class if needed on first call.
|
|
||||||||||||
|
Public: Copy Constructor for scratch file. A scratch Image is more or less the same as a normal Image except that it is automatically deleted on the final unreference. The output will have the underlying files of the same type as in already allocated.
|
|
||||||||||||||||||||||||
|
Public: Return an associated Table. If such an object exists, a reference to it is returned, else a new object is created and entered in the ObitTableList.
|
|
|
Public: Class initializer.
|
|
|
Private: Deallocate members. Does (recursive) deallocation of parent class members.
|
|
||||||||||||||||
|
Public: Copy structure. Output version set to floating pixels
|
|
||||||||||||||||||||
|
Public: Copy structure of in1 on grid of in2. Only sets descriptor and data buffer members on out. Suitable for memory only image, out->mySel->FileType set to OBIT_IO_MEM. Returns without error if in1 cannot be projected onto in2. Routine translated from the AIPSish 4MASS/SUB/FLATEN.FOR/FLTMSC
|
|
||||||||||||||||
|
Public: Copy structure of in to memory resident Image out. out->mySel->FileType set to OBIT_IO_MEM.
|
|
||||||||||||
|
Public: Close file and become inactive.
|
|
||||||||||||||||
|
Public: Copy (deep) constructor. Copies are made of complex members including disk files; these will be copied applying whatever selection is associated with the input. Objects should be closed on input and will be closed on output. In order for the disk file structures to be copied, the output file must be sufficiently defined that it can be written. The copy will be attempted but no errors will be logged until both input and output have been successfully opened. ObitInfoList and ObitThread members are only copied if the output object didn't previously exist. Parent class members are included but any derived class info is ignored.
|
|
||||||||||||||||||||||||
|
Public: Copy associated Tables.
|
|
||||||||||||||||
|
Public: Fully instantiate. If object has previously been opened, as demonstrated by the existance of its myIO member, this operation is a no-op. Virtual - calls actual class member
|
|
|
Public: ClassInfo pointer.
|
|
||||||||||||||||||||
|
Public: Read specified image plane. If the object is open on call it is returned open, otherwise closed. The ObitImageDesc maintains the current location in the image. This is a NOP if in is a memory only image Note: the underlying routines need more work for > 3 dimensions, descriptor plane needs to be turned into an array.
|
|
|
Private: Initialize newly instantiated object. Parent classes portions are (recursively) initialized first
|
|
||||||||||||
|
Reposition IO to beginning of file.
|
|
||||||||||||||||
|
Public: Create ObitIO structures and open file. The image descriptor is read if OBIT_IO_ReadOnly or OBIT_IO_ReadWrite and written to disk if opened OBIT_IO_WriteOnly. Update for selection (blc,trc) is only done on OBIT_IO_ReadOnly . After the file has been opened, the member image is initialized for storing the image unless member extBuffer is TRUE. The file etc. info should have been stored in the ObitInfoList: "FileType" OBIT_int scalar = OBIT_IO_FITS or OBIT_IO_AIPS or OBIT_IO_MEM (no persistent form ) for file type.
|
|
||||||||||||||||||||
|
Public: Write specified image plane. If the object is open on call it is returned open, otherwise closed. The ObitImageDesc maintains the current location in the image. This is a NOP if in is a memory only image Note: the underlying routines need more work for > 3 dimensions, descriptor plane needs to be turned into an array.
|
|
||||||||||||||||
|
Public: Read specified data. Reads row in->myDesc->row + 1; plane in->myDesc->plane + 1 A series of calls will read sequential sections of the image, either a row at a time or a plane at a time as specified to ObitImageOpen. The ObitImageDesc maintains the current location in the image. This is a NOP if in is a memory only image
|
|
||||||||||||||||||||||||||||
|
Public: Read header keyword.
|
|
||||||||||||
|
Public: Rename underlying structures. For FITS files:
|
|
||||||||||||||||
|
Public: Do two Imagess have the same underlying structures?. This test is done using values entered into the ObitInfoList in case the object has not yet been opened.
|
|
||||||||||||
|
Public: Set name etc for a beam associated with an image.
|
|
||||||||||||
|
Public: Update disk resident tables information.
|
|
||||||||||||||||
|
Public: Write specified data. Writes row in->myDesc->row + 1; plane in->myDesc->plane + 1 A series of calls will write sequential sections of the image, either a row at a time or a plane at a time as specified to ObitImageOpen. The ObitImageDesc maintains the current location in the image. This is a NOP if in is a memory only image
|
|
||||||||||||||||||||||||||||
|
Public: Write header keyword.
|
|
||||||||||||
|
Public: Delete underlying structures.
|
|
||||||||||||||||||||
|
Public: Destroy an associated Table. The table is removed from the ObitTableList but the external form may not be updated.
|
1.3.9.1