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

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

12
void   cdfEndDef(stream_t * streamptr);
13
void   cdfDefRecord(stream_t * streamptr);
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
21
void   cdfReadVarDP(stream_t *streamptr, int varID, double *data, int *nmiss);
void   cdf_write_var(stream_t *streamptr, int varID, int memtype, const void *data, int nmiss);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
22

23
void   cdfReadVarSliceDP(stream_t *streamptr, int varID, int levelID, double *data, int *nmiss);
24
void   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
void   cdf_write_var_chunk(stream_t *streamptr, int varID, int memtype,
27
28
                           const int rect[][2], const void *data, int nmiss);

Uwe Schulzweida's avatar
Uwe Schulzweida committed
29
#endif
30
31
32
33
34
35
36
37
38
/*
 * Local Variables:
 * c-file-style: "Java"
 * c-basic-offset: 2
 * indent-tabs-mode: nil
 * show-trailing-whitespace: t
 * require-trailing-newline: t
 * End:
 */