stream_cdf.h 1.2 KB
Newer Older
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1
2
3
#ifndef _STREAM_CDF_H
#define _STREAM_CDF_H

4
void   cdfDefVars(stream_t *streamptr);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
5
void   cdfDefTimestep(stream_t *streamptr, int tsID);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
6
7
8
9
10
11
12
13
int    cdfInqTimestep(int streamID, int tsID);
int    cdfInqContents(int streamID);
void   cdfDefHistory(int streamID, int size, char *history);
int    cdfInqHistorySize(int streamID);
void   cdfInqHistoryString(int streamID, char *history);

void   cdfEndDef(int streamID);
int    cdfDefRecord(int streamID);
14

15
int    cdfCopyRecord(stream_t *streamptr2, stream_t *streamptr1);
16

17
18
int    cdfReadRecord(stream_t *streamptr, double *data, int *nmiss);
void   cdf_write_record(stream_t *streamptr, int memtype, const void *data, int nmiss);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
19

20
void   cdfReadVarDP(stream_t *streamptr, int varID, double *data, int *nmiss);
21
void   cdf_write_var(int streamID, int varID, int memtype, const void *data, int nmiss);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
22

23
24
int    cdfReadVarSliceDP(stream_t *streamptr, int varID, int levelID, double *data, int *nmiss);
int    cdf_write_var_slice(stream_t *streamptr, int varID, int levelID, int memtype, const void *data, int nmiss);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
25
26

#endif
27
28
29
30
31
32
33
34
35
/*
 * Local Variables:
 * c-file-style: "Java"
 * c-basic-offset: 2
 * indent-tabs-mode: nil
 * show-trailing-whitespace: t
 * require-trailing-newline: t
 * End:
 */