Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

dumplib.h

Go to the documentation of this file.
00001 /*********************************************************************
00002  *   Copyright 1993, University Corporation for Atmospheric Research
00003  *   See netcdf/COPYRIGHT file for copying and redistribution conditions.
00004  *   $Header: /misc/elrond0/share/cvs/AFNI/src/netcdf-3.5.0/src/ncdump/dumplib.h,v 1.5 2004/04/02 15:12:42 rwcox Exp $
00005  *********************************************************************/
00006 
00007 extern char *progname;          /* for error messages */
00008 
00009 #define NO_NETCDF_2             /* assert we aren't using any netcdf-2 stuff */
00010 
00011 #ifndef EXIT_FAILURE
00012 #ifndef vms
00013 #define EXIT_SUCCESS 0
00014 #define EXIT_FAILURE 1
00015 #else
00016 #define EXIT_SUCCESS 1
00017 #define EXIT_FAILURE 0
00018 #endif
00019 #endif
00020 
00021 #define FLT_DIGITS 7            /* default sig. digits for float data */
00022 #define DBL_DIGITS 15           /* default sig. digits for double data */
00023 
00024 extern int float_precision_specified; /* -p option specified float precision */
00025 extern int double_precision_specified; /* -p option specified double precision */
00026 extern char float_var_fmt[];
00027 extern char double_var_fmt[];
00028 extern char float_att_fmt[];
00029 extern char double_att_fmt[];
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034 
00035 /* Print error message to stderr and exit */
00036 extern void     error ( const char *fmt, ... );
00037 
00038 /* set position in line before lput() calls */
00039 extern void     set_indent ( int indent );
00040 
00041 /* set maximum line length */
00042 extern void     set_max_len ( int len );
00043 
00044 /* splits lines to keep them short */
00045 extern void     lput ( const char *string );
00046 
00047 /* In case different formats specified with -d option, set them here. */
00048 extern void     set_formats ( int flt_digs, int dbl_digs );
00049 
00050 /* Determine print format to use for each value for this variable. */
00051 char *          get_fmt ( int ncid, int varid, nc_type type );
00052 
00053 /* structure for list of variables specified with -v option */
00054 struct vnode
00055 {
00056     struct vnode* next;
00057     int id;
00058 };
00059 typedef struct vnode vnode;
00060 
00061 /* Get new variable list */
00062 extern vnode*   newvlist ( void );
00063 
00064 /* Add a variable id to variable list */
00065 extern void     varadd ( vnode* vlist, int varid );
00066 
00067 /* Test if a variable id is in variable list */
00068 extern int      varmember ( const vnode* vlist, int varid );
00069 
00070 #ifdef __cplusplus
00071 }
00072 #endif
 

Powered by Plone

This site conforms to the following standards: