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

4
5
#include "cdi_int.h"

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

14
void   cdfEndDef(stream_t * streamptr);
15
void   cdfDefRecord(stream_t * streamptr);
16

17
void   cdfCopyRecord(stream_t *streamptr2, stream_t *streamptr1);
18

19
20
void   cdfDefineAttributes(int vlistID, int varID, int fileID, int ncvarID);

21
void   cdf_read_record(stream_t *streamptr, int memtype, void *data, size_t *nmiss);
22
void   cdf_write_record(stream_t *streamptr, int memtype, const void *data, size_t nmiss);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
23

24
void   cdf_read_var(stream_t *streamptr, int varID, int memtype, void *data, size_t *nmiss);
25
void   cdf_write_var(stream_t *streamptr, int varID, int memtype, const void *data, size_t nmiss);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
26

27
void   cdf_read_var_slice(stream_t *streamptr, int varID, int levelID, int memtype, void *data, size_t *nmiss);
28
void   cdf_write_var_slice(stream_t *streamptr, int varID, int levelID, int memtype, const void *data, size_t nmiss);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
29

30
void   cdf_write_var_chunk(stream_t *streamptr, int varID, int memtype,
31
                           const int rect[][2], const void *data, size_t nmiss);
32

33
34
35
void cdfDefVarDeflate(int ncid, int ncvarid, int deflate_level);
void cdfDefTime(stream_t* streamptr);

36
37
void cdf_scale_add(size_t size, double *data, double addoffset, double scalefactor);

38
int cdfDefDatatype(int datatype, stream_t* streamptr);
39

Uwe Schulzweida's avatar
Uwe Schulzweida committed
40
#endif
41
42
43
44
45
46
47
48
49
/*
 * Local Variables:
 * c-file-style: "Java"
 * c-basic-offset: 2
 * indent-tabs-mode: nil
 * show-trailing-whitespace: t
 * require-trailing-newline: t
 * End:
 */