This file is indexed.

/usr/share/doc/netcdf-doc/netcdf-man-3.html is in netcdf-doc 1:4.1.3-7ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   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
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
<!-- Creator     : groff version 1.20.1 -->
<!-- CreationDate: Thu Jun 30 17:23:47 2011 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="generator" content="groff -Thtml, see www.gnu.org">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="Content-Style" content="text/css">
<style type="text/css">
       p       { margin-top: 0; margin-bottom: 0; vertical-align: top }
       pre     { margin-top: 0; margin-bottom: 0; vertical-align: top }
       table   { margin-top: 0; margin-bottom: 0; vertical-align: top }
       h1      { text-align: center }
</style>
<title>NETCDF</title>

</head>
<body>

<h1 align="center">NETCDF</h1>

<a href="#NAME">NAME</a><br>
<a href="#SYNOPSIS">SYNOPSIS</a><br>
<a href="#LIBRARY VERSION">LIBRARY VERSION</a><br>
<a href="#RETURN VALUES">RETURN VALUES</a><br>
<a href="#FILE OPERATIONS">FILE OPERATIONS</a><br>
<a href="#USER DEFINED TYPES">USER DEFINED TYPES</a><br>
<a href="#GROUPS">GROUPS</a><br>
<a href="#DIMENSIONS">DIMENSIONS</a><br>
<a href="#VARIABLES">VARIABLES</a><br>
<a href="#VARIABLES in NETCDF-4 FILES">VARIABLES in NETCDF-4 FILES</a><br>
<a href="#WRITING AND READING WHOLE VARIABLES">WRITING AND READING WHOLE VARIABLES</a><br>
<a href="#WRITING AND READING ONE DATUM">WRITING AND READING ONE DATUM</a><br>
<a href="#WRITING AND READING AN ARRAY">WRITING AND READING AN ARRAY</a><br>
<a href="#WRITING AND READING A SLICED ARRAY">WRITING AND READING A SLICED ARRAY</a><br>
<a href="#WRITING AND READING A MAPPED ARRAY">WRITING AND READING A MAPPED ARRAY</a><br>
<a href="#ATTRIBUTES">ATTRIBUTES</a><br>
<a href="#COMMON ARGUMENT DESCRIPTIONS">COMMON ARGUMENT DESCRIPTIONS</a><br>
<a href="#VARIABLE PREFILLING">VARIABLE PREFILLING</a><br>
<a href="#MPP FUNCTION DESCRIPTIONS">MPP FUNCTION DESCRIPTIONS</a><br>
<a href="#ENVIRONMENT VARIABLES">ENVIRONMENT VARIABLES</a><br>
<a href="#MAILING-LISTS">MAILING-LISTS</a><br>
<a href="#SEE ALSO">SEE ALSO</a><br>

<hr>


<h2>NAME
<a name="NAME"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">netcdf &minus;
Unidata&rsquo;s Network Common Data Form (netCDF) library
interface</p>

<h2>SYNOPSIS
<a name="SYNOPSIS"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em"><b>#include
&quot;netcdf.h&quot;</b></p>

<p style="margin-left:11%; margin-top: 1em"><b>cc ...
-lnetcdf -lhdf5_hl -lhdf5 -lz -lm</b></p>

<p style="margin-left:11%; margin-top: 1em"><b>Complete
documentation for the netCDF libraries can be found at the
netCDF website:
http://www.unidata.ucar.edu/software/netcdf/.</b></p>

<h2>LIBRARY VERSION
<a name="LIBRARY VERSION"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">This document
describes versions 3 and 4 of Unidata netCDF data-access
interface for the C programming language.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="43%">


<p style="margin-top: 1em"><b>const char*
nc_inq_libvers()</b></p> </td>
<td width="46%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Returns a
string identifying the version of the netCDF library, and
when it was built, like: &quot;3.1a of Aug 22 1996 12:57:47
$&quot;.</p>

<p style="margin-left:11%; margin-top: 1em">The RCS
<b>ident(1)</b> command will find a string like &quot;$Id:
@(#) netcdf library version 3.1a of Sep 6 1996 15:56:26
$&quot; in the library. The SCCS <b>what(1)</b> command will
find a string like &quot;netcdf library version 3.1a of Aug
23 1996 16:07:40 $&quot;.</p>

<h2>RETURN VALUES
<a name="RETURN VALUES"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">All netCDF
functions (except <b>nc_inq_libvers()</b> and
<b>nc_strerror()</b>) return an integer status.</p>

<p style="margin-left:11%; margin-top: 1em">If this
returned status value is not equal to <b>NC_NOERR</b>
(zero), it indicates that an error occurred. The possible
status values are defined in system include file
&lt;errno.h&gt; and in &quot;netcdf.h&quot;.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="54%">


<p style="margin-top: 1em"><b>const char*
nc_strerror(int</b> <i>status</i><b>)</b></p></td>
<td width="35%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Returns a
string textual translation of the <i>status</i> value, like
&quot;Attribute or variable name contains illegal
characters&quot; or &quot;No such file or
directory&quot;.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">


<h2>FILE OPERATIONS
<a name="FILE OPERATIONS"></a>
</h2>
<td width="11%"></td>
<td width="83%"></td>
<td width="6%">
</td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="83%">


<p><b>int nc_create(const char</b> <i>path</i><b>[],
int</b> <i>cmode</i><b>, int*</b> <i>ncid</i><b>)</b></p></td>
<td width="6%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Creates a new
netCDF dataset at <i>path</i>, returning a netCDF ID in
<i>ncid</i>. The argument <i>cmode</i> may include the
bitwise-or of the following flags: <b>NC_NOCLOBBER</b> to
protect existing datasets (default silently blows them
away), <b>NC_SHARE</b> for synchronous dataset updates for
classic format files (default is to buffer accesses),</p>

<p style="margin-left:22%; margin-top: 1em">When a netCDF
dataset is created, is is opened <b>NC_WRITE</b>. The new
netCDF dataset is in define mode. <b>NC_64BIT_OFFSET</b>. to
create a file in the 64-bit offset format (as opposed to
classic format, the default). <b>NC_TRUE</b> to create a
netCDF-4/HDF5 file, and <b>NC_CLASSIC_MODEL</b> to guarantee
that netCDF-4/HDF5 files maintain compatibility with the
netCDF classic data model.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc__create(const char</b>
<i>path</i><b>[], int</b> <i>cmode</i><b>, size_t</b>
<i>initialsize</i><b>, size_t*</b> <i>chunksize</i><b>,
int*</b> <i>ncid</i><b>)</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Like
<b>nc_create()</b> but has additional performance tuning
parameters.</p>

<p style="margin-left:22%; margin-top: 1em">The argument
<i>initialsize</i> sets the initial size of the file at
creation time.</p>

<p style="margin-left:22%; margin-top: 1em">See
<b>nc__open()</b> below for an explanation of the
<i>chunksize</i> parameter.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="78%">


<p style="margin-top: 1em"><b>int nc_open(const char</b>
<i>path</i><b>[], int</b> <i>mode</i><b>, int*</b>
<i>ncid</i><b>)</b></p> </td>
<td width="11%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">(Corresponds to
<b>ncopen()</b> in version 2)</p>

<p style="margin-left:22%; margin-top: 1em">Opens a
existing netCDF dataset at <i>path</i> returning a netCDF ID
in <i>ncid</i>. The type of access is described by the
<i>mode</i> parameter, which may include the bitwise-or of
the following flags: <b>NC_WRITE</b> for read-write access
(default read-only), <b>NC_SHARE</b> for synchronous dataset
updates (default is to buffer accesses), and <b>NC_LOCK</b>
(not yet implemented).</p>

<p style="margin-left:22%; margin-top: 1em">As of NetCDF
version 4.1, and if TRUE support was enabled when the NetCDF
library was built, the path parameter may specify a TRUE
URL. In this case, the access mode is forced to be
read-only.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc__open(const char</b>
<i>path</i><b>[], int</b> <i>mode</i><b>, size_t*</b>
<i>chunksize</i><b>, int*</b> <i>ncid</i><b>)</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Like
<b>nc_open()</b> but has an additional performance tuning
parameter.</p>

<p style="margin-left:22%; margin-top: 1em">The argument
referenced by <i>chunksize</i> controls a space versus time
tradeoff, memory allocated in the netcdf library versus
number of system calls. Because of internal requirements,
the value may not be set to exactly the value requested. The
actual value chosen is returned by reference. Using the
value <b>NC_SIZEHINT_DEFAULT</b> causes the library to
choose a default. How the system choses the default depends
on the system. On many systems, the &quot;preferred I/O
block size&quot; is available from the <b>stat()</b> system
call, <b>struct stat</b> member <b>st_blksize</b>. If this
is available it is used. Lacking that, twice the system
pagesize is used. Lacking a call to discover the system
pagesize, we just set default chunksize to 8192.</p>

<p style="margin-left:22%; margin-top: 1em">The chunksize
is a property of a given open netcdf descriptor <i>ncid</i>,
it is not a persistent property of the netcdf dataset.</p>

<p style="margin-left:22%; margin-top: 1em">As with
<b>nc__open()</b>, the path parameter may specify a TRUE
URL, but the tuning parameters are ignored.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="34%">


<p style="margin-top: 1em"><b>int nc_redef(int</b>
<i>ncid</i><b>)</b></p> </td>
<td width="55%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">(Corresponds to
<b>ncredef()</b> in version 2)</p>

<p style="margin-left:22%; margin-top: 1em">Puts an open
netCDF dataset into define mode, so dimensions, variables,
and attributes can be added or renamed and attributes can be
deleted.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="35%">


<p style="margin-top: 1em"><b>int nc_enddef(int</b>
<i>ncid</i><b>)</b></p> </td>
<td width="54%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">(Corresponds to
<b>ncendef()</b> in version 2)</p>

<p style="margin-left:22%; margin-top: 1em">Takes an open
netCDF dataset out of define mode. The changes made to the
netCDF dataset while it was in define mode are checked and
committed to disk if no problems occurred. Some data values
may be written as well, see &quot;VARIABLE PREFILLING&quot;
below. After a successful call, variable data can be read or
written to the dataset.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc__enddef(int</b>
<i>ncid</i><b>, size_t</b> <i>h_minfree</i><b>, size_t</b>
<i>v_align</i><b>, size_t</b> <i>v_minfree</i><b>,
size_t</b> <i>r_align</i><b>)</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Like
<b>nc_enddef()</b> but has additional performance tuning
parameters.</p>

<p style="margin-left:22%; margin-top: 1em">Caution: this
function exposes internals of the netcdf version 1 file
format. It may not be available on future netcdf
implementations.</p>

<p style="margin-left:22%; margin-top: 1em">The current
netcdf file format has three sections, the
&quot;header&quot; section, the data section for fixed size
variables, and the data section for variables which have an
unlimited dimension (record variables). The header begins at
the beginning of the file. The index (offset) of the
beginning of the other two sections is contained in the
header. Typically, there is no space between the sections.
This causes copying overhead to accrue if one wishes to
change the size of the sections, as may happen when changing
names of things, text attribute values, adding attributes or
adding variables. Also, for buffered i/o, there may be
advantages to aligning sections in certain ways.</p>

<p style="margin-left:22%; margin-top: 1em">The minfree
parameters allow one to control costs of future calls to
<b>nc_redef()</b>, <b>nc_enddef()</b> by requesting that
<i>minfree</i> bytes be available at the end of the section.
The <i>h_minfree</i> parameter sets the pad at the end of
the &quot;header&quot; section. The <i>v_minfree</i>
parameter sets the pad at the end of the data section for
fixed size variables.</p>

<p style="margin-left:22%; margin-top: 1em">The align
parameters allow one to set the alignment of the beginning
of the corresponding sections. The beginning of the section
is rounded up to an index which is a multiple of the align
parameter. The flag value <b>NC_ALIGN_CHUNK</b> tells the
library to use the chunksize (see above) as the align
parameter. The <i>v_align</i> parameter controls the
alignment of the beginning of the data section for fixed
size variables. The <i>r_align</i> parameter controls the
alignment of the beginning of the data section for variables
which have an unlimited dimension (record variables).</p>

<p style="margin-left:22%; margin-top: 1em">The file format
requires mod 4 alignment, so the align parameters are
silently rounded up to multiples of 4. The usual call,
<b>nc_enddef(</b><i>ncid</i><b>)</b> is equivalent to
<b>nc__enddef(</b><i>ncid</i><b>, 0, 4, 0, 4)</b>.</p>

<p style="margin-left:22%; margin-top: 1em">The file format
does not contain a &quot;record size&quot; value, this is
calculated from the sizes of the record variables. This
unfortunate fact prevents us from providing minfree and
alignment control of the &quot;records&quot; in a netcdf
file. If you add a variable which has an unlimited
dimension, the third section will always be copied with the
new variable added.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="32%">


<p style="margin-top: 1em"><b>int nc_sync(int</b>
<i>ncid</i><b>)</b></p> </td>
<td width="57%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">(Corresponds to
<b>ncsync()</b> in version 2)</p>

<p style="margin-left:22%; margin-top: 1em">Unless the
<b>NC_SHARE</b> bit is set in <b>nc_open()</b> or
<b>nc_create()</b>, accesses to the underlying netCDF
dataset are buffered by the library. This function
synchronizes the state of the underlying dataset and the
library. This is done automatically by <b>nc_close()</b> and
<b>nc_enddef()</b>.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="34%">


<p style="margin-top: 1em"><b>int nc_abort(int</b>
<i>ncid</i><b>)</b></p> </td>
<td width="55%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">(Corresponds to
<b>ncabort()</b> in version 2)</p>

<p style="margin-left:22%; margin-top: 1em">You don&rsquo;t
need to call this function. This function is called
automatically by <b>nc_close()</b> if the netCDF was in
define mode and something goes wrong with the commit. If the
netCDF dataset isn&rsquo;t in define mode, then this
function is equivalent to <b>nc_close()</b>. If it is called
after <b>nc_redef()</b>, but before <b>nc_enddef()</b>, the
new definitions are not committed and the dataset is closed.
If it is called after <b>nc_create()</b> but before
<b>nc_enddef()</b>, the dataset disappears.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="34%">


<p style="margin-top: 1em"><b>int nc_close(int</b>
<i>ncid</i><b>)</b></p> </td>
<td width="55%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">(Corresponds to
<b>ncclose()</b> in version 2)</p>

<p style="margin-left:22%; margin-top: 1em">Closes an open
netCDF dataset. If the dataset is in define mode,
<b>nc_enddef()</b> will be called before closing. After a
dataset is closed, its ID may be reassigned to another
dataset.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq(int</b>
<i>ncid</i><b>, int*</b> <i>ndims</i><b>, int*</b>
<i>nvars</i><b>, int*</b> <i>natts</i><b>, int*</b>
<i>unlimdimid</i><b>)</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_ndims(int</b>
<i>ncid</i><b>, int*</b> <i>ndims</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_nvars(int</b>
<i>ncid</i><b>, int*</b> <i>nvars</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_natts(int</b>
<i>ncid</i><b>, int*</b> <i>natts</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_unlimdim(int</b>
<i>ncid</i><b>, int*</b> <i>unlimdimid</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_format(int</b>
<i>ncid</i><b>, int*</b> <i>formatn</i><b>)</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Use these
functions to find out what is in a netCDF dataset. Upon
successful return, <i>ndims</i> will contain the number of
dimensions defined for this netCDF dataset, <i>nvars</i>
will contain the number of variables, <i>natts</i> will
contain the number of attributes, and <i>unlimdimid</i> will
contain the dimension ID of the unlimited dimension if one
exists, or -1 otherwise. <i>formatn</i> will contain the
version number of the dataset &lt;format&gt;, one of
<b>NC_FORMAT_CLASSIC</b>, <b>NC_FORMAT_64BIT</b>,
<b>NC_FORMAT_NETCDF4</b>, or
<b>NC_FORMAT_NETCDF4_CLASSIC</b>. If any of the return
parameters is a <b>NULL</b> pointer, then the corresponding
information will not be returned; hence, no space need be
allocated for it.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_def_dim(int</b>
<i>ncid</i><b>, const char</b> <i>name</i><b>[], size_t</b>
<i>len</i><b>, int*</b> <i>dimid</i><b>)</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">(Corresponds to
<b>ncdimdef()</b> in version 2)</p>

<p style="margin-left:22%; margin-top: 1em">Adds a new
dimension to an open netCDF dataset, which must be in define
mode. <i>name</i> is the dimension name. If <i>dimid</i> is
not a <b>NULL</b> pointer then upon successful completion
<i>dimid</i> will contain the dimension ID of the newly
created dimension.</p>

<h2>USER DEFINED TYPES
<a name="USER DEFINED TYPES"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">Users many
define types for a netCDF-4/HDF5 file (unless the
<b>NC_CLASSIC_MODEL</b> was used when the file was creates).
Users may define compound types, variable length arrays,
enumeration types, and opaque types.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_def_compound(int</b>
<i>ncid</i><b>, size_t</b> <i>size</i><b>, const char</b>
<i>name</i><b>[], int*</b> <i>typeidp</i><b>)</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Define a
compound type.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_insert_compound(int</b> <i>ncid</i><b>, nc_type , const
char</b> <i>name</i><b>[], size_t</b> <i>offset</i><b>,
nc_type</b> <i>field_typeid</i><b>)</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Insert an
element into a compound type. May not be done after type has
been used, or after the type has been written by an
enddef.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_insert_array_compound(int</b> <i>ncid</i><b>, nc_type ,
const char</b> <i>name</i><b>[], size_t</b>
<i>offset</i><b>, nc_type</b> <i>field_typeid</i><b>,
int</b> <i>ndims</i><b>, const int</b>
<i>dim_sizes</i><b>[])</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Insert an array
into a compound type.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_type(int</b>
<i>ncid</i><b>, nc_type , char</b> <i>name</i><b>[],
size_t*</b> <i>sizep</i><b>)</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Learn about a
type.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_compound(int</b>
<i>ncid</i><b>, nc_type , char</b> <i>name</i><b>[],
size_t*</b> <i>sizep</i><b>, size_t*</b>
<i>nfieldsp</i><b>)</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_inq_compound_name(int</b> <i>ncid</i><b>, nc_type ,
char</b> <i>name</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_inq_compound_size(int</b> <i>ncid</i><b>, nc_type ,
size_t*</b> <i>sizep</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_inq_compound_nfields(int</b> <i>ncid</i><b>, nc_type ,
size_t*</b> <i>nfieldsp</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_inq_compound_fieldname(int</b> <i>ncid</i><b>, nc_type ,
int</b> <i>fieldid</i><b>, char</b>
<i>name</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_inq_compound_fieldindex(int</b> <i>ncid</i><b>, nc_type ,
const char</b> <i>name</i><b>[], int*</b>
<i>fieldidp</i><b>)</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_inq_compound_fieldoffset(int</b> <i>ncid</i><b>, nc_type
, int</b> <i>fieldid</i><b>, size_t*</b>
<i>offsetp</i><b>)</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_inq_compound_fieldtype(int</b> <i>ncid</i><b>, nc_type ,
int</b> <i>fieldid</i><b>, nc_type*</b>
<i>field_typeid</i><b>)</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_inq_compound_fieldndims(int</b> <i>ncid</i><b>, nc_type ,
int</b> <i>fieldid</i><b>, int*</b> <i>ndims</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_inq_compound_fielddim_sizes(int</b> <i>ncid</i><b>,
nc_type , int</b> <i>fieldid</i><b>, int</b>
<i>dim_sizes</i><b>[])</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Learn about a
compound type.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_def_vlen(int</b>
<i>ncid</i><b>, const char</b> <i>name</i><b>[], nc_type</b>
<i>base_typeid</i><b>, nc_type*</b>
<i>xtypep</i><b>)</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Create a
varaible length array type.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_vlen(int</b>
<i>ncid</i><b>, nc_type , char</b> <i>name</i><b>[],
size_t*</b> <i>datum_sizep</i><b>, nc_type*</b>
<i>base_nc_typep</i><b>)</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Learn about a
varaible length array type.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="47%">


<p style="margin-top: 1em"><b>int nc_free_vlen(nc_vlen_t
*vl)</b></p> </td>
<td width="42%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Free memory
comsumed by reading data of a varaible length array
type.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_put_vlen_element(int</b> <i>ncid</i><b>, nc_type , void
*</b> <i>vlen_element</i><b>, size_t</b> <i>len</i><b>, void
*</b> <i>data</i><b>)</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Write one
VLEN.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_get_vlen_element(int</b> <i>ncid</i><b>, nc_type , void
**</b> <i>vlen_element</i><b>, size_t</b> <i>len</i><b>,
void **</b> <i>data</i><b>)</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Read one
VLEN.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="66%">


<p style="margin-top: 1em"><b>int nc_free_string(size_t</b>
<i>len</i><b>, char **data)</b></p></td>
<td width="23%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Free memory
comsumed by reading data of a string type.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_user_type(int</b>
<i>ncid</i><b>, nc_type , char</b> <i>name</i><b>[], size_t*
, nc_type* , size_t* , int* )</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Learn about a
user define type.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_def_enum(int</b>
<i>ncid</i><b>, nc_type</b> <i>base_typeid</i><b>, const
char</b> <i>name</i><b>[], nc_type*</b>
<i>typeidp</i><b>)</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Define an
enumeration type.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_insert_enum(int</b>
<i>ncid</i><b>, nc_type</b> <i>base_typeid</i><b>, const
char</b> <i>name</i><b>[], const void *value)</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Insert a
name-value pair into enumeration type.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_inq_enum_member(int</b> <i>ncid</i><b>, nc_type</b>
<i>xtype</i><b>, int</b> <i>idx</i><b>, char</b>
<i>name</i><b>[], void *value)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_enum_ident(int</b>
<i>ncid</i><b>, nc_type</b> <i>xtype</i><b>, int</b>
<i>idx</i><b>, long long</b> <i>value</i><b>, char</b>
<i>identifier</i><b>[])</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Learn about a
name-value pair into enumeration type.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_def_opaque(int</b>
<i>ncid</i><b>, size_t</b> <i>size</i><b>, const char</b>
<i>name</i><b>[], nc_type*</b> <i>xtypep</i><b>)</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Create an
opaque type.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_opaque(int</b>
<i>ncid</i><b>, nc_type</b> <i>xtype</i><b>, char</b>
<i>name</i><b>[], size_t*</b> <i>sizep</i><b>)</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Learn about
opaque type.</p>

<h2>GROUPS
<a name="GROUPS"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">Users may
organize data into hierarchical groups in netCDF-4/HDF5
files (unless <b>NC_CLASSIC_MODEL</b> was used when creating
the file).</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="80%">


<p style="margin-top: 1em"><b>int nc_inq_grps(int</b>
<i>ncid</i><b>, int*</b> <i>numgrps</i><b>, int</b>
<i>ncids</i><b>[])</b></p> </td>
<td width="9%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Learn how many
groups (and their ncids) are available from the group
represented by ncid.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_grpname(int</b>
<i>ncid</i><b>, char</b> <i>name</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_inq_grpname_full(int</b> <i>ncid</i><b>, size_t*</b>
<i>len</i><b>, char</b> <i>name</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_inq_grpname_len(int</b> <i>ncid</i><b>, size_t*</b>
<i>len</i><b>)</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_grp_parent(int</b>
<i>ncid</i><b>, int*</b> <i>ncid</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_grp_ncid(int</b>
<i>ncid</i><b>, char</b> <i>name</i><b>[], int*</b>
<i>ncid</i><b>)</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_full_ncid(int</b>
<i>ncid</i><b>, char</b> <i>name</i><b>[], int*</b>
<i>ncid</i><b>)</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Learn about a
group.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="71%">


<p style="margin-top: 1em"><b>int nc_inq_varids(int</b>
<i>ncid</i><b>, int*</b> <i>nvars</i><b>, int* )</b></p></td>
<td width="18%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Get the varids
in a group.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_dimids(int</b>
<i>ncid</i><b>, int*</b> <i>ndims</i><b>, int*</b>
<i>dimids</i><b>, int</b> <i>include_parents</i><b>)</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Get the dimids
in a group and (potentially) its parents.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="86%">


<p style="margin-top: 1em"><b>int nc_inq_typeids(int</b>
<i>ncid</i><b>, int*</b> <i>ntypes</i><b>, int</b>
<i>typeids</i><b>[])</b></p> </td>
<td width="3%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Get the typeids
of user-defined types in a group.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="74%">


<p style="margin-top: 1em"><b>int nc_def_grp(int</b>
<i>ncid</i><b>, char</b> <i>name</i><b>[], int*</b>
<i>ncid</i><b>)</b></p> </td>
<td width="15%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Create a
group.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">


<h2>DIMENSIONS
<a name="DIMENSIONS"></a>
</h2>
<td width="11%"></td>
<td width="87%"></td>
<td width="2%">
</td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="87%">


<p><b>int nc_inq_dimid(int</b> <i>ncid</i><b>, const
char</b> <i>name</i><b>[], int*</b> <i>dimid</i><b>)</b></p></td>
<td width="2%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">(Corresponds to
<b>ncdimid()</b> in version 2)</p>

<p style="margin-left:22%; margin-top: 1em">Given a
dimension name, returns the ID of a netCDF dimension in
<i>dimid</i>.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_dim(int</b>
<i>ncid</i><b>, int</b> <i>dimid</i><b>, char</b>
<i>name</i><b>[], size_t*</b> <i>len</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_dimname(int</b>
<i>ncid</i><b>, int</b> <i>dimid</i><b>, char</b>
<i>name</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_dimlen(int</b>
<i>ncid</i><b>, int</b> <i>dimid</i><b>, size_t*</b>
<i>len</i><b>)</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Use these
functions to find out about a dimension. If either the
<i>name</i> argument or <i>len</i> argument is a <b>NULL</b>
pointer, then the associated information will not be
returned. Otherwise, <i>name</i> should be big enough
(<b>NC_MAX_NAME</b>) to hold the dimension name as the name
will be copied into your storage. The length return
parameter, <i>len</i> will contain the size of the
dimension. For the unlimited dimension, the returned length
is the current maximum value used for writing into any of
the variables which use the dimension.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="87%">


<p style="margin-top: 1em"><b>int nc_rename_dim(int</b>
<i>ncid</i><b>, int</b> <i>dimid</i><b>, const char</b>
<i>name</i><b>[])</b></p> </td>
<td width="2%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">(Corresponds to
<b>ncdimrename()</b> in version 2)</p>

<p style="margin-left:22%; margin-top: 1em">Renames an
existing dimension in an open netCDF dataset. If the new
name is longer than the old name, the netCDF dataset must be
in define mode. You cannot rename a dimension to have the
same name as another dimension.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">


<h2>VARIABLES
<a name="VARIABLES"></a>
</h2>
<td width="11%"></td>
<td width="89%">


<p><b>int nc_def_var(int</b> <i>ncid</i><b>, const char</b>
<i>name</i><b>[], nc_type</b> <i>xtype</i><b>, int</b>
<i>ndims</i><b>, const int</b> <i>dimids</i><b>[], int*</b>
<i>varid</i><b>)</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">(Corresponds to
<b>ncvardef()</b> in version 2)</p>

<p style="margin-left:22%; margin-top: 1em">Adds a new
variable to a netCDF dataset. The netCDF must be in define
mode. If not <b>NULL</b>, then <i>varid</i> will be set to
the netCDF variable ID.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="87%">


<p style="margin-top: 1em"><b>int nc_inq_varid(int</b>
<i>ncid</i><b>, const char</b> <i>name</i><b>[], int*</b>
<i>varid</i><b>)</b></p> </td>
<td width="2%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">(Corresponds to
<b>ncvarid()</b> in version 2)</p>

<p style="margin-left:22%; margin-top: 1em">Returns the ID
of a netCDF variable in <i>varid</i> given its name.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_var(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, char</b>
<i>name</i><b>[], nc_type*</b> <i>xtype</i><b>, int*</b>
<i>ndims</i><b>, int</b> <i>dimids</i><b>[], int*</b>
<i>natts</i><b>)</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_varname(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, char</b>
<i>name</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_vartype(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, nc_type*</b>
<i>xtype</i><b>)</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_varndims(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, int*</b>
<i>ndims</i><b>)</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_vardimid(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, int</b>
<i>dimids</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_varnatts(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, int*</b>
<i>natts</i><b>)</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Returns
information about a netCDF variable, given its ID. If any of
the return parameters (<i>name</i>, <i>xtype</i>,
<i>ndims</i>, <i>dimids</i>, or <i>natts</i>) is a
<b>NULL</b> pointer, then the corresponding information will
not be returned; hence, no space need be allocated for
it.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="87%">


<p style="margin-top: 1em"><b>int nc_rename_var(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const char</b>
<i>name</i><b>[])</b></p> </td>
<td width="2%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">(Corresponds to
<b>ncvarrename()</b> in version 2)</p>

<p style="margin-left:22%; margin-top: 1em">Changes the
name of a netCDF variable. If the new name is longer than
the old name, the netCDF must be in define mode. You cannot
rename a variable to have the name of any existing
variable.</p>

<h2>VARIABLES in NETCDF-4 FILES
<a name="VARIABLES in NETCDF-4 FILES"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">The following
functions may only be used on variables in a netCDF-4/HDF5
data file. These functions must be called after the variable
is defined, but before an enddef call.</p>

<p style="margin-left:11%; margin-top: 1em"><b>int
nc_def_var_deflate(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, int</b> <i>shuffle</i><b>, int</b>
<i>deflate</i><b>, int</b> <i>deflate_level</i><b>)</b></p>

<p style="margin-left:11%; margin-top: 1em">Turn on
compression and/or shuffle filter. (Shuffle filter is only
useful for integer data.)</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_inq_var_deflate(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, int*</b> <i>shufflep</i><b>, int*</b>
<i>deflatep</i><b>, int*</b>
<i>deflate_levelp</i><b>)</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Learn about a
variable&rsquo;s deflate settings.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_def_var_fletcher32(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, int</b> <i>fletcher32</i><b>)</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Turn on
checksumming for a variable.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_inq_var_fletcher32(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, int*</b> <i>fletcher32</i><b>)</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Learn about
checksumming for a variable.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_def_var_chunking(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, int</b> <i>storage</i><b>, const size_t</b>
<i>chunksizesp</i><b>[])</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Set chunksizes
for a variable.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_inq_var_chunking(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, int*</b> <i>storagep</i><b>, size_t</b>
<i>chunksizesp</i><b>[])</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Learn about
chunksizes for a variable.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_def_var_fill(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, int</b>
<i>no_fill</i><b>, const size_t</b>
<i>chunksizesp</i><b>[])</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Set a fill
value for a variable.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_var_fill(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, int*</b>
<i>storagep</i><b>, size_t</b>
<i>chunksizesp</i><b>[])</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Learn the fill
value for a variable.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="83%">


<p style="margin-top: 1em"><b>int nc_def_var_endian(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, int</b>
<i>endian</i><b>)</b></p> </td>
<td width="6%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Set endianness
of variable.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="86%">


<p style="margin-top: 1em"><b>int nc_inq_var_endian(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, int*</b>
<i>endianp</i><b>)</b></p> </td>
<td width="3%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Learn the
endianness of a variable.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">


<h2>WRITING AND READING WHOLE VARIABLES
<a name="WRITING AND READING WHOLE VARIABLES"></a>
</h2>
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var_text(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const char</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var_uchar(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const unsigned char</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var_schar(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const signed char</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var_short(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const short</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var_int(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const int</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var_long(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const long</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var_float(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const float</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var_double(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const double</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var_ubyte(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const unsigned char</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var_ushort(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const unsigned short</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var_uint(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const unsigned int</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var_int64(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const long long</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var_uint64(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const unsigned long long</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var_string(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const char *</b> <i>out</i><b>[])</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Writes an
entire netCDF variable (i.e. all the values). The netCDF
dataset must be open and in data mode. The type of the data
is specified in the function name, and it is converted to
the external type of the specified variable, if possible,
otherwise an <b>NC_ERANGE</b> error is returned. Note that
rounding is not performed during the conversion. Floating
point numbers are truncated when converted to integers.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var_text(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, char</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var_uchar(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, unsigned char</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var_schar(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, signed char</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var_short(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, short</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var_int(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, int</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var_long(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, long</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var_float(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, float</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var_double(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, double</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var_ubyte(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, unsigned char</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var_ushort(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, unsigned short</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var_uint(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, unsigned int</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var_int64(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, long long</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var_uint64(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, unsigned long
long</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var_string(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, char *</b>
<i>in</i><b>[])</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Reads an entire
netCDF variable (i.e. all the values). The netCDF dataset
must be open and in data mode. The data is converted from
the external type of the specified variable, if necessary,
to the type specified in the function name. If conversion is
not possible, an <b>NC_ERANGE</b> error is returned.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">


<h2>WRITING AND READING ONE DATUM
<a name="WRITING AND READING ONE DATUM"></a>
</h2>
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var1_text(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>index</i><b>[],
char</b> <i>*out</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var1_uchar(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>index</i><b>[],
unsigned char</b> <i>*out</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var1_schar(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>index</i><b>[], signed
char</b> <i>*out</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var1_short(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>index</i><b>[],
short</b> <i>*out</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var1_int(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>index</i><b>[], int</b>
<i>*out</i><b>)</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var1_long(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>index</i><b>[],
long</b> <i>*out</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var1_float(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>index</i><b>[],
float</b> <i>*out</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var1_double(int</b> <i>ncid</i><b>,
int</b> <i>varid</i><b>, const size_t</b> <i>index</i><b>[],
double</b> <i>*out</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var1_ubyte(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>index</i><b>[],
unsigned char</b> <i>*out</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var1_ushort(int</b> <i>ncid</i><b>,
int</b> <i>varid</i><b>, const size_t</b> <i>index</i><b>[],
unsigned short</b> <i>*out</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var1_uint(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>index</i><b>[],
unsigned int</b> <i>*out</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var1_int64(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>index</i><b>[], long
long</b> <i>*out</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var1_uint64(int</b> <i>ncid</i><b>,
int</b> <i>varid</i><b>, const size_t</b> <i>index</i><b>[],
unsigned long long</b> <i>*out</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_var1_string(int</b> <i>ncid</i><b>,
int</b> <i>varid</i><b>, const size_t</b> <i>index</i><b>[],
char *</b> <i>*out</i><b>)</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Puts a single
data value into a variable at the position <i>index</i> of
an open netCDF dataset that is in data mode. The type of the
data is specified in the function name, and it is converted
to the external type of the specified variable, if possible,
otherwise an <b>NC_ERANGE</b> error is returned.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var1_text(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>index</i><b>[], char*</b> <i>in</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var1_uchar(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>index</i><b>[], unsigned char*</b> <i>in</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var1_schar(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>index</i><b>[], signed char*</b> <i>in</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var1_short(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>index</i><b>[], short*</b> <i>in</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var1_int(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>index</i><b>[], int*</b> <i>in</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var1_long(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>index</i><b>[], long*</b> <i>in</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var1_float(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>index</i><b>[], float*</b> <i>in</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_get_var1_double(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>index</i><b>[],
double*</b> <i>in</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var1_ubyte(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>index</i><b>[], unsigned char*</b> <i>in</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_get_var1_ushort(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>index</i><b>[],
unsigned short*</b> <i>in</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var1_uint(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>index</i><b>[], unsigned int*</b> <i>in</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_var1_int64(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>index</i><b>[], long long*</b> <i>in</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_get_var1_uint64(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>index</i><b>[],
unsigned long long*</b> <i>in</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_get_var1_string(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>index</i><b>[], char
**</b> <i>in</i><b>)</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Gets a single
data value from a variable at the position <i>index</i> of
an open netCDF dataset that is in data mode. The data is
converted from the external type of the specified variable,
if necessary, to the type specified in the function name. If
conversion is not possible, an <b>NC_ERANGE</b> error is
returned.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">


<h2>WRITING AND READING AN ARRAY
<a name="WRITING AND READING AN ARRAY"></a>
</h2>
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vara_text(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const char</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vara_uchar(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const unsigned char</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vara_schar(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const signed char</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vara_short(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const short</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vara_int(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const int</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vara_long(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const long</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vara_float(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const float</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vara_double(int</b> <i>ncid</i><b>,
int</b> <i>varid</i><b>, const size_t</b> <i>start</i><b>[],
const size_t</b> <i>count</i><b>[], const double</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vara_ubyte(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const unsigned char</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vara_ushort(int</b> <i>ncid</i><b>,
int</b> <i>varid</i><b>, const size_t</b> <i>start</i><b>[],
const size_t</b> <i>count</i><b>[], const unsigned short</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vara_uint(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const unsigned int</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vara_int64(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const long long</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vara_uint64(int</b> <i>ncid</i><b>,
int</b> <i>varid</i><b>, const size_t</b> <i>start</i><b>[],
const size_t</b> <i>count</i><b>[], const unsigned long
long</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vara_string(int</b> <i>ncid</i><b>,
int</b> <i>varid</i><b>, const size_t</b> <i>start</i><b>[],
const size_t</b> <i>count</i><b>[], const char *</b>
<i>out</i><b>[])</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Writes an array
section of values into a netCDF variable of an open netCDF
dataset, which must be in data mode. The array section is
specified by the <i>start</i> and <i>count</i> vectors,
which give the starting index and count of values along each
dimension of the specified variable. The type of the data is
specified in the function name and is converted to the
external type of the specified variable, if possible,
otherwise an <b>NC_ERANGE</b> error is returned.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_vara_text(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[],
char</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_vara_uchar(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[],
unsigned char</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_vara_schar(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[],
signed char</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_vara_short(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[],
short</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_vara_int(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[],
int</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_vara_long(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[],
long</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_vara_float(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[],
float</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_get_vara_double(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], double</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_vara_ubyte(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[],
unsigned char</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_get_vara_ushort(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], unsigned short</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_vara_uint(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[],
unsigned int</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_vara_int64(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[], long
long</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_get_vara_uint64(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], unsigned long long</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_get_vara_string(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], char *</b>
<i>in</i><b>[])</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Reads an array
section of values from a netCDF variable of an open netCDF
dataset, which must be in data mode. The array section is
specified by the <i>start</i> and <i>count</i> vectors,
which give the starting index and count of values along each
dimension of the specified variable. The data is converted
from the external type of the specified variable, if
necessary, to the type specified in the function name. If
conversion is not possible, an <b>NC_ERANGE</b> error is
returned.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">


<h2>WRITING AND READING A SLICED ARRAY
<a name="WRITING AND READING A SLICED ARRAY"></a>
</h2>
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vars_text(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[], const char</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vars_uchar(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[], const unsigned char</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vars_schar(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[], const signed char</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vars_short(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[], const short</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vars_int(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[], const int</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vars_long(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[], const long</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vars_float(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[], const float</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vars_double(int</b> <i>ncid</i><b>,
int</b> <i>varid</i><b>, const size_t</b> <i>start</i><b>[],
const size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[], const double</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vars_ubyte(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[], const unsigned char</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vars_ushort(int</b> <i>ncid</i><b>,
int</b> <i>varid</i><b>, const size_t</b> <i>start</i><b>[],
const size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[], const unsigned short</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vars_uint(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[], const unsigned int</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vars_int64(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[], const long long</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vars_uint64(int</b> <i>ncid</i><b>,
int</b> <i>varid</i><b>, const size_t</b> <i>start</i><b>[],
const size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[], const unsigned long long</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_vars_string(int</b> <i>ncid</i><b>,
int</b> <i>varid</i><b>, const size_t</b> <i>start</i><b>[],
const size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[], const char *</b>
<i>out</i><b>[])</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">These functions
are used for <i>strided output</i>, which is like the array
section output described above, except that the sampling
stride (the interval between accessed values) is specified
for each dimension. For an explanation of the sampling
stride vector, see COMMON ARGUMENTS DESCRIPTIONS below.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_vars_text(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[], const
size_t</b> <i>stride</i><b>[], char</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_vars_uchar(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[], const
size_t</b> <i>stride</i><b>[], unsigned char</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_vars_schar(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[], const
size_t</b> <i>stride</i><b>[], signed char</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_vars_short(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[], const
size_t</b> <i>stride</i><b>[], short</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_vars_int(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[], const
size_t</b> <i>stride</i><b>[], int</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_vars_long(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[], const
size_t</b> <i>stride</i><b>[], long</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_vars_float(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[], const
size_t</b> <i>stride</i><b>[], float</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_get_vars_double(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[], double</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_vars_ubyte(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[], const
size_t</b> <i>stride</i><b>[], unsigned char</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_get_vars_ushort(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[], unsigned short</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_vars_uint(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[], const
size_t</b> <i>stride</i><b>[], unsigned int</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_vars_int64(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[], const
size_t</b> <i>stride</i><b>[], long long</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_get_vars_uint64(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[], unsigned long long</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_get_vars_string(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[], char *</b> <i>in</i><b>[])</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">These functions
are used for <i>strided input</i>, which is like the array
section input described above, except that the sampling
stride (the interval between accessed values) is specified
for each dimension. For an explanation of the sampling
stride vector, see COMMON ARGUMENTS DESCRIPTIONS below.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">


<h2>WRITING AND READING A MAPPED ARRAY
<a name="WRITING AND READING A MAPPED ARRAY"></a>
</h2>
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_varm_text(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[],</b> <i>imap</i><b>, const char</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_varm_uchar(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[],</b> <i>imap</i><b>, const unsigned
char</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_varm_schar(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[],</b> <i>imap</i><b>, const signed
char</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_varm_short(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[],</b> <i>imap</i><b>, const short</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_varm_int(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[],</b> <i>imap</i><b>, const int</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_varm_long(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[],</b> <i>imap</i><b>, const long</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_varm_float(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[],</b> <i>imap</i><b>, const float</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_varm_double(int</b> <i>ncid</i><b>,
int</b> <i>varid</i><b>, const size_t</b> <i>start</i><b>[],
const size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[],</b> <i>imap</i><b>, const double</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_varm_ubyte(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[],</b> <i>imap</i><b>, const unsigned
char</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_varm_ushort(int</b> <i>ncid</i><b>,
int</b> <i>varid</i><b>, const size_t</b> <i>start</i><b>[],
const size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[],</b> <i>imap</i><b>, const unsigned
short</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_varm_uint(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[],</b> <i>imap</i><b>, const unsigned
int</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_varm_int64(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[],</b> <i>imap</i><b>, const long long</b>
<i>out</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_varm_uint64(int</b> <i>ncid</i><b>,
int</b> <i>varid</i><b>, const size_t</b> <i>start</i><b>[],
const size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[],</b> <i>imap</i><b>, const unsigned long
long</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_varm_string(int</b> <i>ncid</i><b>,
int</b> <i>varid</i><b>, const size_t</b> <i>start</i><b>[],
const size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[],</b> <i>imap</i><b>, const char *</b>
<i>out</i><b>[])</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">These functions
are used for <i>mapped output</i>, which is like strided
output described above, except that an additional index
mapping vector is provided to specify the in-memory
arrangement of the data values. For an explanation of the
index mapping vector, see COMMON ARGUMENTS DESCRIPTIONS
below.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_varm_text(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[], const
size_t</b> <i>stride</i><b>[],</b> <i>imap</i><b>, char</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_varm_uchar(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[], const
size_t</b> <i>stride</i><b>[],</b> <i>imap</i><b>, unsigned
char</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_varm_schar(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[], const
size_t</b> <i>stride</i><b>[],</b> <i>imap</i><b>, signed
char</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_varm_short(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[], const
size_t</b> <i>stride</i><b>[],</b> <i>imap</i><b>, short</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_varm_int(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[], const
size_t</b> <i>stride</i><b>[],</b> <i>imap</i><b>, int</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_varm_long(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[], const
size_t</b> <i>stride</i><b>[],</b> <i>imap</i><b>, long</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_varm_float(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[], const
size_t</b> <i>stride</i><b>[],</b> <i>imap</i><b>, float</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_get_varm_double(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[],</b> <i>imap</i><b>, double</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_varm_ubyte(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[], const
size_t</b> <i>stride</i><b>[],</b> <i>imap</i><b>, unsigned
char</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_get_varm_ushort(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[],</b> <i>imap</i><b>, unsigned short</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_varm_uint(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[], const
size_t</b> <i>stride</i><b>[],</b> <i>imap</i><b>, unsigned
int</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_varm_int64(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const size_t</b>
<i>start</i><b>[], const size_t</b> <i>count</i><b>[], const
size_t</b> <i>stride</i><b>[],</b> <i>imap</i><b>, long
long</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_get_varm_uint64(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[],</b> <i>imap</i><b>, unsigned long
long</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int
nc_get_varm_string(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const size_t</b> <i>start</i><b>[], const
size_t</b> <i>count</i><b>[], const size_t</b>
<i>stride</i><b>[],</b> <i>imap</i><b>, char *</b>
<i>in</i><b>[])</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">These functions
are used for <i>mapped input</i>, which is like strided
input described above, except that an additional index
mapping vector is provided to specify the in-memory
arrangement of the data values. For an explanation of the
index mapping vector, see COMMON ARGUMENTS DESCRIPTIONS
below.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">


<h2>ATTRIBUTES
<a name="ATTRIBUTES"></a>
</h2>
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_att_text(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const char</b> <i>name</i><b>[],
nc_type</b> <i>xtype</i><b>, size_t</b> <i>len</i><b>, const
char</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_att_uchar(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const char</b> <i>name</i><b>[],
nc_type</b> <i>xtype</i><b>, size_t</b> <i>len</i><b>, const
unsigned char</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_att_schar(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const char</b> <i>name</i><b>[],
nc_type</b> <i>xtype</i><b>, size_t</b> <i>len</i><b>, const
signed char</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_att_short(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const char</b> <i>name</i><b>[],
nc_type</b> <i>xtype</i><b>, size_t</b> <i>len</i><b>, const
short</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_att_int(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const char</b> <i>name</i><b>[],
nc_type</b> <i>xtype</i><b>, size_t</b> <i>len</i><b>, const
int</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_att_long(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const char</b> <i>name</i><b>[],
nc_type</b> <i>xtype</i><b>, size_t</b> <i>len</i><b>, const
long</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_att_float(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const char</b> <i>name</i><b>[],
nc_type</b> <i>xtype</i><b>, size_t</b> <i>len</i><b>, const
float</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_att_double(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const char</b> <i>name</i><b>[],
nc_type</b> <i>xtype</i><b>, size_t</b> <i>len</i><b>, const
double</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_att_ubyte(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const char</b> <i>name</i><b>[],
nc_type</b> <i>xtype</i><b>, size_t</b> <i>len</i><b>, const
unsigned char</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_att_ushort(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const char</b> <i>name</i><b>[],
nc_type</b> <i>xtype</i><b>, size_t</b> <i>len</i><b>, const
unsigned short</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_att_uint(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const char</b> <i>name</i><b>[],
nc_type</b> <i>xtype</i><b>, size_t</b> <i>len</i><b>, const
unsigned int</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_att_int64(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const char</b> <i>name</i><b>[],
nc_type</b> <i>xtype</i><b>, size_t</b> <i>len</i><b>, const
long long</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_att_uint64(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const char</b> <i>name</i><b>[],
nc_type</b> <i>xtype</i><b>, size_t</b> <i>len</i><b>, const
unsigned long long</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_att_string(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const char</b> <i>name</i><b>[],
nc_type</b> <i>xtype</i><b>, size_t</b> <i>len</i><b>, const
char *</b> <i>out</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_put_att(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const char</b> <i>name</i><b>[],
nc_type</b> <i>xtype</i><b>, size_t</b> <i>len</i><b>, void
*</b> <i>ip</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p><b>int nc_get_att(int</b> <i>ncid</i><b>, int</b>
<i>varid</i><b>, const char</b> <i>name</i><b>[], void
**</b> <i>ip</i><b>)</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Unlike
variables, attributes do not have separate functions for
defining and writing values. This family of functions
defines a new attribute with a value or changes the value of
an existing attribute. If the attribute is new, or if the
space required to store the attribute value is greater than
before, the netCDF dataset must be in define mode. The
parameter <i>len</i> is the number of values from <i>out</i>
to transfer. It is often one, except that for
<b>nc_put_att_text()</b> it will usually be
<b>strlen(</b><i>out</i><b>)</b>.</p>

<p style="margin-left:22%; margin-top: 1em">For these
functions, the type component of the function name refers to
the in-memory type of the value, whereas the <i>xtype</i>
argument refers to the external type for storing the value.
An <b>NC_ERANGE</b> error results if a conversion between
these types is not possible. In this case the value is
represented with the appropriate fill-value for the
associated external type.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_attname(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, int</b>
<i>attnum</i><b>, char</b> <i>name</i><b>[])</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Gets the name
of an attribute, given its variable ID and attribute number.
This function is useful in generic applications that need to
get the names of all the attributes associated with a
variable, since attributes are accessed by name rather than
number in all other attribute functions. The number of an
attribute is more volatile than the name, since it can
change when other attributes of the same variable are
deleted. The attributes for each variable are numbered from
0 (the first attribute) to <i>nvatts</i>-1, where
<i>nvatts</i> is the number of attributes for the variable,
as returned from a call to <b>nc_inq_varnatts()</b>. If the
<i>name</i> parameter is a <b>NULL</b> pointer, no name will
be returned and no space need be allocated.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_att(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const char</b>
<i>name</i><b>[], nc_type*</b> <i>xtype</i><b>, size_t*</b>
<i>len</i><b>)</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_attid(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const char</b>
<i>name</i><b>[], int*</b> <i>attnum</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_atttype(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const char</b>
<i>name</i><b>[], nc_type*</b> <i>xtype</i><b>)</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_inq_attlen(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const char</b>
<i>name</i><b>[], size_t*</b> <i>len</i><b>)</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">These functions
return information about a netCDF attribute, given its
variable ID and name. The information returned is the
external type in <i>xtype</i> and the number of elements in
the attribute as <i>len</i>. If any of the return arguments
is a <b>NULL</b> pointer, the specified information will not
be returned.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_copy_att(int</b>
<i>ncid</i><b>, int</b> <i>varid_in</i><b>, const char</b>
<i>name</i><b>[], int</b> <i>ncid_out</i><b>, int</b>
<i>varid_out</i><b>)</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Copies an
attribute from one netCDF dataset to another. It can also be
used to copy an attribute from one variable to another
within the same netCDF. <i>ncid_in</i> is the netCDF ID of
an input netCDF dataset from which the attribute will be
copied. <i>varid_in</i> is the ID of the variable in the
input netCDF dataset from which the attribute will be
copied, or <b>NC_GLOBAL</b> for a global attribute.
<i>name</i> is the name of the attribute in the input netCDF
dataset to be copied. <i>ncid_out</i> is the netCDF ID of
the output netCDF dataset to which the attribute will be
copied. It is permissible for the input and output netCDF
ID&rsquo;s to be the same. The output netCDF dataset should
be in define mode if the attribute to be copied does not
already exist for the target variable, or if it would cause
an existing target attribute to grow. <i>varid_out</i> is
the ID of the variable in the output netCDF dataset to which
the attribute will be copied, or <b>NC_GLOBAL</b> to copy to
a global attribute.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_rename_att(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const char</b>
<i>name</i><b>[], const char</b>
<i>newname</i><b>[])</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Changes the
name of an attribute. If the new name is longer than the
original name, the netCDF must be in define mode. You cannot
rename an attribute to have the same name as another
attribute of the same variable. <i>name</i> is the original
attribute name. <i>newname</i> is the new name to be
assigned to the specified attribute. If the new name is
longer than the old name, the netCDF dataset must be in
define mode.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="83%">


<p style="margin-top: 1em"><b>int nc_del_att(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const char</b>
<i>name</i><b>[])</b></p> </td>
<td width="6%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Deletes an
attribute from a netCDF dataset. The dataset must be in
define mode.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_att_text(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const char</b>
<i>name</i><b>[], char</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_att_uchar(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const char</b>
<i>name</i><b>[], unsigned char</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_att_schar(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const char</b>
<i>name</i><b>[], signed char</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_att_short(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const char</b>
<i>name</i><b>[], short</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_att_int(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const char</b>
<i>name</i><b>[], int</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_att_long(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const char</b>
<i>name</i><b>[], long</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_att_float(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const char</b>
<i>name</i><b>[], float</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_att_double(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const char</b>
<i>name</i><b>[], double</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_att_ubyte(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const char</b>
<i>name</i><b>[], unsigned char</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_att_ushort(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const char</b>
<i>name</i><b>[], unsigned short</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_att_uint(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const char</b>
<i>name</i><b>[], unsigned int</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_att_int64(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const char</b>
<i>name</i><b>[], long long</b> <i>in</i><b>[])</b></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_att_uint64(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const char</b>
<i>name</i><b>[], unsigned long long</b>
<i>in</i><b>[])</b></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_get_att_string(int</b>
<i>ncid</i><b>, int</b> <i>varid</i><b>, const char</b>
<i>name</i><b>[], char *</b> <i>in</i><b>[])</b></p></td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Gets the
value(s) of a netCDF attribute, given its variable ID and
name. Converts from the external type to the type specified
in the function name, if possible, otherwise returns an
<b>NC_ERANGE</b> error. All elements of the vector of
attribute values are returned, so you must allocate enough
space to hold them. If you don&rsquo;t know how much space
to reserve, call <b>nc_inq_attlen()</b> first to find out
the length of the attribute.</p>

<h2>COMMON ARGUMENT DESCRIPTIONS
<a name="COMMON ARGUMENT DESCRIPTIONS"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">In this section
we define some common arguments which are used in the
&quot;FUNCTION DESCRIPTIONS&quot; section. <br>
int <i>ncid</i></p>

<p style="margin-left:22%;">is the netCDF ID returned from
a previous, successful call to <b>nc_open()</b> or
<b>nc_create()</b></p>

<p style="margin-left:11%;">char <i>name</i>[]</p>

<p style="margin-left:22%;">is the name of a dimension,
variable, or attribute. The names of dimensions, variables
and attributes consist of arbitrary sequences of
alphanumeric characters (as well as underscore
&rsquo;_&rsquo;, period &rsquo;.&rsquo; and hyphen
&rsquo;-&rsquo;), beginning with a letter or underscore.
(However names commencing with underscore are reserved for
system use.) Case is significant in netCDF names. A
zero-length name is not allowed. As an input argument, it
shall be a pointer to a 0-terminated string; as an output
argument, it shall be the address of a buffer in which to
hold such a string. The maximum allowable number of
characters (excluding the terminating 0) is
<b>NC_MAX_NAME</b>.</p>

<p style="margin-left:11%;">nc_type <i>xtype</i></p>

<p style="margin-left:22%;">specifies the external data
type of a netCDF variable or attribute and is one of the
following: <b>NC_BYTE</b>, <b>NC_CHAR</b>, <b>NC_SHORT</b>,
<b>NC_INT</b>, <b>NC_FLOAT</b>, or <b>NC_DOUBLE</b>. These
are used to specify 8-bit integers, characters, 16-bit
integers, 32-bit integers, 32-bit IEEE floating point
numbers, and 64-bit IEEE floating-point numbers,
respectively. (<b>NC_INT</b> corresponds to <b>NC_LONG</b>
in version 2, to specify a 32-bit integer).</p>

<p style="margin-left:11%;">int <i>dimids</i>[]</p>

<p style="margin-left:22%;">is a vector of dimension
ID&rsquo;s and defines the shape of a netCDF variable. The
size of the vector shall be greater than or equal to the
rank (i.e. the number of dimensions) of the variable
(<i>ndims</i>). The vector shall be ordered by the speed
with which a dimension varies: <i>dimids</i>[<i>ndims</i>-1]
shall be the dimension ID of the most rapidly varying
dimension and <i>dimids</i>[0] shall be the dimension ID of
the most slowly varying dimension. The maximum possible
number of dimensions for a variable is given by the symbolic
constant <b>NC_MAX_VAR_DIMS</b>.</p>

<p style="margin-left:11%;">int <i>dimid</i></p>

<p style="margin-left:22%;">is the ID of a netCDF
dimension. netCDF dimension ID&rsquo;s are allocated
sequentially from the non-negative integers beginning with
0.</p>

<p style="margin-left:11%;">int <i>ndims</i></p>

<p style="margin-left:22%;">is either the total number of
dimensions in a netCDF dataset or the rank (i.e. the number
of dimensions) of a netCDF variable. The value shall not be
negative or greater than the symbolic constant
<b>NC_MAX_VAR_DIMS</b>.</p>

<p style="margin-left:11%;">int <i>varid</i></p>

<p style="margin-left:22%;">is the ID of a netCDF variable
or (for the attribute-access functions) the symbolic
constant <b>NC_GLOBAL</b>, which is used to reference global
attributes. netCDF variable ID&rsquo;s are allocated
sequentially from the non-negative integers beginning with
0.</p>

<p style="margin-left:11%;">int* <i>natts</i></p>

<p style="margin-left:22%;">is the number of global
attributes in a netCDF dataset for the <b>nc_inquire()</b>
function or the number of attributes associated with a
netCDF variable for the <b>nc_varinq()</b> function.</p>

<p style="margin-left:11%;">const size_t <i>index</i>[]</p>

<p style="margin-left:22%;">specifies the indicial
coordinates of the netCDF data value to be accessed. The
indices start at 0; thus, for example, the first data value
of a two-dimensional variable is (0,0). The size of the
vector shall be at least the rank of the associated netCDF
variable and its elements shall correspond, in order, to the
variable&rsquo;s dimensions.</p>

<p style="margin-left:11%;">const size_t <i>start</i>[]</p>

<p style="margin-left:22%;">specifies the starting point
for accessing a netCDF variable&rsquo;s data values in terms
of the indicial coordinates of the corner of the array
section. The indices start at 0; thus, the first data value
of a variable is (0, 0, ..., 0). The size of the vector
shall be at least the rank of the associated netCDF variable
and its elements shall correspond, in order, to the
variable&rsquo;s dimensions.</p>

<p style="margin-left:11%;">const size_t <i>count</i>[]</p>

<p style="margin-left:22%;">specifies the number of indices
selected along each dimension of the array section. Thus, to
access a single value, for example, specify <i>count</i> as
(1, 1, ..., 1). Note that, for strided I/O, this argument
must be adjusted to be compatible with the <i>stride</i> and
<i>start</i> arguments so that the interaction of the three
does not attempt to access an invalid data co-ordinate. The
elements of the <i>count</i> vector correspond, in order, to
the variable&rsquo;s dimensions.</p>

<p style="margin-left:11%;">const size_t
<i>stride</i>[]</p>

<p style="margin-left:22%;">specifies the sampling interval
along each dimension of the netCDF variable. The elements of
the stride vector correspond, in order, to the netCDF
variable&rsquo;s dimensions (<i>stride</i>[0]) gives the
sampling interval along the most slowly varying dimension of
the netCDF variable). Sampling intervals are specified in
type-independent units of elements (a value of 1 selects
consecutive elements of the netCDF variable along the
corresponding dimension, a value of 2 selects every other
element, etc.). A <b>NULL</b> stride argument is treated as
(1, 1, ... , 1).</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="6%">


<p><i>imap</i></p></td>
<td width="5%"></td>
<td width="78%">


<p>specifies the mapping between the dimensions of a netCDF
variable and the in-memory structure of the internal data
array. The elements of the index mapping vector correspond,
in order, to the netCDF variable&rsquo;s dimensions
(<i>imap</i>[0] gives the distance between elements of the
internal array corresponding to the most slowly varying
dimension of the netCDF variable). Distances between
elements are specified in type-independent units of elements
(the distance between internal elements that occupy adjacent
memory locations is 1 and not the element&rsquo;s
byte-length as in netCDF 2). A <b>NULL</b> pointer means the
memory-resident values have the same structure as the
associated netCDF variable.</p></td></tr>
</table>

<h2>VARIABLE PREFILLING
<a name="VARIABLE PREFILLING"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">By default, the
netCDF interface sets the values of all newly-defined
variables of finite length (i.e. those that do not have an
unlimited, dimension) to the type-dependent fill-value
associated with each variable. This is done when
<b>nc_enddef()</b> is called. The fill-value for a variable
may be changed from the default value by defining the
attribute &lsquo;<b>_FillValue</b>&rsquo; for the variable.
This attribute must have the same type as the variable and
be of length one.</p>

<p style="margin-left:11%; margin-top: 1em">Variables with
an unlimited dimension are also prefilled, but on an
&lsquo;as needed&rsquo; basis. For example, if the first
write of such a variable is to position 5, then positions 0
through 4 (and no others) would be set to the fill-value at
the same time.</p>

<p style="margin-left:11%; margin-top: 1em">This default
prefilling of data values may be disabled by or&rsquo;ing
the <b>NC_NOFILL</b> flag into the mode parameter of
<b>nc_open()</b> or <b>nc_create()</b>, or, by calling the
function <b>nc_set_fill()</b> with the argument
<b>NC_NOFILL</b>. For variables that do not use the
unlimited dimension, this call must be made before
<b>nc_enddef()</b>. For variables that use the unlimited
dimension, this call may be made at any time.</p>

<p style="margin-left:11%; margin-top: 1em">One can obtain
increased performance of the netCDF interface by using this
feature, but only at the expense of requiring the
application to set every single data value. The performance
enhancing behavior of this function is dependent on the
particulars of the implementation and dataset format. The
flag value controlled by <b>nc_set_fill()</b> is per netCDF
ID, not per variable or per write. Allowing this to change
affects the degree to which a program can be effectively
parallelized. Given all of this, we state that the use of
this feature may not be available (or even needed) in future
releases. Programmers are cautioned against heavy reliance
upon this feature.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc_setfill(int</b>
<i>ncid</i><b>, int</b> <i>fillmode</i><b>, int*</b>
<i>old_fillemode</i><b>)</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">(Corresponds to
<b>ncsetfill()</b> in version 2)</p>

<p style="margin-left:22%; margin-top: 1em">Determines
whether or not variable prefilling will be done (see above).
The netCDF dataset shall be writable. <i>fillmode</i> is
either <b>NC_FILL</b> to enable prefilling (the default) or
<b>NC_NOFILL</b> to disable prefilling. This function
returns the previous setting in <i>old_fillmode</i>.</p>

<h2>MPP FUNCTION DESCRIPTIONS
<a name="MPP FUNCTION DESCRIPTIONS"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">Additional
functions for use on SGI/Cray MPP machines (_CRAYMPP). These
are used to set and inquire which PE is the base for MPP for
a particular netCDF. These are only relevant when using the
SGI/Cray &lsquo;&lsquo;global&rsquo;&rsquo; Flexible File
I/O layer and desire to have only a subset of PEs to open
the specific netCDF file. For technical reasons, these
functions are available on all platforms. On a platform
other than SGI/Cray MPP, it is as if only processor
available were processor 0.</p>

<p style="margin-left:11%; margin-top: 1em">To use this
feature, you need to specify a communicator group and call
<b>glio_group_mpi()</b> or <b>glio_group_shmem()</b> prior
to the netCDF <b>nc_open()</b> and <b>nc_create()</b>
calls.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc__create_mp(const
char</b> <i>path</i><b>[], int</b> <i>cmode</i><b>,
size_t</b> <i>initialsize</i><b>, int</b> <i>pe</i><b>,
size_t*</b> <i>chunksize</i><b>, int*</b>
<i>ncid</i><b>)</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Like
<b>nc__create()</b> but allows the base PE to be set.</p>

<p style="margin-left:22%; margin-top: 1em">The argument
<i>pe</i> sets the base PE at creation time. In the MPP
environment, <b>nc__create()</b> and <b>nc_create()</b> set
the base PE to processor zero by default.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="89%">


<p style="margin-top: 1em"><b>int nc__open_mp(const
char</b> <i>path</i><b>[], int</b> <i>mode</i><b>, int</b>
<i>pe</i><b>, size_t*</b> <i>chunksize</i><b>, int*</b>
<i>ncid</i><b>)</b></p> </td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Like
<b>nc__open()</b> but allows the base PE to be set. The
argument <i>pe</i> sets the base PE at creation time. In the
MPP environment, <b>nc__open()</b> and <b>nc_open()</b> set
the base PE to processor zero by default.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="57%">


<p style="margin-top: 1em"><b>int nc_inq_base_pe(int</b>
<i>ncid</i><b>, int*</b> <i>pe</i><b>)</b></p></td>
<td width="32%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Inquires of the
netCDF dataset which PE is being used as the base for MPP
use. This is safe to use at any time.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="55%">


<p style="margin-top: 1em"><b>int nc_set_base_pe(int</b>
<i>ncid</i><b>, int</b> <i>pe</i><b>)</b></p></td>
<td width="34%">
</td></tr>
</table>

<p style="margin-left:22%; margin-top: 1em">Resets the base
PE for the netCDF dataset. Only perform this operation when
the affected communicator group synchronizes before and
after the call. This operation is very risky and should only
be contemplated under only the most extreme cases.</p>

<h2>ENVIRONMENT VARIABLES
<a name="ENVIRONMENT VARIABLES"></a>
</h2>



<p style="margin-left:11%; margin-top: 1em"><b>NETCDF_FFIOSPEC</b></p>

<p style="margin-left:17%;">Specifies the Flexible File I/O
buffers for netCDF I/O when executing under the UNICOS
operating system (the variable is ignored on other operating
systems). An appropriate specification can greatly increase
the efficiency of netCDF I/O -- to the extent that it can
actually surpass FORTRAN binary I/O. This environment
variable has been made a little more generalized, such that
other FFIO option specifications can now be added. The
default specification is <b>bufa:336:2</b>, unless a current
FFIO specification is in operation, which will be honored.
See UNICOS Flexible File I/O for more information.</p>

<h2>MAILING-LISTS
<a name="MAILING-LISTS"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">Both a mailing
list and a digest are available for discussion of the netCDF
interface and announcements about netCDF bugs, fixes, and
enhancements. To begin or change your subscription to either
the mailing-list or the digest, send one of the following in
the body (not the subject line) of an email message to
&quot;majordomo@unidata.ucar.edu&quot;. Use your email
address in place of <i>jdoe@host.inst.domain</i>.</p>

<p style="margin-left:11%; margin-top: 1em">To subscribe to
the netCDF mailing list:</p>

<p style="margin-left:22%;"><b>subscribe netcdfgroup</b>
<i>jdoe@host.inst.domain</i></p>

<p style="margin-left:11%;">To unsubscribe from the netCDF
mailing list:</p>

<p style="margin-left:22%;"><b>unsubscribe netcdfgroup</b>
<i>jdoe@host.inst.domain</i></p>

<p style="margin-left:11%;">To subscribe to the netCDF
digest:</p>

<p style="margin-left:22%;"><b>subscribe netcdfdigest</b>
<i>jdoe@host.inst.domain</i></p>

<p style="margin-left:11%;">To unsubscribe from the netCDF
digest:</p>

<p style="margin-left:22%;"><b>unsubscribe netcdfdigest</b>
<i>jdoe@host.inst.domain</i></p>

<p style="margin-left:11%;">To retrieve the general
introductory information for the mailing list:</p>

<p style="margin-left:22%;"><b>info netcdfgroup</b></p>

<p style="margin-left:11%;">To get a synopsis of other
majordomo commands:</p>

<p style="margin-left:22%;"><b>help</b></p>

<h2>SEE ALSO
<a name="SEE ALSO"></a>
</h2>



<p style="margin-left:11%; margin-top: 1em"><b>ncdump</b>(1),
<b>ncgen</b>(1), <b>netcdf</b>(3).</p>

<p style="margin-left:11%; margin-top: 1em"><i>netCDF
User&rsquo;s Guide</i>, published by the Unidata Program
Center, University Corporation for Atmospheric Research,
located in Boulder, Colorado.</p>

<p style="margin-left:11%; margin-top: 1em">NetCDF home
page at http:/www.unidata.ucar.edu/netcdf.</p>
<hr>
</body>
</html>