NEP 2.7.0
NetCDF Extension Pack
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions | Variables
fitsdispatch.h File Reference

Public types and prototypes for the FITS UDF dispatch layer. More...

#include "config.h"
#include "ncdispatch.h"
#include "nep.h"

Go to the source code of this file.

Data Structures

struct  NC_FITS_VAR_INFO
 
struct  NC_FITS_FILE_INFO
 

Macros

#define NC_FORMATX_NC_FITS   NC_FORMATX_UDF0
 
#define FITS_MAGIC_LEN   6
 
#define FITS_INIT_OK()   (NC_FITS_initialize() != NULL)
 
#define FITS_INIT_AND_ASSIGN(ret)
 

Typedefs

typedef struct NC_FITS_VAR_INFO NC_FITS_VAR_INFO_T
 
typedef struct NC_FITS_FILE_INFO NC_FITS_FILE_INFO_T
 

Functions

int NC_FITS_open (const char *path, int mode, int basepe, size_t *chunksizehintp, void *parameters, const NC_Dispatch *, int)
 
int NC_FITS_abort (int ncid)
 
int NC_FITS_close (int ncid, void *ignore)
 
int NC_FITS_inq_format (int ncid, int *formatp)
 
int NC_FITS_inq_format_extended (int ncid, int *formatp, int *modep)
 
int NC_FITS_get_vara (int ncid, int varid, const size_t *start, const size_t *count, void *value, nc_type)
 
NC_Dispatch * NC_FITS_initialize (void)
 
int NC_FITS_finalize (void)
 

Variables

const NC_Dispatch * FITS_dispatch_table
 

Detailed Description

Public types and prototypes for the FITS UDF dispatch layer.

Author
Edward Hartnett
Date
2026-06-28

Macro Definition Documentation

◆ FITS_INIT_AND_ASSIGN

#define FITS_INIT_AND_ASSIGN (   ret)
Value:
do { \
(ret) = (NC_FITS_initialize() != NULL) ? NC_NOERR : NC_EINVAL; \
} while(0)
NC_Dispatch * NC_FITS_initialize(void)
Definition fitsdispatch.c:131

◆ FITS_INIT_OK

#define FITS_INIT_OK ( )    (NC_FITS_initialize() != NULL)

◆ FITS_MAGIC_LEN

#define FITS_MAGIC_LEN   6

FITS magic number length (6 bytes: "SIMPLE")

◆ NC_FORMATX_NC_FITS

#define NC_FORMATX_NC_FITS   NC_FORMATX_UDF0

FITS format uses UDF3 slot for dispatch table model field (see nep.h for slot allocation)

Typedef Documentation

◆ NC_FITS_FILE_INFO_T

Per-file FITS state with CFITSIO integration

◆ NC_FITS_VAR_INFO_T

Per-variable FITS info: which HDU and (for tables) which column.

Function Documentation

◆ NC_FITS_abort()

int NC_FITS_abort ( int  ncid)
extern

◆ NC_FITS_close()

int NC_FITS_close ( int  ncid,
void *  ignore 
)
extern

◆ NC_FITS_finalize()

int NC_FITS_finalize ( void  )
extern

◆ NC_FITS_get_vara()

int NC_FITS_get_vara ( int  ncid,
int  varid,
const size_t *  start,
const size_t *  count,
void *  value,
nc_type  memtype 
)
extern

◆ NC_FITS_initialize()

NC_Dispatch * NC_FITS_initialize ( void  )
extern

◆ NC_FITS_inq_format()

int NC_FITS_inq_format ( int  ncid,
int *  formatp 
)
extern

◆ NC_FITS_inq_format_extended()

int NC_FITS_inq_format_extended ( int  ncid,
int *  formatp,
int *  modep 
)
extern

◆ NC_FITS_open()

int NC_FITS_open ( const char *  path,
int  mode,
int  basepe,
size_t *  chunksizehintp,
void *  parameters,
const NC_Dispatch *  dispatch,
int  ncid 
)
extern

Variable Documentation

◆ FITS_dispatch_table

const NC_Dispatch* FITS_dispatch_table
extern