File: ref_const_test.cdl

package info (click to toggle)
netcdf 1%3A4.4.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 96,828 kB
  • ctags: 15,369
  • sloc: ansic: 163,650; sh: 9,294; yacc: 2,457; makefile: 1,208; lex: 1,161; xml: 173; f90: 7; fortran: 6; awk: 2
file content (40 lines) | stat: -rw-r--r-- 701 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
netcdf ref_const_test {
dimensions:
  d3=3;
  d4=4;
variables:
    char charv;
    byte int8v(d4);
    short int16v(d3);
    int int32v(d3);
    int64 int64v(d3);
    ubyte uint8v(d4);
    ushort uint16v(d3);
    uint uint32v(d3);
    uint64 uint64v(d3);
    float floatv;
    double doublev;
data:

 charv = 'a';

 int8v = -5b, 5b, 0xaf, 'a';

 int16v = -2000s, 32767s, 0xabcdS;

 int32v = -200000, 256000, 0xabcdabcL;

 int64v = -200000000000L, 51200000000L, 0xabcdabcdabcdabcdL;

 uint8v = -5b, 5b, 0xaf, 'a';

 uint16v = -2000s, 65535s, 0xabcdS;

 uint32v = -200000, 256000, 0xabcdabcL;

 uint64v = -200000000000, 51200000000, 0xabcdabcdabcdabcdL;

 floatv = 516.0f;

 doublev = -77777777.8888;
}