Main Page | Class List | Directories | File List | Class Members | File Members

ObitAIPSCat.c File Reference

ObitAIPSCat class function definitions. More...

#include <sys/types.h>
#include <time.h>
#include <math.h>
#include <string.h>
#include "ObitAIPS.h"
#include "ObitAIPSCat.h"
#include "ObitTableDesc.h"
#include "ObitFile.h"

Classes

struct  ObitAIPSCatDHDR
 Structure to contain information about the structure of the AIPS header file. More...
union  FBLANKequiv

Functions

void ObitAIPSCatImageGetDesc (ObitImageDesc *desc, gchar *buffer, ObitErr *err)
 Public: Convert AIPS header file data to an ObitImageDesc.
void ObitAIPSCatImageSetDesc (ObitImageDesc *desc, gchar *buffer, gboolean init, ObitAIPSDirCatEntry *dirEntry, ObitErr *err)
 Public: Convert an ObitImageDesc to AIPS header file data.
void ObitAIPSCatUVGetDesc (ObitUVDesc *desc, gchar *buffer, ObitErr *err)
 Public: Convert AIPS header file data to an ObitUVDesc.
void ObitAIPSCatUVSetDesc (ObitUVDesc *desc, gchar *buffer, gboolean init, ObitAIPSDirCatEntry *dirEntry, ObitErr *err)
 Public: Convert an ObitUVDesc to AIPS header file data.
void ObitAIPSCatGetTable (ObitTableList *tableList, gchar *buffer, gint user, gint disk, gint cno, ObitErr *err)
 Public: Copy AIPS header to an ObitTableList.
void ObitAIPSCatSetTable (ObitTableList *tableList, gchar *buffer, ObitErr *err)
 Public: Copy an ObitTableList to AIPS table header.
void ObitAIPSCatTableGetDesc (ObitTableDesc *desc, gchar tabType[3], gint tabVer, AIPSint controlBlock[256], AIPSint record[256], ObitErr *err)
 Public: Convert AIPS Table header to an ObitTableDesc.
void ObitAIPSCatTableSetDesc (ObitTableDesc *desc, gboolean init, gchar tabType[3], gint tabVer, AIPSint controlBlock[256], AIPSint record[256], ObitErr *err)
 Public: Convert an ObitTableDesc to AIPS table header.
void ObitAIPSCatInitDHDR (void)
 Public: Initialize AIPS Header info object.
gint ObitAIPSCatOffset (gchar *keyword)
 Public: Return catalog header offset for by keyword.
void ObitAIPSCatDummy (gint disk, gint user, gchar Aname[13], gchar Aclass[7], gchar Atype[3], gint seq, gint cno, ObitErr *err)
 Public: Write dummy AIPS header.
void ObitAIPSCatRename (gint disk, gint user, gint cno, gchar *newName, gchar *newClass, gint newSeq, ObitErr *err)
 Public: Rename cataloged name, class, seq.


Detailed Description

ObitAIPSCat class function definitions.


Function Documentation

void ObitAIPSCatDummy gint  disk,
gint  user,
gchar  Aname[13],
gchar  Aclass[7],
gchar  Atype[3],
gint  seq,
gint  cno,
ObitErr err
 

Public: Write dummy AIPS header.

Parameters:
disk disk number.
user AIPS user number.
Aname AIPS name.
Aclass AIPS class.
Atype AIPS file type (MA, UV, SC).
seq AIPS sequence number.
cno AIPS catalog slot number
err Obit error stack.

void ObitAIPSCatGetTable ObitTableList tableList,
gchar *  buffer,
gint  user,
gint  disk,
gint  cno,
ObitErr err
 

Public: Copy AIPS header to an ObitTableList.

Parameters:
tableList The ObitTableList to be updated. Entries not already present in tableList will be entered with a NULL pointer for the Table.
buffer A buffer of AIPS_NBPS char with the contents of the AIPS header file.
user AIPS user number.
disk AIPS disk number.
cno AIPS catalog slot number.
err ObitErr structure to report errors.

void ObitAIPSCatImageGetDesc ObitImageDesc desc,
gchar *  buffer,
ObitErr err
 

Public: Convert AIPS header file data to an ObitImageDesc.

Parameters:
desc The Image descriptor to be updated.
buffer A buffer of AIPS_NBPS char with the contents of the AIPS header file.
err ObitErr structure to report errors.

void ObitAIPSCatImageSetDesc ObitImageDesc desc,
gchar *  buffer,
gboolean  init,
ObitAIPSDirCatEntry dirEntry,
ObitErr err
 

Public: Convert an ObitImageDesc to AIPS header file data.

Parameters:
desc The Image descriptor to be updated.
buffer A buffer of AIPS_NBPS char with the contents of the AIPS header file.
init If true, initialize the contents of buffer before converting.
dirEntry Structure with catalog directory with file name information.
err ObitErr structure to report errors.

void ObitAIPSCatInitDHDR void   ) 
 

Public: Initialize AIPS Header info object.

Uses 0 relative values rather than AIPS 1-rel. This is more-or-less AIPS routine $APLSUB/VHDRIN.FOR

gint ObitAIPSCatOffset gchar *  keyword  ) 
 

Public: Return catalog header offset for by keyword.

Parameters:
keyword name of keyword.
Returns:
0-rel offset in AIPS catalog header, -1 => not found

void ObitAIPSCatRename gint  disk,
gint  user,
gint  cno,
gchar *  newName,
gchar *  newClass,
gint  newSeq,
ObitErr err
 

Public: Rename cataloged name, class, seq.

Parameters:
disk Disk number
user AIPS user number.
cno Slot number to be renamed
newName New AIPS name (12 characters)
newClass New AIPS Class (6 characters)
newSeq New AIPS sequence
err Obit error stack.

void ObitAIPSCatSetTable ObitTableList tableList,
gchar *  buffer,
ObitErr err
 

Public: Copy an ObitTableList to AIPS table header.

For AIPS tables, names must be of the form "AIPS XX" where XX is the table type.

Parameters:
tableList The ObitTableList to be updated.
buffer A buffer of AIPS_NBPS char with the contents of the AIPS header file.
err ObitErr structure to report errors.

void ObitAIPSCatTableGetDesc ObitTableDesc desc,
gchar  tabType[3],
gint  tabVer,
AIPSint  controlBlock[256],
AIPSint  record[256],
ObitErr err
 

Public: Convert AIPS Table header to an ObitTableDesc.

Column labels, units and any keyword value pairs are not dealt with; this routine needs to be coordinated with ObitIOTableAIPS::ObitIOTableAIPSReadDescriptor.

Parameters:
desc The Table descriptor to be updated.
tabType AIPS two character type code
tabVer AIPS Table version.
controlBlock AIPS table control block.
record Second "record" with size and type info.
err ObitErr structure to report errors.

void ObitAIPSCatTableSetDesc ObitTableDesc desc,
gboolean  init,
gchar  tabType[3],
gint  tabVer,
AIPSint  controlBlock[256],
AIPSint  record[256],
ObitErr err
 

Public: Convert an ObitTableDesc to AIPS table header.

Parameters:
desc The Table descriptor to be updated.
init If true, initialize the contents of buffers before converting.
tabType AIPS two character type code
tabVer AIPS Table version.
controlBlock AIPS table control block.
record Second "record" with size and type info.
err ObitErr structure to report errors.

void ObitAIPSCatUVGetDesc ObitUVDesc desc,
gchar *  buffer,
ObitErr err
 

Public: Convert AIPS header file data to an ObitUVDesc.

Parameters:
desc The UV descriptor to be updated.
buffer A buffer of AIPS_NBPS char with teh contents of the AIPS header file.
err ObitErr structure to report errors.

void ObitAIPSCatUVSetDesc ObitUVDesc desc,
gchar *  buffer,
gboolean  init,
ObitAIPSDirCatEntry dirEntry,
ObitErr err
 

Public: Convert an ObitUVDesc to AIPS header file data.

Parameters:
desc The UV descriptor to be updated.
buffer A buffer of AIPS_NBPS char with the contents of the AIPS header file.
init If true, initialize the contents of buffer before converting.
dirEntry Structure with catalog directory wile file name information.
err ObitErr structure to report errors.


Generated on Fri Aug 31 22:13:04 2007 for Obit by  doxygen 1.3.9.1