/usr/share/doc/libhdf4/html-reference/RM_Section_II_SD.html is in libhdf4-doc 4.2r4-12build1.
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 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 | <!?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="GENERATOR" content="Quadralay WebWorks Publisher 2003 for FrameMaker 8.0.8.2296" />
<meta name="TEMPLATEBASE" content="Dynamic HTML" />
<meta name="LASTUPDATED" content="07/05/09 22:29:35" />
<title>SDattrinfo/sfgainfo</title>
<link rel="StyleSheet" href="document.css" type="text/css" media="all" />
<link rel="StyleSheet" href="catalog.css" type="text/css" media="all" />
<link rel="first" title="First" href="RM_Front.html" />
<link rel="last" title="Last" href="RM_Copyright.html" />
<link rel="previous" title="Previous" href="RM_Section_II_H.html" />
<link rel="next" title="Next" href="RM_Section_II_V.html" />
<script type="text/javascript" language="JavaScript1.2" src="scripts/expand.js"></script>
<script type="text/javascript" language="JavaScript1.2" src="scripts/seealso.js"></script>
<script type="text/javascript" language="JavaScript1.2">
<!--
var WebWorksSeeAlso = new WebWorksSeeAlso_Object();
// -->
</script>
</head>
<body>
<p>
<table id="SummaryNotReq1" border="0" width="610"cellspacing="0" cellpadding="0">
<tr>
<td align="left">
<img id="LongDescNotReq1" border="0"src="images/hdf_logo.jpg" width="90" height="70" alt="The HDF Group" valign="top" />
</td>
<td valign="middle" align="center">
<b><H1>HDF Reference Manual</H1></b>
</td>
</tr>
</table>
</p>
<hr />
<blockquote>
<a name="wp423167"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDattrinfo/sfgainfo
</h2>
<a name="wp423169"> </a><p style="font-weight: normal" class="pSignature">
intn SDattrinfo(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">obj_id,</span> int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">attr_index</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">attr_name</span>, int32 *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">data_type</span>, int32 *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">count</span>)
</p>
<a name="wp534272"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp510991table510989">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp510991"> </a><div style="margin-top: 0pt" class="pCellVariable">
obj_id
</div>
</td>
<td><a name="wp510993"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp510995"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Identifier of the object to which the attribute is attached to
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp510997"> </a><div style="margin-top: 0pt" class="pCellVariable">
attr_index
</div>
</td>
<td><a name="wp510999"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp511001"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Index of the attribute
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511003"> </a><div style="margin-top: 0pt" class="pCellVariable">
attr_name
</div>
</td>
<td><a name="wp511005"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp511007"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Name of the attribute
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511009"> </a><div style="margin-top: 0pt" class="pCellVariable">
data_type
</div>
</td>
<td><a name="wp511011"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp511013"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data type of the attribute values
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511015"> </a><div style="margin-top: 0pt" class="pCellVariable">
count
</div>
</td>
<td><a name="wp511017"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp511019"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Total number of values in the attribute
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511022table511020">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511022"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp511024"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Retrieves information about an attribute.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511026"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp585922"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511030"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp511032"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDattrinfo</b> retrieves the name, data type, and number of values of the attribute specified by its index, <em class="cVarName">attr_index</em>, and stores them in the parameters <em class="cVarName">attr_name</em>, <em class="cVarName">data_type</em>, and <em class="cVarName">count</em>, respectively. This routine should be used before reading the values of an attribute with <b class="cFunctionName">SDreadattr</b>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511034"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp547907"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The parameter <em class="cVarName">obj_id</em> can be either an SD interface identifier (<em class="cVarName">sd_id</em>), returned by <b class="cFunctionName">SDstart</b>, a data set identifier (<em class="cVarName">sds_id</em>), returned by <b class="cFunctionName">SDselect</b>, or a dimension identifier (<em class="cVarName">dim_id</em>), returned by <b class="cFunctionName">SDgetdimid</b>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511038"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511048"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Valid values of the parameter <em class="cVarName">attr_index</em> range from <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code> to the number of attributes attached to the object - 1.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp516904"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp516906"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Valid values of the parameter <em class="cVarName">data_type</em> can be found in Table 1A of Section I of this manual.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511085table511049">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511085"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp511087"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfgainfo(obj_id, attr_index, attr_name, data_type, count)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp520202"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp520204"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) attr_name
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp520198"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp520200"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer obj_id, attr_index, data_type, count
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp540097"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDcheckempty/sfchempty
</h2>
<a name="wp547433"> </a><p style="font-weight: normal" class="pSignature">
int32 SDcheckempty( int32 <em class="cVarName">sds_id</em>, intn *<em class="cVarName">emptySDS </em>)
</p>
<a name="wp540176"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp540101table540099">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp540101"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp540103"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp540105"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
SDS identifier
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp540107"> </a><div style="margin-top: 0pt" class="pCellVariable">
emptySDS
</div>
</td>
<td><a name="wp540109"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp540111"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Boolean value indicating whether the SDS is empty
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp540132table540130">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp540132"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp540134"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Determines whether a scientific dataset (an SDS) is empty.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp540136"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp585930"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp540140"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp540142"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDcheckempty</b> sets the parameter <em class="cVarName">emptySDS</em> to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">TRUE</code> if the dataset identified by <em class="cVarName">sds_id</em> has not been written with data, and to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FALSE</code>, otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp547688"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp547690"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The Fortran routine, <b class="cFunctionName">sfchempty</b>, returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">1</code> in <em class="cVarName">emptySDS</em> if the dataset is empty and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code> otherwise.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp540165table540163">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp540165"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp540167"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfchempty(sds_id, emptySDS)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp540169"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp540171"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id, emptySDS
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp547754"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDcreate/sfcreate
</h2>
<a name="wp431353"> </a><p style="font-weight: normal" class="pSignature">
int32 SDcreate(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sd_id</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">name</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">data_type</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">rank</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">dimsizes</span>[])
</p>
<a name="wp534274"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511108table511106">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511108"> </a><div style="margin-top: 0pt" class="pCellVariable">
sd_id
</div>
</td>
<td><a name="wp511110"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp511112"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
SD interface identifier returned by <b class="cFunctionName">SDstart</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511114"> </a><div style="margin-top: 0pt" class="pCellVariable">
name
</div>
</td>
<td><a name="wp511116"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp511118"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Name of the data set
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511120"> </a><div style="margin-top: 0pt" class="pCellVariable">
data_type
</div>
</td>
<td><a name="wp511122"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp511124"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data type for the values in the data set
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511126"> </a><div style="margin-top: 0pt" class="pCellVariable">
rank
</div>
</td>
<td><a name="wp511128"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp511130"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Number of the data set dimensions
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511132"> </a><div style="margin-top: 0pt" class="pCellVariable">
dimsizes
</div>
</td>
<td><a name="wp511134"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp511136"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Array containing the size of each dimension
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511139table511137">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511139"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp511141"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Creates a new data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511143"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp511145"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns the data set identifier (<em class="cVarName">sds_id) </em>if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511147"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp511149"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDcreate</b> creates a data set with the name specified by the parameter <em class="cVarName">name</em>, the values of the data type specified by parameter <em class="cVarName">data_type</em>, the number of dimensions specified by the parameter <em class="cVarName">rank</em>, and the dimension sizes specified by the array <em class="cVarName">dimsizes</em>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp518273"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp518275"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Once a data set has been created, it is not possible to change its name, data type, or rank. However, it is possible to create a data set and close the file before writing any data values to it. The values can be added or modified at a future time. To add data or modify an existing data set, use <b class="cFunctionName">SDselect</b> to get the data set identifier instead of <b class="cFunctionName">SDcreate</b>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511151"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp549862"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If the parameter <em class="cVarName">name</em> is <code style="font-family: Courier New; font-size: 8pt" class="cDefName">NULL</code> in C or an empty string in Fortran, the default name "Data Set" will be generated. The length of the name specified by the <em class="cVarName">name</em> parameter is no longer limited to 64 characters starting in HDF 4.2r2. Note that when an older version of the library reads a data set, which was created by a library of version 4.2r2 or later and has the name that is longer than 64 characters, the retrieved name will contain some garbage after 64 characters.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511155"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511173"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The calling program must ensure that the length of the <em class="cVarName">dimsizes</em> array is the value of the <em class="cVarName">rank</em> parameter, which is between <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code> and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">MAX_VAR_DIMS</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">32</code>). Note that, in order for HDF4 and NetCDF models to work together, HDF allows SDS to have rank 0. However, there is no intention for data to be written to this type of SDS, but only to store attribute as part of the data description. Consequently, setting compression and setting chunk are disallowed.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp516931"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp516933"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
To create a data set with an unlimited dimension, assign the value of <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SD_UNLIMITED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) to <em class="cVarName">dimsizes</em>[0] in C and to <em class="cVarName">dimsizes</em>(<em class="cVarName">rank</em>) in Fortran.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511163"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511177"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The <em class="cVarName">data_type</em> parameter can contain any data type supported by the HDF library. These data types are listed in Table 1A in Section I of this manual.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp547885"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp547887"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
See the notes regarding the potential performance impact of unlimited dimension data sets in Section 14.4.3, "Unlimited Dimension Data Sets (SDSs and Vdatas) and Performance." the <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">HDF User's Guide</span>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp548649"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Note
</div></td>
<td><a name="wp568261"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">Regarding an important difference between the SD and GR interfaces: <br /></span>The SD and GR interfaces differ in the correspondence between the dimension order in parameter arrays such as <em class="cVarName">start</em>, <em class="cVarName">stride</em>, <em class="cVarName">edge</em>, and <em class="cVarName">dimsizes</em> and the dimension order in the <em class="cVarName">data</em> array. See the <b class="cFunctionName">SDreaddata </b>and<b class="cFunctionName"> GRreadimage </b>reference manual pages for discussions of the SD and GR approaches, respectively.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp548642"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp565624"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
When writing applications or tools to manipulate both images and two-dimensional SDs, this crucial difference between the interfaces must be taken into account. While the underlying data is stored in row-major order in both cases, the API parameters are not expressed in the same way. Consider the example of an SD data set and GR image that are stored as identically-shaped arrays of X columns by Y rows and accessed via the <b class="cFunctionName">SDreaddata</b> and <b class="cFunctionName">GRreadimage</b> functions, respectively. Both functions take the parameters <em class="cVarName">start</em>, <em class="cVarName">stride</em>, and <em class="cVarName">edge</em>.
</div>
<div class="pSmartList1"><ul class="pSmartList1">
<div class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal"><ul class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal">
<a name="wp565644"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">o</span> For <b class="cFunctionName">SDreaddata</b>, those parameters are expressed in (<em class="cVarName">y</em>,<em class="cVarName">x</em>) or [<em class="cVarName">row</em>,<em class="cVarName">column</em>] order. For example, <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">start[0]</code> is the starting point in the Y dimension and <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">start[1]</code> is the starting point in the X dimension. The same ordering holds true for all SD data set manipulation functions.</div>
<a name="wp565645"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">o</span> For <b class="cFunctionName">GRreadimage</b>, those parameters are expressed in (<em class="cVarName">x</em>,<em class="cVarName">y</em>) or [<em class="cVarName">column</em>,<em class="cVarName">row</em>] order. For example, <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">start[0]</code> is the starting point in the X dimension and <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">start[1]</code> is the starting point in the Y dimension. The same ordering holds true for all GR functions manipulating image data.</div>
</ul></div>
</ul></div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511210table511178">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511210"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp511212"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfcreate(sd_id, name, data_type, rank, dimsizes)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511222"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511224"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) name
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511226"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511228"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sd_id, data_type, rank, dimsizes(*)
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp430440"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDdiminfo/sfgdinfo
</h2>
<a name="wp430442"> </a><p style="font-weight: normal" class="pSignature">
intn SDdiminfo(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">dim_id</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">name</span>, int32 *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">size</span>, int32 *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">data_type</span>, int32 *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">num_attrs</span>)
</p>
<a name="wp534276"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511233table511231">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511233"> </a><div style="margin-top: 0pt" class="pCellVariable">
dim_id
</div>
</td>
<td><a name="wp511235"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp511237"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Dimension identifier returned by <b class="cFunctionName">SDgetdimid</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511239"> </a><div style="margin-top: 0pt" class="pCellVariable">
name
</div>
</td>
<td><a name="wp511241"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp511243"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Name of the dimension
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511245"> </a><div style="margin-top: 0pt" class="pCellVariable">
size
</div>
</td>
<td><a name="wp511247"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp511249"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Size of the dimension
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511251"> </a><div style="margin-top: 0pt" class="pCellVariable">
data_type
</div>
</td>
<td><a name="wp511253"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp511255"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data type of the dimension scale
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511257"> </a><div style="margin-top: 0pt" class="pCellVariable">
num_attrs
</div>
</td>
<td><a name="wp511259"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp511261"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Number of attributes assigned to the dimension
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511264table511262">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511264"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp511266"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Retrieves information about a dimension.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511268"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp585937"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511272"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp511274"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDdiminfo</b> retrieves the name, size, data type, and number of values of the dimension specified by the parameter <em class="cVarName">dim_id</em>, and stores them in the parameters <em class="cVarName">name</em>, <em class="cVarName">size</em>, <em class="cVarName">data_type</em>, and <em class="cVarName">num_attrs</em>, respectively.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp516941"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp516943"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If the output value of the parameter <em class="cVarName">size</em> is set to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>, then the dimension specified by the <em class="cVarName">dim_id</em> parameter is unlimited. To get the number of records of an unlimited dimension, use <b class="cFunctionName">SDgetinfo</b>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511280"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511300"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If scale information has been stored for this dimension via <b class="cFunctionName">SDsetdimscale</b>, the <em class="cVarName">data_type</em> parameter will contain the data type. Valid data types can be found in Table 1A of Section I of this manual. If no scale information has been stored for this dimension, the value returned in the <em class="cVarName">data_type</em> parameter will be <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511284"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511302"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If the user has not named the dimension via <b class="cFunctionName">SDsetdimname</b>, a default dimension name of "<code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">fakeDim[x]</code>" will be generated by the library, where <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">[x]</code> denotes the dimension index. If the name is not desired, the parameter <em class="cVarName">name</em> can be set to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">NULL</code> in C and an empty string in Fortran.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511375table511303">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511375"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp511377"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfgdinfo(dim_id, name, size, data_type, num_attrs)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511387"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511389"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) name
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511391"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511393"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer dim_id, size, data_type, num_attrs
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp430467"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDend/sfend
</h2>
<a name="wp430469"> </a><p style="font-weight: normal" class="pSignature">
intn SDend(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sd_id</span>)
</p>
<a name="wp534278"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511400table511398">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511400"> </a><div style="margin-top: 0pt" class="pCellVariable">
sd_id
</div>
</td>
<td><a name="wp511402"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp511404"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
SD interface identifier returned by <b class="cFunctionName">SDstart</b>
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511407table511405">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511407"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp511409"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Terminates access to an SD interface.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511411"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp585944"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511415"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp511417"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDend</b> closes the file and frees memory allocated by the library when SD interface activities are completed. If the calling program exits without invoking this routine, recent changes made to the in-core file data are likely not to be flushed to the file. Note that each <b class="cFunctionName">SDstart</b> must have a matching <b class="cFunctionName">SDend</b>.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511420table511418">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511420"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp511422"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfend(sd_id)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511428"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511430"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sd_id
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp430485"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDendaccess/sfendacc
</h2>
<a name="wp430487"> </a><p style="font-weight: normal" class="pSignature">
intn SDendaccess(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>)
</p>
<a name="wp534280"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511437table511435">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511437"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp511439"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp511441"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511444table511442">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511444"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp511446"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Terminates access to a data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511448"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp585951"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511452"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp511454"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDendaccess</b> frees the memory taken up by the HDF library's data structures devoted to the data set identified by the parameter <em class="cVarName">sds_id</em>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511456"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
</div></td>
<td><a name="wp511460"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Failing to call this routine after all operations on the specified data set are complete may result in loss of data. This routine must be called once for each call to <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511465table511463">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511465"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp511467"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfendacc(sds_id)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511473"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511475"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp430504"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDfileinfo/sffinfo
</h2>
<a name="wp430506"> </a><p style="font-weight: normal" class="pSignature">
intn SDfileinfo(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sd_id</span>, int32 *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">num_datasets</span>, int32 *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">num_global_attrs</span>)
</p>
<a name="wp534282"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511482table511480">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511482"> </a><div style="margin-top: 0pt" class="pCellVariable">
sd_id
</div>
</td>
<td><a name="wp511484"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp511486"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
SD interface identifier returned by <b class="cFunctionName">SDstart</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511488"> </a><div style="margin-top: 0pt" class="pCellVariable">
num_datasets
</div>
</td>
<td><a name="wp511490"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp511492"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Number of data sets in the file
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511494"> </a><div style="margin-top: 0pt" class="pCellVariable">
num_global_attrs
</div>
</td>
<td><a name="wp511496"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp511498"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Number of global attributes in the file
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511501table511499">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511501"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp511503"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Retrieves the number of data sets and the number of global attributes in a file.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511505"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp585958"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511509"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp518645"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDfileinfo</b> returns the number of data sets in the parameter <em class="cVarName">num_datasets</em> and the number of global attributes in the parameter <em class="cVarName">num_global_attrs</em>. The term "global attributes" refers to attributes that are assigned to the file. The global attributes are created by <b class="cFunctionName">SDsetattr</b> using an SD interface identifier (<em class="cVarName">sd_id</em>) rather than a data set identifier (<em class="cVarName">sds_id</em>).
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511513"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511521"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The value returned by the parameter <em class="cVarName">num_datasets</em> includes the number of coordinate variable data sets. To determine if the data set is a coordinate variable, use <b class="cFunctionName">SDiscoordvar</b>.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511526table511524">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511526"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp511528"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sffinfo(sd_id, num_datasets, num_global_attrs)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511534"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511536"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sd_id, num_datasets, num_global_attrs
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp430529"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDfindattr/sffattr
</h2>
<a name="wp430531"> </a><p style="font-weight: normal" class="pSignature">
int32 SDfindattr(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">obj_id</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">attr_name</span>)
</p>
<a name="wp534284"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511544table511542">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511544"> </a><div style="margin-top: 0pt" class="pCellVariable">
obj_id
</div>
</td>
<td><a name="wp511546"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp511548"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Identifier of the object to which the attribute is attached
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511550"> </a><div style="margin-top: 0pt" class="pCellVariable">
attr_name
</div>
</td>
<td><a name="wp511552"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp511554"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Name of the attribute
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511557table511555">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511557"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp511559"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Finds the index of an attribute given its name.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511561"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp511563"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns the index if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511565"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp511567"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDfindattr</b> retrieves the index of the object's attribute with the name specified by the parameter <em class="cVarName">attr_name</em>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp516989"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp516991"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The attribute is attached to the object specified by the parameter <em class="cVarName">obj_id</em>. The parameter <em class="cVarName">obj_id</em> can be either an SD interface identifier (<em class="cVarName">sd_id</em>), returned by <b class="cFunctionName">SDstart</b>, a data set identifier (<em class="cVarName">sds_id</em>), returned by <b class="cFunctionName">SDselect</b>, or a dimension identifier (<em class="cVarName">dim_id</em>), returned by <b class="cFunctionName">SDgetdimid</b>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511569"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511577"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Wildcard characters are not allowed in the parameter <em class="cVarName">attr_name</em>. <b class="cFunctionName">SDfindattr</b> searches for the name specified in the parameter <em class="cVarName">attr_name</em> in a case-sensitive manner.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511582table511580">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511582"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp511584"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sffattr(obj_id, attr_name)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511590"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511592"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer obj_id
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511594"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511596"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) attr_name
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp441065"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDgetcal/sfgcal
</h2>
<a name="wp430551"> </a><p style="font-weight: normal" class="pSignature">
intn SDgetcal(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>, float64 *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">cal</span>, float64 *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">cal_err</span>, float64 *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">offset</span>, float64 *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">offset_err</span>, int32 *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">data_type</span>)
</p>
<a name="wp534286"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511603table511601">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511603"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp511605"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp511607"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511609"> </a><div style="margin-top: 0pt" class="pCellVariable">
cal
</div>
</td>
<td><a name="wp511611"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp511613"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Calibration factor
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511615"> </a><div style="margin-top: 0pt" class="pCellVariable">
cal_err
</div>
</td>
<td><a name="wp511617"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp511619"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Calibration error
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511621"> </a><div style="margin-top: 0pt" class="pCellVariable">
offset
</div>
</td>
<td><a name="wp511623"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp511625"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Uncalibrated offset
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511627"> </a><div style="margin-top: 0pt" class="pCellVariable">
offset_err
</div>
</td>
<td><a name="wp511629"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp511631"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Uncalibrated offset error
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511633"> </a><div style="margin-top: 0pt" class="pCellVariable">
data_type
</div>
</td>
<td><a name="wp511635"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp511637"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data type of uncalibrated data
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511640table511638">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511640"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp511642"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Retrieves the calibration information associated with a data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511644"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp585965"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511648"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp511650"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDgetcal</b> reads the calibration record attached to the data set identified by the parameter <em class="cVarName">sds_id</em>. A calibration record is comprised of four 64-bit floating point values followed by a 32-bit integer. The information is listed in the following table:
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="center">
<table border="1" cellpadding="3" cellspacing="1" bgcolor="White" bordercolor="#FFFFFF" id="wp516313table511653">
<caption></caption>
<tr> <td><a name="wp516313"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
cal
</div>
</td>
<td><a name="wp516315"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
calibration factor
</div>
</td>
</tr>
<tr> <td><a name="wp516317"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
cal_err
</div>
</td>
<td><a name="wp516319"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
calibration error
</div>
</td>
</tr>
<tr> <td><a name="wp516321"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
offset
</div>
</td>
<td><a name="wp516323"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
uncalibrated offset
</div>
</td>
</tr>
<tr> <td><a name="wp516325"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
offset_err
</div>
</td>
<td><a name="wp516327"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
uncalibrated offset error
</div>
</td>
</tr>
<tr> <td><a name="wp516329"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
data_type
</div>
</td>
<td><a name="wp516331"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
data type of the uncalibrated data
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp519016table511694">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp519016"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp519018"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The relationship between a calibrated value <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">cal_value</span> and the original value <em class="cVarName">orig_value</em> is defined as <em class="cVarName">orig_value</em> = <em class="cVarName">cal</em> * (<em class="cVarName">cal_value</em> - <em class="cVarName">offset</em>).
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp519020"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp519022"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The variable <em class="cVarName">offset_err</em> contains a potential error of <em class="cVarName">offset</em>, and <em class="cVarName">cal_err</em> contains a potential error of <em class="cVarName">cal</em>. Currently the calibration record is provided for information only. The SD interface performs no operations on the data based on the calibration tag.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511739table511703">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511739"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp511741"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfgcal(sds_id, cal, cal_err, offset, offset_err, data_type)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511751"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511753"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id, data_type
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511755"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511757"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
real*8 cal, cal_err, offset, offset_err
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp442153"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDgetchunkinfo/sfgichnk
</h2>
<a name="wp539772"> </a><p style="font-weight: normal" class="pSignature">
intn SDgetchunkinfo(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>, HDF_CHUNK_DEF *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">cdef</span>, int32 *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">flag</span>)
</p>
<a name="wp539898"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp539775table539773">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp539775"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp539777"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp539779"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp539787"> </a><div style="margin-top: 0pt" class="pCellVariable">
<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">C only:</span>
</div>
</td>
<td><a name="wp539789"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
</td>
<td><a name="wp539791"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp539793"> </a><div style="margin-top: 0pt" class="pCellVariable">
cdef
</div>
</td>
<td><a name="wp539795"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp539797"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Pointer to the chunk definition
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp539799"> </a><div style="margin-top: 0pt" class="pCellVariable">
flag
</div>
</td>
<td><a name="wp539801"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp539803"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Compression flag
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp539811"> </a><div style="margin-top: 0pt" class="pCellVariable">
<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">Fortran only:</span>
</div>
</td>
<td><a name="wp539813"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
</td>
<td><a name="wp539815"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp539817"> </a><div style="margin-top: 0pt" class="pCellVariable">
dim_length
</div>
</td>
<td><a name="wp539819"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp539821"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Array of chunk dimensions
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp539823"> </a><div style="margin-top: 0pt" class="pCellVariable">
flag
</div>
</td>
<td><a name="wp539825"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp539827"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Compression flag
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp539830table539828">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp539830"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp539832"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Retrieves chunking information for a data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp539834"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp585972"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp539838"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp539840"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDgetchunkinfo</b> retrieves chunking information about the data set identified by the parameter <em class="cVarName">sds_id</em> into the parameters <em class="cVarName">cdef</em> and <em class="cVarName">flag</em> in C, and to the parameters <em class="cVarName">dim_length</em> and <em class="cVarName">flag</em> in Fortran.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp539842"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp539844"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Currently, only information about chunk dimensions is retrieved into the corresponding <em class="cVarName">cdef</em> structure element for each type of compression in C, and in the <em class="cVarName">dim_length</em> array in Fortran. No information on compression parameters is available in the <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">comp</code> structure of the <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">HDF_CHUNK_DEF</code> union. Refer to the page on <b class="cFunctionName">SDsetchunk</b> in this manual for specific information on the <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">HDF_CHUNK_DEF</code> union.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp599490"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp599492"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If the data set is empty, <b class="cFunctionName">SDgetchunkinfo</b> will fail. Thus, application must first verify that the data set has been written with data, before calling <b class="cFunctionName">SDgetchunkinfo</b>. <b class="cFunctionName">SDcheckempty</b> determines whether the data set is empty.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp539846"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp539848"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The value returned in the <em class="cVarName">flag</em> parameter indicates the data set type (i.e., if the data set is not chunked, chunked, and chunked and compressed).
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp539850"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp539852"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If the chunk length for each dimension is not needed, <code style="font-family: Courier New; font-size: 8pt" class="cDefName">NULL</code> can be passed in as the value of the <em class="cVarName">cdef</em> parameter in C.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp539854"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp539856"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The following table shows the type of the data set, possible values of the <em class="cVarName">flag</em> parameter, and the corresponding <em class="cVarName">cdef</em> structure element filled with the chunk's dimensions.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="center">
<table border="1" cellpadding="3" cellspacing="1" bgcolor="White" bordercolor="#FFFFFF" id="wp548832table539857">
<caption></caption>
<tr> <th><a name="wp548832"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: bold; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: center; text-decoration: none; text-indent: 0pt; text-transform: none">
Type of Data Set
</div>
</th>
<th><a name="wp548834"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: bold; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: center; text-decoration: none; text-indent: 0pt; text-transform: none">
Values of <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">flag</span> in C
</div>
</th>
<th><a name="wp548836"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: bold; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: center; text-decoration: none; text-indent: 0pt; text-transform: none">
Values of <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">flag</span> in Fortran
</div>
</th>
<th><a name="wp548838"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: bold; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: center; text-decoration: none; text-indent: 0pt; text-transform: none">
<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">cdef</span> Structure Element Filled with the Chunk's Dimensions
</div>
</th>
</tr>
<tr> <td><a name="wp548840"> </a><div class="pCellBody">
Not chunked
</div>
</td>
<td><a name="wp548842"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
HDF_NONE
</div>
</td>
<td><a name="wp548844"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
-1
</div>
</td>
<td><a name="wp548846"> </a><div class="pCellBody">
None
</div>
</td>
</tr>
<tr> <td><a name="wp548848"> </a><div class="pCellBody">
Chunked
</div>
</td>
<td><a name="wp548850"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
HDF_CHUNK
</div>
</td>
<td><a name="wp548852"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
0
</div>
</td>
<td><a name="wp548854"> </a><div class="pCellBody">
cdef.chunk_lengths[]
</div>
</td>
</tr>
<tr> <td><a name="wp583456"> </a><div class="pCellBody">
Chunked and compressed with either the run-length encoding (RLE), Skipping Huffman, GZIP, or Szip compression algorithms
</div>
</td>
<td><a name="wp548858"> </a><div class="pCellBody">
HDF_CHUNK | HDF_COMP
</div>
</td>
<td><a name="wp548860"> </a><div class="pCellBody">
1
</div>
</td>
<td><a name="wp548862"> </a><div class="pCellBody">
cdef.comp.chunk_lengths[]
</div>
</td>
</tr>
<tr> <td><a name="wp548864"> </a><div class="pCellBody">
Chunked and compressed with NBIT compression
</div>
</td>
<td><a name="wp548866"> </a><div class="pCellBody">
HDF_CHUNK | HDF_NBIT
</div>
</td>
<td><a name="wp548868"> </a><div class="pCellBody">
2
</div>
</td>
<td><a name="wp548870"> </a><div class="pCellBody">
cdef.nbit.chunk_lengths[]
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp568418"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp568411table568409">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568411"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp568413"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfgichnk(sds_id, dim_length, flag)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568415"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp568417"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id, dim_length(*), flag
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp583486"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDgetcompinfo/sfgcompress
</h2>
<a name="wp583487"> </a><p style="font-weight: normal" class="pSignature">
intn SDgetcompinfo(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>, comp_coder_t *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">comp_type</span>, comp_info *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">c_info</span>)
</p>
<a name="wp583593"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp583490table583488">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583490"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp583492"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp583494"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583496"> </a><div style="margin-top: 0pt" class="pCellVariable">
comp_type
</div>
</td>
<td><a name="wp583498"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp583500"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Type of compression
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583502"> </a><div style="margin-top: 0pt" class="pCellVariable">
c_info
</div>
</td>
<td><a name="wp583504"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp583506"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Pointer to compression information structure
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp583509table583507">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583509"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp583511"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Retrieves data set compression type and compression information.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583513"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp585979"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583517"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp583519"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDgetcompinfo</b> retrieves the compression type and compression information for a data set, when the data is either compressed, chunked or chunked and compressed. <b class="cFunctionName">SDgetcompinfo</b> replaces <b class="cFunctionName">SDgetcompress</b> because this function has flaws, causing failure for some chunked and chunked/compressed data.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583521"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp583523"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The compression method is returned in the parameter <em class="cVarName">comp_type</em>. Valid values of <em class="cVarName">comp_type</em> are as follows:
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583525"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><div class="pSmartList1"><ul class="pSmartList1">
<div class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal"><ul class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal">
<a name="wp583527"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_NONE</code> for no compression</div>
<a name="wp583528"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_RLE</code> for RLE run-length encoding</div>
<a name="wp583529"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_NBIT</code> for NBIT compression</div>
<a name="wp583530"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_SKPHUFF</code><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault"> </span>for Skipping Huffman compression</div>
<a name="wp583531"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_DEFLATE</code> for GZIP compression</div>
<a name="wp583532"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_SZIP</code> for Szip compression</div>
</ul></div>
</ul></div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583534"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp583536"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Additional compression method parameters are returned in the <em class="cVarName">c_info</em> struct in C and the array parameter <em class="cVarName">comp_prm</em> in Fortran. Note that <em class="cVarName">c_info</em> and <em class="cVarName">comp_prm</em> come into place only with compression modes that require additional parameters (i.e., other than <em class="cVarName">comp_type</em>); they are ignored in other cases.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583538"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp583540"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The <em class="cVarName">c_info</em> struct is of type <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">comp_info</code>, contains algorithm-specific information for the library compression routines, and is described in the <b class="cFunctionName">SDsetcompress</b> entry in this reference manual and in the <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">hcomp.h</code> header file.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583542"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp583544"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The <em class="cVarName">comp_prm</em> parameter is an array returning one or more parameters, as required by the compression method in use. Each compression parameter is returned as an element of the array, as follows:
</div>
<div class="pSmartList1"><ul class="pSmartList1">
<div class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal"><ul class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal">
<a name="wp583545"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">o</span> With Skipping Huffman compression, <em class="cVarName">comp_prm</em> is a 1-element array and <em class="cVarName">comp_prm(1)</em> contains the skip value, <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">skphuff_skp_size</code>. </div>
<a name="wp583546"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">o</span> In the case of GZIP compression, <em class="cVarName">comp_prm</em> is also a 1-element array and <em class="cVarName">comp_prm(1)</em> contains the deflation value, <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">deflate_value</code>.</div>
<a name="wp583547"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">o</span> In the case of NBIT compression, <em class="cVarName">comp_prm</em> is a 4-element array with <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">sign_ext</code> in <em class="cVarName">comp_prm(1)</em>, <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">fill_one</code> in <em class="cVarName">comp_prm(2)</em>, <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">start_bit</code> in <em class="cVarName">comp_prm(3)</em>, and <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">bit_len</code> in <em class="cVarName">comp_prm(4)</em>. The fields <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">sign_ext</code>, <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">fill_one</code>, <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">start_bit</code>, and <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">bit_len</code> are discussed in the <a href="RM_Section_II_SD.html#wp441862"><b class="cFunctionName">SDsetnbitdataset/sfsnbit</b></a> entry of this reference manual.</div>
<a name="wp583551"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">o</span> In the case of Szip compression, <em class="cVarName">comp_prm</em> is a 5-element array with <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">option_mask</code> in <em class="cVarName">comp_prm(1)</em>, <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">pixels_per_block</code> in <em class="cVarName">comp_prm(2)</em>, <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">pixels_per_scanline</code> in <em class="cVarName">comp_prm(3)</em>, <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">bits_per_pixel</code> in <em class="cVarName">comp_prm(4)</em>, and <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">pixels</code> in <em class="cVarName">comp_prm (5)</em>.</div>
</ul></div>
</ul></div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583553"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp583555"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
In the general case, any available compression type can be configured in any mode:
</div>
<div class="pSmartList1"><ul class="pSmartList1">
<div class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal"><ul class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal">
<a name="wp583556"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_DECODER_ENABLED</code> Decode data only</div>
<a name="wp583557"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_ENCODER_ENABLED</code> Encode data only</div>
<a name="wp583558"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_DECODER_ENABLED |COMP_ENCODER_ENABLED</code> <br /> Decode and encode data</div>
</ul></div>
</ul></div>
<a name="wp583559"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
As of this writing (HDF4 Release 2.1, February 2005), only the Szip compression library is actually used with the HDF libraries in more than one configuration (see immediately below). As a third-party product, it is distributed in both decode-only and encode/decode configurations. All other compression methods are currently distributed or used in an encode/decode configuration if they are available at all. See also <b class="cFunctionName">HCget_config_info</b>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583561"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp583563"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDgetcompinfo</b> will succeed for an Szip-compressed dataset whether the available Szip library is configured either for encoding/decoding or for decoding-only.
</div>
<a name="wp583564"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
<a name="wp583565"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If the Szip configuration is decode-only, i.e., an <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">HCget_config_info</span> call on the dataset will return only <code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_DECODER_ENABLED</code> in <em class="cVarName">compression_config_info</em>. Note that in such a case the file must be opened in read-only mode, i.e. with<code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode"> </code><b class="cFunctionName">SDstart</b><code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">(</code><em class="cVarName">filename</em><code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">, </code><code style="font-family: Courier New; font-size: 8pt" class="cDefName">DFACC_RDONLY</code><code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">)</code>.
</div>
<a name="wp583566"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
<a name="wp583567"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If the Szip configuration is encode/decode, i.e., an <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">HCget_config_info</span> call on the dataset will return <code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_ENCODER_ENABLED|COMP_DECODER_ENABLED</code> in <em class="cVarName">compression_config_info</em>. In this case, the file and dataset can be opened in read/write mode.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583569"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Note
</div></td>
<td><a name="wp583571"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cBold">Regarding uncompressed data or an empty data set:</b>
</div>
<a name="wp583572"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDgetcompinfo</b> will succeed and the parameter <em class="cVarName">comp_type</em> will have the value <code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_NONE</code><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault"> </span>if either of the following conditions exists:
</div>
<div class="pSmartList1"><ul class="pSmartList1">
<div class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal"><ul class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal">
<a name="wp583573"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">o</span> The data set is not compressed.</div>
<a name="wp583574"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">o</span> No data has been written to the SDS.</div>
</ul></div>
</ul></div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583576"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Note
</div></td>
<td><a name="wp583578"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cBold">Regarding Szip usage and licensing:</b>
</div>
<a name="wp583579"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
See <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">http://www.hdfgroup.org/doc_resource/SZIP/</span> for information regarding the use of Szip in HDF products and Szip licensing.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp583582table583580">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583582"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp583584"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfgcompress(sds_id, comp_type, comp_prm)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583586"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp583588"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id, comp_type, comp_prm(*)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583590"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp583592"> </a><div class="pCellFortran">
 
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp589392"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDgetdatasize/
</h2>
<a name="wp589998"> </a><p style="font-weight: normal" class="pSignature">
intn SDgetdatasize(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">*comp_size</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">*orig_size</span>)
</p>
<a name="wp590048"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp590001table589999">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp590001"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp590003"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp590005"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp590007"> </a><div style="margin-top: 0pt" class="pCellVariable">
comp_size
</div>
</td>
<td><a name="wp590009"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp590011"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Size of compressed data
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp590013"> </a><div style="margin-top: 0pt" class="pCellVariable">
orig_size
</div>
</td>
<td><a name="wp590015"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp590017"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Size of original data
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp590020table590018">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp590020"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp590022"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Retrieves the sizes of original and compressed data.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp590024"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp590026"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp590028"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp590030"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDgetdatastrs</b> retrieves the original and compressed data sizes, in bytes, of the data set specified by the parameter <em class="cVarName">sds_id</em>. <code style="font-family: Courier New; font-size: 8pt" class="cDefName">NULL</code> can be passed in for undesired parameter.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp590032"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp590034"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The values of comp_size and orig_size will be returned as described below:
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="center">
<table border="1" cellpadding="3" cellspacing="1" bgcolor="White" bordercolor="#FFFFFF" id="wp590061table590053">
<caption></caption>
<tr> <td><a name="wp590061"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
Type of data
</div>
</td>
<td><a name="wp590063"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 10pt; font-style: italic; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
<em class="cVarName">comp_size</em>
</div>
</td>
<td><a name="wp590065"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 10pt; font-style: italic; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
<em class="cVarName">orig_size</em>
</div>
</td>
</tr>
<tr> <td><a name="wp590067"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
no data
</div>
</td>
<td><a name="wp590069"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
0
</div>
</td>
<td><a name="wp590071"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
0
</div>
</td>
</tr>
<tr> <td><a name="wp590073"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
compressed
</div>
</td>
<td><a name="wp590075"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
size of compressed data
</div>
</td>
<td><a name="wp590077"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
size of original data
</div>
</td>
</tr>
<tr> <td><a name="wp590079"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
chunked/compressed
</div>
</td>
<td><a name="wp590081"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
size of compressed data in all chunks
</div>
</td>
<td><a name="wp590083"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
size of original data in all chunks
</div>
</td>
</tr>
<tr> <td><a name="wp590085"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
uncompressed
</div>
</td>
<td><a name="wp590087"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
size of original data
</div>
</td>
<td><a name="wp590089"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
size of original data
</div>
</td>
</tr>
<tr> <td><a name="wp590091"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
unlimited dimension
</div>
</td>
<td><a name="wp590093"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
size of original data
</div>
</td>
<td><a name="wp590095"> </a><div style="color: #000000; font-family: Times New Roman; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none">
size of original data
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
<span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault"></span></p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp590099table590097">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp590099"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp590101"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
Currently unavailable
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp590103"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp590105"> </a><div class="pCellFortran">
 
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp590107"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp590109"> </a><div class="pCellFortran">
 
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
<span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault"></span>
</p>
<a name="wp590050"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDgetdatastrs/sfgdtstr
</h2>
<a name="wp430594"> </a><p style="font-weight: normal" class="pSignature">
intn SDgetdatastrs(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">label</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">unit</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">format</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">coordsys</span>, intn <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">length</span>)
</p>
<a name="wp534290"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp517177table511814">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp517177"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp517179"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp517181"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp517183"> </a><div style="margin-top: 0pt" class="pCellVariable">
label
</div>
</td>
<td><a name="wp517185"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp517187"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Label (predefined attribute)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp517189"> </a><div style="margin-top: 0pt" class="pCellVariable">
unit
</div>
</td>
<td><a name="wp517191"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp517193"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Unit (predefined attribute)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp517195"> </a><div style="margin-top: 0pt" class="pCellVariable">
format
</div>
</td>
<td><a name="wp517197"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp517199"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Format (predefined attribute)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp517201"> </a><div style="margin-top: 0pt" class="pCellVariable">
coordsys
</div>
</td>
<td><a name="wp517203"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp517205"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Coordinate system (predefined attribute)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp517207"> </a><div style="margin-top: 0pt" class="pCellVariable">
length
</div>
</td>
<td><a name="wp517209"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp517211"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Maximum length of the above predefined attributes
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511853table511851">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511853"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp511855"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Retrieves the predefined attributes of a data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511857"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp585986"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511861"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp511863"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDgetdatastrs</b> retrieves the predefined attributes for the data set specified by the parameter <em class="cVarName">sds_id</em>. The predefined attributes are label, unit, format, and coordinate system. They are then stored in the parameters <em class="cVarName">label</em>, <em class="cVarName">unit</em>, <em class="cVarName">format</em>, and <em class="cVarName">coordsys</em>, respectively. Refer to Section 3.10 of the <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">HDF User's Guide</span> for more information on predefined attributes.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp517145"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp517147"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If a particular data string is not stored, the first character of the corresponding <b class="cFunctionName">SDgetdatastrs</b> parameter is '<code style="font-family: Courier New; font-size: 8pt" class="cDefName">\0</code>' in C. In FORTRAN, the parameter contains an empty string. Each string buffer must include the space to hold the null termination character. In C, if a user does not want a string back, <code style="font-family: Courier New; font-size: 8pt" class="cDefName">NULL</code> can be passed in for that string. Data strings are set by the <b class="cFunctionName">SDsetdatastrs</b> routine.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511904table511868">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511904"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp511906"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfgdtstr(sds_id, label, unit, format, coordsys, length)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511916"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511918"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id, length
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511920"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511922"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) label, unit, format, coordsys
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp430621"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDgetdimid/sfdimid
</h2>
<a name="wp430623"> </a><p style="font-weight: normal" class="pSignature">
int32 SDgetdimid(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>, intn <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">dim_index</span>)
</p>
<a name="wp534292"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511930table511928">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511930"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp511932"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp511934"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511936"> </a><div style="margin-top: 0pt" class="pCellVariable">
dim_index
</div>
</td>
<td><a name="wp511938"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp511940"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Index of the dimension
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511943table511941">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511943"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp511945"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns the identifier of a dimension given its index.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511947"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp511949"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns the dimension identifier (<em class="cVarName">dim_id</em>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511951"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp511953"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDgetdimid</b> returns the identifier of the dimension specified by its index, the parameter <em class="cVarName">dim_index</em>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511955"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511959"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The dimension index is a nonnegative integer and is less than the total number of data set dimensions returned by <b class="cFunctionName">SDgetinfo</b>.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511965table511963">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511965"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp511967"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfdimid(sds_id, dim_index)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511973"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp511975"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id, dim_index
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp430641"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDgetdimscale/sfgdscale
</h2>
<a name="wp430643"> </a><p style="font-weight: normal" class="pSignature">
intn SDgetdimscale(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">dim_id</span>, VOIDP <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">scale_buf</span>)
</p>
<a name="wp534294"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511982table511980">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511982"> </a><div style="margin-top: 0pt" class="pCellVariable">
dim_id
</div>
</td>
<td><a name="wp511984"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp511986"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Dimension identifier returned by <b class="cFunctionName">SDgetdimid</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511988"> </a><div style="margin-top: 0pt" class="pCellVariable">
scale_buf
</div>
</td>
<td><a name="wp511990"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp511992"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Buffer for the scale values
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp511995table511993">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511995"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp511997"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Retrieves the scale values for a dimension.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp511999"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp585993"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512003"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp512005"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDgetdimscale</b> retrieves the scale values of the dimension identified by the parameter <em class="cVarName">dim_id</em> and stores the values in the buffer <em class="cVarName">scale_buf</em>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512007"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512019"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDdiminfo</b> should be used to determine whether a scale has been set for the dimension, i.e., that the dimension scale data type is a valid HDF data type (not <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">0</span>). Also use <b class="cFunctionName">SDdiminfo</b> to obtain the number of scale values for space allocation before calling <b class="cFunctionName">SDgetdimscale</b>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512011"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512021"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
It is not possible to read a subset of the scale values. <b class="cFunctionName">SDgetdimscale</b> returns all of the scale values stored with the given dimension.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp547799"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp547801"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The fact that <b class="cFunctionName">SDgetdimscale</b> returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> should not be interpreted to mean that scale values have been defined for the data set. This function should always be used with <b class="cFunctionName">SDdiminfo</b>, which is used first to determine whether a scale has been set, the number of scale values, their data type, etc. If <b class="cFunctionName">SDdiminfo</b> indicates that no scale values have been set, the values returned by <b class="cFunctionName">SDgetdimscale</b> in <em class="cVarName">data</em> should be ignored.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512024table512022">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512024"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp512026"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfgdscale(dim_id, scale_buf)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512032"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512034"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer dim_id
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512036"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512038"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
<valid numeric data type> scale_buf(*)
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp430663"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDgetdimstrs/sfgdmstr
</h2>
<a name="wp430665"> </a><p style="font-weight: normal" class="pSignature">
intn SDgetdimstrs(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">dim_id</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">label</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">unit</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">format</span>, intn <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">length</span>)
</p>
<a name="wp534296"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512046table512044">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512046"> </a><div style="margin-top: 0pt" class="pCellVariable">
dim_id
</div>
</td>
<td><a name="wp512048"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp512050"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Dimension identifier returned by <b class="cFunctionName">SDgetdimid</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512052"> </a><div style="margin-top: 0pt" class="pCellVariable">
label
</div>
</td>
<td><a name="wp512054"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp512056"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Label (predefined attribute)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512058"> </a><div style="margin-top: 0pt" class="pCellVariable">
unit
</div>
</td>
<td><a name="wp512060"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp512062"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Unit (predefined attribute)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512064"> </a><div style="margin-top: 0pt" class="pCellVariable">
format
</div>
</td>
<td><a name="wp512066"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp512068"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Format (predefined attribute)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512070"> </a><div style="margin-top: 0pt" class="pCellVariable">
length
</div>
</td>
<td><a name="wp512072"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp512074"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Maximum length of the above predefined attributes
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp517235table512075">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp517235"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp517237"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Retrieves the predefined attributes of a dimension.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp517239"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586001"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp517243"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp517245"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDgetdimstrs</b> retrieves the predefined attributes associated with the dimension identified by the parameter <em class="cVarName">dim_id</em>. The predefined attributes are label, unit, and format. These predefined attributes are stored in the parameters <em class="cVarName">label</em>, <em class="cVarName">unit</em>, and <em class="cVarName">format</em>, respectively. Refer to Section 3.10 of the <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">HDF User's Guide</span> for more information on predefined attributes.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp517277"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp517279"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If a particular data string was not stored, the first character of the corresponding <b class="cFunctionName">SDgetdimstrs</b> parameter is '<code style="font-family: Courier New; font-size: 8pt" class="cDefName">\0</code>'. Each string buffer must include space for the null termination character. If a user does not want a string returned, the corresponding parameter can be set to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">NULL</code> in C and an empty string in Fortran. The predefined attributes are set by <b class="cFunctionName">SDsetdimstrs</b>.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512096table512094">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512096"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp512098"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfgdmstr(dim_id, label, unit, format, length)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512104"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512106"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer dim_id, length
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512108"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512110"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) label, unit, format
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp567910"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDgetfilename/sfgetfname
</h2>
<a name="wp567911"> </a><p style="font-weight: normal" class="pSignature">
intn SDgetfilename(int32 <em class="cVarName">file_id</em>, char *<em class="cVarName">filename</em>)
</p>
<a name="wp567872"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp567924table567830">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp567924"> </a><div style="margin-top: 0pt" class="pCellVariable">
file_id
</div>
</td>
<td><a name="wp567926"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp567928"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
A file identifier
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp567832"> </a><div style="margin-top: 0pt" class="pCellVariable">
filename
</div>
</td>
<td><a name="wp567834"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp567836"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Name of the file
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp567839table567837">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp567839"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp567841"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Given a file identifier, retrieves the name of the file.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp567843"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp567845"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns the length of the file name, without '<code style="font-family: Courier New; font-size: 8pt" class="cDefName">\0</code>', on success, and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code>, otherwise.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp567861table567859">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp567861"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp567863"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfgetfname(file_id, filename)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp567865"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp567867"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) filename
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp567869"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp567871"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
<span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">i</span>nteger file_id
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp430691"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDgetfillvalue/sfgfill/sfgcfill
</h2>
<a name="wp430693"> </a><p style="font-weight: normal" class="pSignature">
intn SDgetfillvalue(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>, VOIDP <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">fill_value</span>)
</p>
<a name="wp534298"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512116table512114">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512116"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp512118"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp512120"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512122"> </a><div style="margin-top: 0pt" class="pCellVariable">
fill_value
</div>
</td>
<td><a name="wp512124"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp512126"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Buffer for the returned fill value
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512129table512127">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512129"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp512131"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Reads the fill value of a data set, if the value has been set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512133"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp512135"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if a fill value is retrieved and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise, including when the fill value is not set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512137"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp512139"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDgetfillvalue</b> reads the fill value which has been set for the data set specified by the parameter <em class="cVarName">sds_id</em>. It is assumed that the data type of the fill value is the same as that of the data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512141"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512195"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Note that there are two FORTRAN-77 versions of this routine: <b class="cFunctionName">sfgfill</b> and <b class="cFunctionName">sfgcfill</b>. The <b class="cFunctionName">sfgfill</b> routine reads numeric fill value data and <b class="cFunctionName">sfgcfill</b> reads character fill value data.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512152table512150">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512152"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp512154"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfgfill(sds_id, fill_value)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512160"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512162"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512164"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512166"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
<valid numeric data type> fill_value
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp533047"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp533049"> </a><div class="pCellFortran">
 
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512176"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512178"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfgcfill(sds_id, fill_value)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512184"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512186"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512188"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512190"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) fill_value
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp430710"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDgetinfo/sfginfo
</h2>
<a name="wp430712"> </a><p style="font-weight: normal" class="pSignature">
intn SDgetinfo(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_name</span>, int32 *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">rank</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">dimsizes</span>[], int32 *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">data_type</span>, int32 *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">num_attrs</span>)
</p>
<a name="wp534300"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512198table512196">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512198"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp512200"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp512202"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> and <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512204"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_name
</div>
</td>
<td><a name="wp512206"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp512208"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Name of the data set
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512210"> </a><div style="margin-top: 0pt" class="pCellVariable">
rank
</div>
</td>
<td><a name="wp512212"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp512214"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Number of dimensions in the data set
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512216"> </a><div style="margin-top: 0pt" class="pCellVariable">
dimsizes
</div>
</td>
<td><a name="wp512218"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp512220"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Array containing the size of each dimension in the data set
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512222"> </a><div style="margin-top: 0pt" class="pCellVariable">
data_type
</div>
</td>
<td><a name="wp512224"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp512226"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data type for the data stored in the data set
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512228"> </a><div style="margin-top: 0pt" class="pCellVariable">
num_attrs
</div>
</td>
<td><a name="wp512230"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp512232"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Number of attributes for the data set
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512235table512233">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512235"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp512237"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Retrieves the name, rank, dimension sizes, data type and number of attributes for a data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512239"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586015"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512243"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp512245"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDgetinfo</b> retrieves the name, number of dimensions, sizes of dimensions, data type, and number of attributes of the data set identified by <em class="cVarName">sds_id</em>, and stores them in the parameters <em class="cVarName">sds_name</em>, <em class="cVarName">rank</em>, <em class="cVarName">dimsizes</em>, <em class="cVarName">data_type</em>, and <em class="cVarName">num_attrs</em>, respectively.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512251"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512269"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The buffer <em class="cVarName">sds_name</em> can have at most <code style="font-family: Courier New; font-size: 8pt" class="cDefName">64</code> characters. If the name of the data set is not desired, then the parameter <em class="cVarName">sds_name</em> can be set to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">NULL</code> in C and an empty string in Fortran.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512255"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512273"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The maximum value of the <em class="cVarName">rank</em> parameter is <code style="font-family: Courier New; font-size: 8pt" class="cDefName">MAX_VAR_DIMS</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">32</code>).
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512259"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512275"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If the data set is created with an unlimited dimension, then in the C interface, the first element of the <em class="cVarName">dimsizes</em> array (corresponding to the slowest-changing dimension) contains the number of records in the unlimited dimension; in the FORTRAN-77 interface, the last element of the <em class="cVarName">dimsizes</em> array (corresponding to the slowest-changing dimension) contains this information. Use <b class="cFunctionName">SDisrecord</b> to determine if the data set has an unlimited dimension.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512318table512276">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512318"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp512320"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfginfo(sds_id, sds_name, rank, dimsizes, data_type, num_attrs)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512330"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512332"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) sds_name
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512334"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512336"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id, rank, dimsizes(*)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512338"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512340"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer data_type, num_attrs
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp567983"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDgetnamelen/sfgetnamelen
</h2>
<a name="wp567984"> </a><p style="font-weight: normal" class="pSignature">
intn SDgetnamelen(int32 <em class="cVarName">obj_id</em>, uint16 <em class="cVarName">name_len</em>)
</p>
<a name="wp568020"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp567987table567985">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp567987"> </a><div style="margin-top: 0pt" class="pCellVariable">
obj_id
</div>
</td>
<td><a name="wp567989"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp567991"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Identifier of the object
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp567993"> </a><div style="margin-top: 0pt" class="pCellVariable">
name_len
</div>
</td>
<td><a name="wp567995"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp567997"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Length of the object's name
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp568000table567998">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568000"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp568026"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Retrieves the length of the name of a file, a dataset, or a dimension.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568004"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp568006"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns the length of the object's name on success, and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (<code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568033"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp568035"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Given an identifier of a file, a dataset, or a dimension,<span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault"> </span><b class="cFunctionName">SDgetnamelen</b> retrieves the length of its name into <em class="cVarName">name_len</em>. The length does not include the character '<code style="font-family: Courier New; font-size: 8pt" class="cDefName">\0</code>'.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp568009table568007">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568009"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp568011"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfgetnamelen(obj_id, length)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568013"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp568015"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer obj_id, length
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp583380"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDgetnumvars_byname/sfgnvars_byname
</h2>
<a name="wp583381"> </a><p style="font-weight: normal" class="pSignature">
intn SDgetnumvars_byname(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sd_id</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_name, int32 *n_vars</span>)
</p>
<a name="wp583427"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp583384table583382">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583384"> </a><div style="margin-top: 0pt" class="pCellVariable">
sd_id
</div>
</td>
<td><a name="wp583386"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp583388"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
SD interface identifier returned by <b class="cFunctionName">SDstart</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583390"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_name
</div>
</td>
<td><a name="wp583392"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp583394"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Name of the data set
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583396"> </a><div style="margin-top: 0pt" class="pCellVariable">
n_vars
</div>
</td>
<td><a name="wp583398"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp583400"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Number of variables named <em class="cVarName">sds_name</em>
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp583403table583401">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583403"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp583405"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Get the number of data sets having the same name.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583407"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586022"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583411"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp583413"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDgetnumvars_byname</b> retrieves the number of variables with the name specified by the parameter <em class="cVarName">sds_name</em>. The variables may include both data sets or coordinate variables. The routine does not accept wildcards in the specified data set name. It also searches on that name in a case-sensitive manner.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp583416table583414">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583416"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp583418"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfgnvars_byname(sd_id, sds_name, n_vars)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583420"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp583422"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sd_id, n_vars
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583424"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp583426"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) sds_name
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp430738"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDgetrange/sfgrange
</h2>
<a name="wp430740"> </a><p style="font-weight: normal" class="pSignature">
intn SDgetrange(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>, VOIDP <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">max</span>, VOIDP <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">min</span>)
</p>
<a name="wp534302"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512346table512344">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512346"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp512348"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp512350"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512352"> </a><div style="margin-top: 0pt" class="pCellVariable">
max
</div>
</td>
<td><a name="wp512354"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp512356"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Maximum value of the range
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512358"> </a><div style="margin-top: 0pt" class="pCellVariable">
min
</div>
</td>
<td><a name="wp512360"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp512362"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Minimum value of the range
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512365table512363">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512365"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp512367"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Retrieves the maximum and minimum values of the range.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512369"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586029"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512373"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp512375"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDgetrange</b> retrieves the maximum value of the range into the parameter <em class="cVarName">max</em> and the minimum value into the parameter <em class="cVarName">min</em>. The maximum and minimum values must be previously set via a call to <b class="cFunctionName">SDsetrange</b>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp517473"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp517477"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
It is assumed that the data type for the maximum and minimum range values are the same as that of the data.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512388table512386">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512388"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp512390"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfgrange(sds_id, max, min)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512396"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512398"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512400"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512402"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
<valid numeric data type> max, min
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp567637"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDget_maxopenfiles/sfgmaxopenf
</h2>
<a name="wp567638"> </a><p style="font-weight: normal" class="pSignature">
intn SDget_maxopenfiles(intn *<em class="cVarName">curr_max</em>, intn *<em class="cVarName">sys_limit</em>)
</p>
<a name="wp567688"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp567641table567639">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp567641"> </a><div style="margin-top: 0pt" class="pCellVariable">
cu
</div>
</td>
<td><a name="wp567643"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp567645"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp567647"> </a><div style="margin-top: 0pt" class="pCellVariable">
curr_max
</div>
</td>
<td><a name="wp567649"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp567651"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Current number of open files
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp567653"> </a><div style="margin-top: 0pt" class="pCellVariable">
sys_limit
</div>
</td>
<td><a name="wp567655"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp567657"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Maximum number of open files
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp567660table567658">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp567660"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp567711"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Retrieves current and maximum number of open files.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp567664"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586036"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp567668"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp567699"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDget_maxopenfiles</b> retrieves the current number of open files allowed in HDF, <em class="cVarName">curr_max</em>, and the maxinum number of open files allowed on the system, <em class="cVarName">sys_limit</em>. If either of the values is not desired, then <code style="font-family: Courier New; font-size: 8pt" class="cDefName">NULL</code> can be passed in.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp567677table567675">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp567677"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp567679"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfgmaxopenf(cur_max, sys_limit)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp567681"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585363"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer cur_max, sys_limit
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp567552"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDget_numopenfiles/sfgnumopenf
</h2>
<a name="wp567274"> </a><p style="font-weight: normal" class="pSignature">
intn SDget_numopenfiles()
</p>
<a name="wp599142"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp599126table599124">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp599126"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp599128"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns the number of files currently being opened.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp599130"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp599132"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns the number of files currently being opened.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp599464table599133">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp599464"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp599466"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfgnumopenf(cur_num)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp599468"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp599470"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer cur_num
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp599144"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDidtoref/sfid2ref
</h2>
<a name="wp599145"> </a><p style="font-weight: normal" class="pSignature">
int32 SDidtoref(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>)
</p>
<a name="wp534304"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512409table512407">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512409"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp512411"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp512413"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512416table512414">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512416"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp512418"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns the reference number assigned to a data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512420"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp512422"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns the data set reference number if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512424"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp512426"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDidtoref</b> returns the reference number of the data set specified by the parameter <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>. The reference number is assigned by the HDF library when the data set is created. The specified reference number can be used to add the data set to a vgroup as well as a means of using the HDF annotations interface to annotate the data set.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512429table512427">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512429"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp512431"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfid2ref(sds_id)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512437"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512439"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp568088"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDidtype/sfidtype
</h2>
<a name="wp568089"> </a><p style="font-weight: normal" class="pSignature">
hdf_idtype_t SDidtype(int32 <em class="cVarName">obj_id</em>)
</p>
<a name="wp568132"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp568092table568090">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568092"> </a><div style="margin-top: 0pt" class="pCellVariable">
obj_id
</div>
</td>
<td><a name="wp568094"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp568096"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Identifier of the object
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp568099table568097">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568099"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp568101"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Given an id, return the type of object the id represents.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568103"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp568105"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns a value of type <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">hdf_idtype_t</code>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568107"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp568109"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
SDidtype returns a value of type hdf_idtype_t, which can be one of the following:
</div>
<div class="pSmartList1"><ul class="pSmartList1">
<div class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal"><ul class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal">
<a name="wp568110"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">o</span><code style="font-family: Courier New; font-size: 8pt" class="cDefName"> NOT_SDAPI_ID</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) not an SD API id</div>
<a name="wp568111"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">o</span><code style="font-family: Courier New; font-size: 8pt" class="cDefName"> SD_ID</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) SD id</div>
<a name="wp568112"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">o</span><code style="font-family: Courier New; font-size: 8pt" class="cDefName"> SDS_ID</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">1</code>) SDS id</div>
<a name="wp568113"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">o</span><code style="font-family: Courier New; font-size: 8pt" class="cDefName"> DIM_ID</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">2</code>) Dimension id</div>
</ul></div>
</ul></div>
<a name="wp568114"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
<a name="wp568115"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
SDidtype returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">NOT_SDAPI_ID</code> for either
</div>
<a name="wp568116"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
+ when <em class="cVarName">obj_id</em> is not a valid HDF id, or
</div>
<a name="wp568117"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
+ when <em class="cVarName">obj_id</em> is a valid HDF id, but not one of the id types in
</div>
<a name="wp568118"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
the SD interface, which are SD id, SDS id, and dimension id.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp568121table568119">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568121"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp568123"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfidtype(obj_id, obj_type)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568125"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp568127"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer obj_id, obj_type
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp430786"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDiscoordvar/sfiscvar
</h2>
<a name="wp430788"> </a><p style="font-weight: normal" class="pSignature">
intn SDiscoordvar(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>)
</p>
<a name="wp534306"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512447table512445">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512447"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp512449"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp512451"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512454table512452">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512454"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp512456"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Determines if a data set is a coordinate variable.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512458"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp512460"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">TRUE</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">1</code>) if the data set is a coordinate variable, and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FALSE</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512462"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp512464"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDiscoordvar</b> determines if the data set specified by the parameter <em class="cVarName">sds_id</em> is a coordinate variable.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512466"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512470"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Coordinate variables are created to store metadata associated with dimensions. To ensure compatibility with netCDF, coordinate variables are implemented as data sets.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp599281"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp599322"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Note that if there are more than one variable (either multiple data sets or data sets and dimensions) with the same name in the file, <b class="cFunctionName">SDiscoordvar</b> might return the incorrect item. This was a bug in the HDF4 library prior to 4.2r2. For details, please refer to the note "<a href="RM_Section_II_SD.html#wp568468">Regarding naming a dimension the same as an SDS' name</a>" in the <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">SDsetdimname</span> page.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp599277"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp599290"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
When the uniqueness of the name is unknown, <b class="cFunctionName">SDgetnumvars_byname</b> can be used to get the number of data sets (or variables, which includes both data sets and coordinate variables) with the same name. <b class="cFunctionName">SDnametoindices</b> can then be used to get a list of structures containing the indices and the types of all the variables of that same name. However, note that the type of the variable will be <code style="font-family: Courier New; font-size: 8pt" class="cDefName">UNKNOWN</code> when the data was created by libraries of pre-4.2r2.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512473table512471">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512473"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp512475"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfiscvar(sds_id)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512481"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512483"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp442118"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDisdimval_bwcomp/sfisdmvc
</h2>
<a name="wp442119"> </a><p style="font-weight: normal" class="pSignature">
intn SDisdimval_bwcomp(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">dim_id</span>)
</p>
<a name="wp534308"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512490table512488">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512490"> </a><div style="margin-top: 0pt" class="pCellVariable">
dim_id
</div>
</td>
<td><a name="wp512492"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp512494"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Dimension identifier returned by <b class="cFunctionName">SDgetdimid</b>
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512497table512495">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512497"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp512499"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Determines whether a dimension has the old and new representations or the new representation only.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512501"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512525"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Refer to Chapter 3, "Scientific Data Sets (SD API)" of the <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">HDF User's Guide</span>, for information on old and new dimension representations.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512505"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp512507"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">SD_DIMVAL_BW_COMP</span> (or <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">1</span>) if backward compatible, <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">SD_DIMVAL_BW_INCOMP</span> (or <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">0</span>) if incompatible, <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">FAIL</span> (or <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">-1</span>) if error.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512509"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp512511"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDisdimval_bwcomp</b> will flag the dimension specified by the parameter <em class="cVarName">dim_id</em> as backward-compatible if a vdata with a class name of "DimVal0.0" does not exist in the vgroup for that dimension. If the vdata does exist, the specified dimension will be identified by <b class="cFunctionName">SDisdimval_bcomp</b> as backward-incompatible.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512517"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512531"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The compatibility mode can be changed by calls to <b class="cFunctionName">SDsetdimval_comp</b> at any time between the calls to <b class="cFunctionName">SDstart</b> and <b class="cFunctionName">SDend</b>.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512534table512532">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512534"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp512536"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfisdmvc(dim_id)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512542"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512544"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer dim_id
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp441103"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDisrecord/sfisrcrd
</h2>
<a name="wp441104"> </a><p style="font-weight: normal" class="pSignature">
int32 SDisrecord(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>)
</p>
<a name="wp534310"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512550table512548">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512550"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp512552"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp512554"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512557table512555">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512557"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp512559"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Determines whether a data set is appendable.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512561"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp512563"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">TRUE</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">1</code>) if the data set is appendable, and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FALSE</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512565"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp512567"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDisrecord</b> will determine if the data set specified by the parameter <em class="cVarName">sds_id</em> is appendable, which means that the slowest-changing dimension was declared unlimited when the data set was created.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp515957table515955">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp515957"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp515959"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer sfisrcrd(sd_id)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp515961"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp515963"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sd_id
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp583256"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDnametoindex/sfn2index
</h2>
<a name="wp583257"> </a><p style="font-weight: normal" class="pSignature">
int32 SDnametoindex(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sd_id</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_name</span>)
</p>
<a name="wp583305"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp583260table583258">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583260"> </a><div style="margin-top: 0pt" class="pCellVariable">
sd_id
</div>
</td>
<td><a name="wp583262"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp583264"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
SD interface identifier returned by <b class="cFunctionName">SDstart</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583266"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_name
</div>
</td>
<td><a name="wp583268"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp583270"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Name of the data set
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp583273table583271">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583273"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp583275"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Determines the index of a data set given its name.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583277"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp583279"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns the index of the data set (<em class="cVarName">sds_index</em>) if the data set is found and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583281"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp583283"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDnametoindex</b> returns the index of the data set with the name specified by the parameter <em class="cVarName">sds_name</em>. The routine does not accept wildcards in the specified data set name. It also searches on that name in a case-sensitive manner. If there are more than one data set with the same name, the routine will return the index of the first one.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583285"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp583287"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Note that if there are more than one data set with the same name in the file, writing to a data set returned by this function without verifying that it is the desired data set could cause data corruption. For details, please refer to the note "<a href="RM_Section_II_SD.html#wp568468">Regarding naming a dimension the same as an SDS' name</a>" in the <b class="cFunctionName">SDsetdimname</b> page.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583289"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp583291"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDgetnumvars_byname</b> can be used to get the number of data sets (or variables, which includes both data sets and coordinate variables) with the same name. <b class="cFunctionName">SDnametoindices</b> can be used to get a list of structures containing the indices and the types of all the variables of that same name.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp583294table583292">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583294"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp583296"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfn2index(sd_id, sds_name)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583298"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp583300"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sd_id
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583302"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp583304"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) sds_name
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp583306"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDnametoindices/sfn2indices
</h2>
<a name="wp583307"> </a><p style="font-weight: normal" class="pSignature">
intn SDnametoindices(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sd_id</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_name, </span>hdf_varlist_t<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">* var_list</span>)
</p>
<a name="wp583369"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp583310table583308">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583310"> </a><div style="margin-top: 0pt" class="pCellVariable">
sd_id
</div>
</td>
<td><a name="wp583312"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp583314"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
SD interface identifier returned by <b class="cFunctionName">SDstart</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583316"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_name
</div>
</td>
<td><a name="wp583318"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp583320"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Name of the data set
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583322"> </a><div style="margin-top: 0pt" class="pCellVariable">
var_list
</div>
</td>
<td><a name="wp583324"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp583326"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
List of all variables of same name
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp599232table583327">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp599232"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp599234"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Retrieves indices of all variables with the same name.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp599236"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp599238"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp599240"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp599242"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDnametoindices</b> retrieves a list of structures <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">hdf_varlist_t</code>, containing the indices and the types of all variables of the same name <em class="cVarName">sds_name</em>.
</div>
<a name="wp599243"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
<a name="wp599244"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The structure <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">hdf_varlist_t</code> is defined as:
</div>
<a name="wp599245"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
<a name="wp599246"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">typedef struct varlist</code>
</div>
<a name="wp599247"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">{</code>
</div>
<a name="wp599248"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode"> int32 var_index; /* index of a variable */</code>
</div>
<a name="wp599249"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode"> vartype_t var_type; /* type of a variable */</code>
</div>
<a name="wp599250"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">} hdf_varlist_t;</code>
</div>
<a name="wp599251"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
<a name="wp599252"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The type of a variable <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">vartype_t</code> is defined as:
</div>
<a name="wp599253"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
<a name="wp599254"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode"> </code> IS_SDSVAR=0 : variable is an actual SDS
</div>
<a name="wp599255"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IS_CRDVAR=1 : variable is a coordinate variable
</div>
<a name="wp599256"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
UNKNOWN=2 : variable is created before HDF4.2r2, unknown type
</div>
<a name="wp599257"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
<a name="wp599258"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The routine does not accept wildcards in the specified data set name. It also searches on that name in a case-sensitive manner.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp599260"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp599268"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Note that if there are more than one data set with the same name in the file, writing to a data set returned by this function without verifying that it is the desired data set could cause data corruption. For details, please refer to the note "<a href="RM_Section_II_SD.html#wp568468">Regarding naming a dimension the same as an SDS' name</a>" in the <b class="cFunctionName">SDsetdimname</b> page.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp599264"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp599273"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDgetnumvars_byname</b> can be used to get the number of data sets (or variables, which includes both data sets and coordinate variables) with the same name. <b class="cFunctionName">SDnametoindices</b> can then be used to get a list of structures containing the indices and the types of all the variables of that same name.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp583358table583356">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583358"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp583360"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfn2indices(sd_id, sds_name, var_list, type_list, n_vars)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585442"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585444"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sd_id
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585446"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585448"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) sds_name
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583362"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp583364"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer var_list(*), type_list(*)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp583366"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp583368"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer n_vars
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp430825"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDreadattr/sfrnatt/sfrcatt
</h2>
<a name="wp442367"> </a><p style="font-weight: normal" class="pSignature">
intn SDreadattr(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">obj_id</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">attr_index</span>, VOIDP <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">attr_buf</span>)
</p>
<a name="wp534314"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512621table512619">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512621"> </a><div style="margin-top: 0pt" class="pCellVariable">
obj_id
</div>
</td>
<td><a name="wp512623"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp512625"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Identifier of the object the attribute is attached to
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512627"> </a><div style="margin-top: 0pt" class="pCellVariable">
attr_index
</div>
</td>
<td><a name="wp512629"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp512631"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Index of the attribute to be read
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512633"> </a><div style="margin-top: 0pt" class="pCellVariable">
attr_buf
</div>
</td>
<td><a name="wp512635"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp512637"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Buffer for the attribute values
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512640table512638">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512640"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp512642"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Reads the values of an attribute.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512644"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586054"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512648"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp512650"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDreadattr</b> reads the values of the attribute specified by the parameter <em class="cVarName">attr_index</em> and stores the values in the buffer <em class="cVarName">attr_buf</em>. It is assumed that the user has called <b class="cFunctionName">SDattrinfo</b> to retrieve the number of attribute values and allocate sufficient space for the buffer. Note that the routine does not read a subset of attribute values.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512652"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512668"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The value of <em class="cVarName">obj_id</em> can be either an SD interface identifier (<em class="cVarName">sd_id</em>), returned by <b class="cFunctionName">SDstart</b>, a data set identifier (<em class="cVarName">sds_id</em>), returned by <b class="cFunctionName">SDselect</b>, or a dimension identifier (<em class="cVarName">dim_id</em>), returned by <b class="cFunctionName">SDgetdimid</b>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512656"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512670"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The value of <em class="cVarName">attr_index</em> is a positive integer and is less than the total number of attributes. The index value can be obtained using the routines <b class="cFunctionName">SDnametoindex</b> and <b class="cFunctionName">SDreftoindex</b>. The total number of attributes for the object can be obtained using the routines <b class="cFunctionName">SDgetinfo</b>, <b class="cFunctionName">SDattrinfo</b>, <b class="cFunctionName">SDdiminfo</b> and <b class="cFunctionName">SDfileinfo</b>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512660"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp548887"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Note that this routine returns an array of characters, not a standard null-terminated string. If an application is running in an environment where a null-terminated string is expected, the application must add the null character before saving the string or using it further.
</div>
<a name="wp548873"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
<a name="wp548874"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Note that this routine has two FORTRAN-77 versions: <b class="cFunctionName">sfrnatt</b> and <b class="cFunctionName">sfrcatt</b>. The <b class="cFunctionName">sfrnatt</b> routine reads numeric attribute data and <b class="cFunctionName">sfrcatt</b> reads character attribute data.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512677table512675">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512677"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp512679"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfrnatt(obj_id, attr_index, attr_buffer)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512685"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512687"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer obj_id, attr_index
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512689"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512691"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
<valid numeric data> attr_buffer(*)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp533054"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp533056"> </a><div class="pCellFortran">
 
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512701"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512703"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfrcatt(obj_id, attr_index, attr_buffer)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512709"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512711"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer obj_id, attr_index
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512713"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512715"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) attr_buffer
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp441293"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDreadchunk/sfrchnk/sfrcchnk
</h2>
<a name="wp441294"> </a><p style="font-weight: normal" class="pSignature">
intn SDreadchunk(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>, int32 *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">origin</span>, VOIDP <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">datap</span>)
</p>
<a name="wp568344"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp568273table568271">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568273"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp568275"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp568277"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568279"> </a><div style="margin-top: 0pt" class="pCellVariable">
origin
</div>
</td>
<td><a name="wp568281"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp568283"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Origin of the chunk to be read
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568285"> </a><div style="margin-top: 0pt" class="pCellVariable">
datap
</div>
</td>
<td><a name="wp568287"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp568289"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Buffer for the chunk to be read
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp568292table568290">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568292"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp568294"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Reads a data chunk from a chunked data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568296"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586061"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568300"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp568302"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDreadchunk</b> reads the entire chunk of data from the chunked data set identified by the parameter <em class="cVarName">sds_id</em>, and stores the data in the buffer <em class="cVarName">datap</em>. Reading starts at the location specified by the parameter <em class="cVarName">origin</em>. <b class="cFunctionName">SDreadchunk</b> is used when an entire chunk of data is to be read. <b class="cFunctionName">SDreaddata</b> is used when the read operation is to be done regardless of the chunking scheme used in the data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568304"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp568306"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The parameter <em class="cVarName">origin</em> specifies the coordinates of the chunk according to the chunk position in the chunked array. Refer to the Chapter 3, "Scientific Data Sets (SD API)" of the <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">HDF User's Guide</span>, for a description of the organization of chunks in a data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568308"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp568310"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDreadchunk</b> will return <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) when an attempt is made to read from a non-chunked data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568312"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp568314"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Note that there are two FORTRAN-77 versions of this routine; one for numeric data (<b class="cFunctionName">sfrchnk</b>) and one for character data (<b class="cFunctionName">sfrcchnk</b>).
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp568317table568315">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568317"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp568319"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer sfrchnk(sds_id, origin, datap)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568321"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp568323"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id, origin(*)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568325"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp568327"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
<valid numeric data type> datap(*)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568329"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp568331"> </a><div class="pCellFortran">
 
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568333"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp568335"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer sfrcchnk(sds_id, origin, datap)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568337"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp568339"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id, origin(*)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568341"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp568343"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) datap(*)
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp568346"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDreaddata/sfrdata/sfrcdata
</h2>
<a name="wp568347"> </a><p style="font-weight: normal" class="pSignature">
intn SDreaddata(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">start</span>[], int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">stride</span>[], int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">edge</span>[], VOIDP <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">buffer</span>)
</p>
<a name="wp534318"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512786table512784">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512786"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp512788"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp548622"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512792"> </a><div style="margin-top: 0pt" class="pCellVariable">
start
</div>
</td>
<td><a name="wp512794"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514841"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Array specifying the starting location from where data is read
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512798"> </a><div style="margin-top: 0pt" class="pCellVariable">
stride
</div>
</td>
<td><a name="wp512800"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514843"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Array specifying the interval between the values that will be read along each dimension
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512804"> </a><div style="margin-top: 0pt" class="pCellVariable">
edge
</div>
</td>
<td><a name="wp512806"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514845"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Array specifying the number of values to be read along each dimension
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512810"> </a><div style="margin-top: 0pt" class="pCellVariable">
buffer
</div>
</td>
<td><a name="wp512812"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
OUT:
</div>
</td>
<td><a name="wp514847"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Buffer to store the data read
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512817table512815">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512817"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp512819"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Reads a subsample of data from a data set or coordinate variable.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512821"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp512823"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful or if the data set or coordinate variable contains no data and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512825"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp512827"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDreaddata</b> reads the specified subsample of data from the data set or coordinate variable identified by the parameter <em class="cVarName">sds_id</em>. The read data is stored in the buffer <em class="cVarName">buffer</em>. The subsample is defined by the parameters <em class="cVarName">start</em>, <em class="cVarName">stride</em> and <em class="cVarName">edge</em>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512837"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512861"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The array <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">start</span> specifies the starting position from where the subsample will be read. Valid values of each element in the array <em class="cVarName">start</em> are from 0 to the size of the corresponding dimension of the data set - 1. The dimension sizes are returned by <b class="cFunctionName">SDgetinfo</b>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512841"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512863"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The array <em class="cVarName">edge</em> specifies the number of values to read along each data set dimension.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512845"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp517347"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The array <em class="cVarName">stride</em> specifies the reading pattern along each dimension. For example, if one of the elements of the array <em class="cVarName">stride</em> is 1, then every element along the corresponding dimension of the data set will be read. If one of the elements of the array <em class="cVarName">stride</em> is 2, then every other element along the corresponding dimension of the data set will be read, and so on. Specifying <em class="cVarName">stride</em> value of <code style="font-family: Courier New; font-size: 8pt" class="cDefName">NULL</code> in the C interface or setting all values of the array <em class="cVarName">stride</em> to 1 in either interface specifies the contiguous reading of data. If all values in the array <em class="cVarName">stride</em> are set to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code> or any value causes striding beyond the end of the associate dimension, <b class="cFunctionName">SDreaddata</b> returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>). No matter what stride value is provided, data is always placed contiguously in the buffer.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp518454"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp518456"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
When reading data from a "chunked" data set using <b class="cFunctionName">SDreaddata</b>, consideration should be given to the issues presented in the section on chunking in Chapter 3, "Scientific Data Sets (SD API)" and Chapter 14, "HDF Performance Issues" in the <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">HDF User's Guide</span>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512849"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp512869"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Note that there are two FORTRAN-77 versions of this routine; <b class="cFunctionName">sfrdata</b> and <b class="cFunctionName">sfrcdata</b>. The <b class="cFunctionName">sfrdata</b> routine reads numeric scientific data and <b class="cFunctionName">sfrcdata</b> reads character scientific data.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp548667"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Note
</div></td>
<td><a name="wp548669"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">Regarding an important difference between the SD and GR interfaces: <br /></span>The SD and GR interfaces differ in the correspondence between the dimension order in parameter arrays such as <em class="cVarName">start</em>, <em class="cVarName">stride</em>, <em class="cVarName">edge</em>, and <em class="cVarName">dimsizes</em> and the dimension order in the <em class="cVarName">data</em> array. See the <b class="cFunctionName">SDreaddata </b>and<b class="cFunctionName"> GRreadimage </b>reference manual pages for discussions of the SD and GR approaches, respectively.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp548660"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp548662"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
When writing applications or tools to manipulate both images and two-dimensional SDs, this crucial difference between the interfaces must be taken into account. While the underlying data is stored in row-major order in both cases, the API parameters are not expressed in the same way. Consider the example of an SD data set and GR image that are stored as identically-shaped arrays of X columns by Y rows and accessed via the <b class="cFunctionName">SDreaddata</b> and <b class="cFunctionName">GRreadimage</b> functions, respectively. Both functions take the parameters <em class="cVarName">start</em>, <em class="cVarName">stride</em>, and <em class="cVarName">edge</em>.
</div>
<div class="pSmartList1"><ul class="pSmartList1">
<div class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal"><ul class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal">
<a name="wp548663"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">o</span> For <b class="cFunctionName">SDreaddata</b>, those parameters are expressed in (<em class="cVarName">y</em>,<em class="cVarName">x</em>) or [<em class="cVarName">row</em>,<em class="cVarName">column</em>] order. For example, <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">start[0]</code> is the starting point in the Y dimension and <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">start[1]</code> is the starting point in the X dimension. The same ordering holds true for all SD data set manipulation functions.</div>
<a name="wp548664"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">o</span> For <b class="cFunctionName">GRreadimage</b>, those parameters are expressed in (<em class="cVarName">x</em>,<em class="cVarName">y</em>) or [<em class="cVarName">column</em>,<em class="cVarName">row</em>] order. For example, <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">start[0]</code> is the starting point in the X dimension and <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">start[1]</code> is the starting point in the Y dimension. The same ordering holds true for all GR functions manipulating image data.</div>
</ul></div>
</ul></div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp549596"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp566182"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
It is sometimes necessary to determine whether and how a dataset is compressed and whether the software necessary to read that data is available. The compression method used on the dataset can be determined with <b class="cFunctionName">SDgetcompinfo</b> and the availability and configuration of the compression software with <b class="cFunctionName">HCget_config_info</b>. Further information is available in the respective entries in this reference manual.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp549058"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Note
</div></td>
<td><a name="wp549060"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">Regarding Szip-compressed data: <br /></span><b class="cFunctionName">SDreaddata</b> can succeed for an Szip-compressed dataset whether the available Szip library is configured either for encoding/decoding or for decoding-only.
</div>
<a name="wp549061"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
<a name="wp588194"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If the available Szip configuration is decode-only, <b class="cFunctionName">HCget_config_info</b> will return only <code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_DECODER_ENABLED</code><code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode"> </code>in <em class="cVarName">compression_config_info</em>; the returned flags will not include <code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_ENCODER_ENABLED</code>. In such a case, the file must have been opened in read-only mode, i.e. with <b class="cFunctionName">SDstart</b>(<em class="cVarName">filename</em><code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">, </code><code style="font-family: Courier New; font-size: 8pt" class="cDefName">DFACC_RDONLY</code>).
</div>
<a name="wp549063"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
<a name="wp549064"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If the Szip avaialble configuration is encode/decode, <b class="cFunctionName">HCget_config_info</b> will return <code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_ENCODER_ENABLED</code>|<code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_DECODER_ENABLED</code>. In such a case, the file and dataset can be opened in read/write mode.
</div>
<a name="wp549589"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
<a name="wp549568"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
See the <b class="cFunctionName">HCget_config_info</b> and <b class="cFunctionName">SDgetcompinfo</b> entries in this reference manual for further information.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp549076"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Note
</div></td>
<td><a name="wp568426"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cBold">Regarding Szip usage and licensing:</b>
</div>
<a name="wp568425"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
See <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">http://www.hdfgroup.org/doc_resource/SZIP/</span> for information regarding the use of Szip in HDF products and Szip licensing.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp585483table512870">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585483"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp585485"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfrdata(sds_id, start, stride, edge, buffer)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585487"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585489"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id, start(*), stride(*), edge(*)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585491"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585493"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
<valid numeric data type> buffer(*)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585495"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585497"> </a><div class="pCellFortran">
 
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585499"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585501"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfrcdata(sds_id, start, stride, edge, buffer)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585503"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585505"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id, start(*), stride(*), edge(*)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585507"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585509"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) buffer
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp430881"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDreftoindex/sfref2index
</h2>
<a name="wp430883"> </a><p style="font-weight: normal" class="pSignature">
int32 SDreftoindex(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sd_id</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_ref</span>)
</p>
<a name="wp566769"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp566732table566730">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp566732"> </a><div style="margin-top: 0pt" class="pCellVariable">
sd_id
</div>
</td>
<td><a name="wp566734"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp566736"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
SD interface identifier returned by <b class="cFunctionName">SDstart</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp566738"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_ref
</div>
</td>
<td><a name="wp566740"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp566742"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Reference number of the data set
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp566745table566743">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp566745"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp566747"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns the index of a data set given the reference number.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp566749"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp566751"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns the index of the data set (<em class="cVarName">sds_index</em>) if the data set is found and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp566753"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp566755"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDreftoindex</b> returns the index of a data set identified by its reference number, <em class="cVarName">sds_ref</em>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp566757"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp566759"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The value of <em class="cVarName">sds_index</em> returned by <b class="cFunctionName">SDreftoindex</b> can be passed to <b class="cFunctionName">SDselect</b> to obtain a data set identifier (<em class="cVarName">sds_id</em>).
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp566762table566760">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp566762"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp566764"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfref2index(sd_id, sds_ref)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp566766"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp566768"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sd_id, sds_ref
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp566776"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDreset_maxopenfiles/sfrmaxopenf
</h2>
<a name="wp566777"> </a><p style="font-weight: normal" class="pSignature">
intn SDreset_maxopenfiles(intn req_max)
</p>
<a name="wp566821"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp566780table566778">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp566780"> </a><div style="margin-top: 0pt" class="pCellVariable">
req_max
</div>
</td>
<td><a name="wp566782"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp566784"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Requested maximum number of opened files allowed
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp566793table566791">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp566793"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp566831"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Resets the maximum number of files can be opened at the same time.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp566797"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp566843"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns the current maximum number of opened files allowed if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or -1) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp566801"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp566852"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Prior to release 4.2r2, the maximum number of files that can be opened at the same time was limited to 32. In HDF 4.2r2 and later versions, if this limit is reached, the library will increase it to the system limit minus 3 to account for stdin, stdout, and stderr.
</div>
<a name="wp567762"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
<a name="wp567810"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
This function can be called anytime to change the maximum number of open files allowed in HDF to <em class="cVarName">req_max</em>. If <em class="cVarName">req_max</em> is <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>, <b class="cFunctionName">SDreset_maxopenfiles</b> will simply return the current maximum number of open files allowed. If <em class="cVarName">req_max</em> exceeds system limit, <b class="cFunctionName">SDreset_maxopenfiles</b> will reset the maximum number of open files to the system limit, and return that value.
</div>
<a name="wp567768"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
<a name="wp566911"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Furthermore, if the system maximum limit is reached, the library will push the error code <code style="font-family: Courier New; font-size: 8pt" class="cDefName">DFE_TOOMANY</code> onto the error stack. User applications can detect this after an <b class="cFunctionName">SDstart</b> fails.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp566810table566808">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp566810"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp566812"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfrmaxopenf(req_max)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp566814"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp566816"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer req_max
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp566771"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDselect/sfselect
</h2>
<a name="wp566772"> </a><p style="font-weight: normal" class="pSignature">
int32 SDselect(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sd_id</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_index</span>)
</p>
<a name="wp534322"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512965table512963">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512965"> </a><div style="margin-top: 0pt" class="pCellVariable">
sd_id
</div>
</td>
<td><a name="wp512967"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp512969"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
SD interface identifier returned by <b class="cFunctionName">SDstart</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512971"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_index
</div>
</td>
<td><a name="wp512973"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp512975"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Index of the data set
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp512978table512976">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512978"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp512980"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Obtains the data set identifier (<em class="cVarName">sds_id</em>) of a data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512982"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp512984"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns the data set identifier (<em class="cVarName">sds_id</em>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512986"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp512988"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDselect</b> obtains the data set identifier (<em class="cVarName">sds_id</em>) of the data set specified by its index, <em class="cVarName">sds_index</em>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512990"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513004"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The integration with netCDF has required that a dimension (or coordinate variable) is stored as a data set in the file. Therefore, the value of <em class="cVarName">sds_index</em> may correspond to the coordinate variable instead of the actual data set. Users should use the routine <b class="cFunctionName">SDiscoordvar</b> to determine whether the given data set is a coordinate variable.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp512994"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513006"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The value of <em class="cVarName">sds_index</em> is greater than or equal to 0 and less than the number of data sets in the file. The total number of data sets in a file may be obtained from a call to <b class="cFunctionName">SDfileinfo</b>. The <b class="cFunctionName">SDnametoindex</b> routine can be used to find the index of a data set if its name is known.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513009table513007">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513009"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp513011"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfselect(sd_id, sds_index)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513017"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513019"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sd_id, sds_index
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp430929"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDsetattr/sfsnatt/sfscatt
</h2>
<a name="wp430931"> </a><p style="font-weight: normal" class="pSignature">
intn SDsetattr(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">obj_id</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">attr_name</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">data_type</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">count</span>, VOIDP <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">values</span>)
</p>
<a name="wp534324"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513083table513081">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513083"> </a><div style="margin-top: 0pt" class="pCellVariable">
obj_id
</div>
</td>
<td><a name="wp513085"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513087"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Identifier of the object the attribute is to be attached to
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513089"> </a><div style="margin-top: 0pt" class="pCellVariable">
attr_name
</div>
</td>
<td><a name="wp513091"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513093"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Name of the attribute
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513095"> </a><div style="margin-top: 0pt" class="pCellVariable">
data_type
</div>
</td>
<td><a name="wp513097"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513099"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data type of the values in the attribute
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513101"> </a><div style="margin-top: 0pt" class="pCellVariable">
count
</div>
</td>
<td><a name="wp513103"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513105"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Total number of values to be stored in the attribute
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513107"> </a><div style="margin-top: 0pt" class="pCellVariable">
values
</div>
</td>
<td><a name="wp513109"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513111"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data values to be stored in the attribute
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513114table513112">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513114"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp513116"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Attaches an attribute to an object.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513118"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586075"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513122"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp513124"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDsetattr</b> attaches the attribute to the object specified by the <em class="cVarName">obj_id</em> parameter. The attribute is defined by its name, <em class="cVarName">attr_name</em>, data type, <em class="cVarName">data_type</em>, number of attribute values, <em class="cVarName">count</em>, and the attribute values, <em class="cVarName">values</em>. <b class="cFunctionName">SDsetattr</b> provides a generic way for users to define metadata. It implements the label = value data abstraction.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513126"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513150"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The value of <em class="cVarName">obj_id</em> can be an SD interface identifier (<em class="cVarName">sd_id</em>), returned by <b class="cFunctionName">SDstart</b>, a data set identifier (<em class="cVarName">sds_id</em>), returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>, or a dimension identifier (<em class="cVarName">dim_id</em>), returned by <b class="cFunctionName">SDgetdimid</b>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513130"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513152"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If an SD interface identifier (<em class="cVarName">sd_id</em>)<em class="cVarName"> </em>is specified as the <em class="cVarName">obj_id</em> parameter, a global attribute is created which applies to all objects in the file. If a data set identifier (<em class="cVarName">sds_id</em>) is specified as the <em class="cVarName">obj_id</em> parameter, an attribute is attached to the specified data set. If a dimension identifier (<em class="cVarName">dim_id</em>) is specified as the <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">obj_id</span> parameter, an attribute is attached to the specified dimension.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513134"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513154"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The <em class="cVarName">attr_name</em> argument can be any ASCII string.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513138"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513156"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The <em class="cVarName">data_type</em> parameter can contain any data type supported by the HDF library. These data types are listed in Table 1A in Section I of this manual.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp518318"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp518320"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Attribute values are passed in the parameter <em class="cVarName">values</em>. The number of attribute values is defined by the <em class="cVarName">count</em> parameter. If more than one value is stored, all values must have the same data type. If an attribute with the given name, data type and number of values exists, it will be overwritten.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513142"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513158"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Note that there are two FORTRAN-77 versions of this routine; <b class="cFunctionName">sfsnatt</b> and <b class="cFunctionName">sfscatt</b>. The <b class="cFunctionName">sfsnatt</b> routine writes numeric attribute data and <b class="cFunctionName">sfscatt</b> writes character attribute data.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513280table513192">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513280"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp513282"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfsnatt(obj_id, attr_name, data_type, count, values)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513292"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513294"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer obj_id, data_type, count
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513296"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513298"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) attr_name
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513300"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513302"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
<valid numeric data type> values(*)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp533075"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp533077"> </a><div class="pCellFortran">
 
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513312"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513314"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfscatt(obj_id, attr_name, data_type, count, values)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513324"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513326"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer obj_id, data_type, count
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513328"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513330"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) attr_name, values
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp441569"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDsetblocksize/sfsblsz
</h2>
<a name="wp441570"> </a><p style="font-weight: normal" class="pSignature">
intn SDsetblocksize(int32 <em class="cVarName">sd_id</em>, int32 <em class="cVarName">block_size</em>)
</p>
<a name="wp534326"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513339table513337">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513339"> </a><div style="margin-top: 0pt" class="pCellVariable">
<em class="cVarName">sd_id</em>
</div>
</td>
<td><a name="wp513341"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513343"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
SD interface identifier returned by <b class="cFunctionName">SDstart</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513345"> </a><div style="margin-top: 0pt" class="pCellVariable">
<em class="cVarName">block_size</em>
</div>
</td>
<td><a name="wp513347"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513349"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Size of the block in bytes
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513352table513350">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513352"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp513354"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Sets the block size used for storing data sets with unlimited dimensions.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513356"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586082"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513360"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp513362"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDsetblocksize</b> sets the block size defined in the parameter <em class="cVarName">block_size</em> for all data sets in the file. <b class="cFunctionName">SDsetblocksize</b> is used when creating new data sets only; it has no effect on pre-existing data sets.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513364"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp587694"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDsetblocksize</b> must be used after calls to <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b> and before the call to <b class="cFunctionName">SDwritedata</b>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513368"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513374"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The <em class="cVarName">block_size</em> parameter should be set to a multiple of the desired buffer size.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp515987table515985">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp515987"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp515989"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer sfsblsz(sd_id, block_size)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp515991"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp515993"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sd_id, block_size
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp430982"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDsetcal/sfscal
</h2>
<a name="wp430984"> </a><p style="font-weight: normal" class="pSignature">
intn SDsetcal(int32 <em class="cVarName">sds_id</em>, float64 <em class="cVarName">cal</em>, float64 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">cal_err</span>, float64 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">offset</span>, float64 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">offset_err</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">data_type</span>)
</p>
<a name="wp534328"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513379table513377">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513379"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp513381"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513383"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513385"> </a><div style="margin-top: 0pt" class="pCellVariable">
cal
</div>
</td>
<td><a name="wp513387"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513389"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Calibration factor
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513391"> </a><div style="margin-top: 0pt" class="pCellVariable">
cal_err
</div>
</td>
<td><a name="wp513393"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513395"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Calibration error
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513397"> </a><div style="margin-top: 0pt" class="pCellVariable">
offset
</div>
</td>
<td><a name="wp513399"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513401"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Uncalibrated offset
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513403"> </a><div style="margin-top: 0pt" class="pCellVariable">
offset_err
</div>
</td>
<td><a name="wp513405"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513407"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Uncalibrated offset error
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513409"> </a><div style="margin-top: 0pt" class="pCellVariable">
data_type
</div>
</td>
<td><a name="wp513411"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513413"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data type of uncalibrated data
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513416table513414">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513416"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp513418"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Sets the calibration information.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513420"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586089"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513424"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp513426"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDsetcal</b> stores the calibration record associated with a data set. A calibration record contains the following information:
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="center">
<table border="1" cellpadding="3" cellspacing="1" bgcolor="White" bordercolor="#FFFFFF" id="wp516293table513429">
<caption></caption>
<tr> <td><a name="wp516293"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
cal
</div>
</td>
<td><a name="wp516295"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Calibration factor
</div>
</td>
</tr>
<tr> <td><a name="wp516297"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
cal_err
</div>
</td>
<td><a name="wp516299"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Calibration error
</div>
</td>
</tr>
<tr> <td><a name="wp516301"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
offset
</div>
</td>
<td><a name="wp516303"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Uncalibrated offset
</div>
</td>
</tr>
<tr> <td><a name="wp516305"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
offset_err
</div>
</td>
<td><a name="wp516307"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Uncalibrated offset error
</div>
</td>
</tr>
<tr> <td><a name="wp516309"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
data_type
</div>
</td>
<td><a name="wp516311"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data type of uncalibrated data
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp516841table513462">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp516841"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp516843"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The relationship between a value <em class="cVarName">cal_value</em> stored in a data set and the original value is defined as: <em class="cVarName">orig_value</em> = <em class="cVarName">cal</em> * (<em class="cVarName">cal_value</em> - <em class="cVarName">offset</em>).
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513472"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513466"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The variable <em class="cVarName">offset_err</em> contains a potential error of <em class="cVarName">offset</em>, and <em class="cVarName">cal_err</em> contains a potential error of <em class="cVarName">cal</em>. Currently the calibration record is provided for information only. The SD interface performs no operations on the data based on the calibration tag.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513474"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513468"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The calibration information is automatically cleared after a call to <b class="cFunctionName">SDreaddata</b> or <b class="cFunctionName">SDwritedata</b>. Therefore, <b class="cFunctionName">SDsetcal</b> must be called once for each data set that is to be read or written.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513513table513477">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513513"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp513515"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfscal(sds_id, cal, cal_err, offset, offset_err, data_type)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513525"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513527"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id, data_type
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513529"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513531"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
real*8 cal, cal_err, offset, offset_err
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp516345"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDsetchunk/sfschnk
</h2>
<a name="wp516519"> </a><p style="font-weight: normal" class="pSignature">
intn SDsetchunk(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>, HDF_CHUNK_DEF <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">cdef</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">flag</span>)
</p>
<a name="wp534337"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp516592table516590">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp516592"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp516594"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp516596"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp532025"> </a><div style="font-style: italic; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">C only:</span>
</div></td>
<td><a name="wp516606"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
</td>
<td><a name="wp516608"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp516610"> </a><div style="margin-top: 0pt" class="pCellVariable">
cdef
</div>
</td>
<td><a name="wp516612"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp516614"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Pointer to the chunk definition
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp516616"> </a><div style="margin-top: 0pt" class="pCellVariable">
flag
</div>
</td>
<td><a name="wp516618"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp516620"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Compression flag
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp532026"> </a><div style="font-style: italic; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">Fortran only:</span>
</div></td>
<td><a name="wp516630"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
</td>
<td><a name="wp516632"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp516634"> </a><div style="margin-top: 0pt" class="pCellVariable">
dim_length
</div>
</td>
<td><a name="wp516636"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp516638"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Chunk dimensions array
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp516640"> </a><div style="margin-top: 0pt" class="pCellVariable">
comp_type
</div>
</td>
<td><a name="wp516642"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp516644"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Type of compression
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp516646"> </a><div style="margin-top: 0pt" class="pCellVariable">
comp_prm
</div>
</td>
<td><a name="wp516648"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp516650"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Compression parameters array
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp572304table516652">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp572304"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp572306"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Sets the chunk size and the compression method, if any, of a data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp572308"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp572310"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp572312"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp572314"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDsetchunk</b> makes the data set specified by the parameter <em class="cVarName">sds_id</em> a chunked data set according to the chunking and compression information provided in the parameters <em class="cVarName">cdef</em> and <em class="cVarName">flag</em> in C, and in the parameters <em class="cVarName">comp_type</em> and <em class="cVarName">comp_prm</em> in Fortran. Note that chunking and unlimited dimension are not supported together; <b class="cFunctionName">SDsetchunk</b> will fail if the dataset has an unlimited dimension.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp572320"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp572322"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">C only:</span>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp572324"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp572326"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The parameter <em class="cVarName">flag</em> specifies the type of the data set, i.e., if the data set is chunked or chunked and compressed with either RLE, Skipping Huffman, GZIP, Szip, or NBIT compression methods. Valid values of <em class="cVarName">flag</em> are as follows:
</div>
<div class="pSmartList1"><ul class="pSmartList1">
<div class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal"><ul class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal">
<a name="wp572327"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">HDF_CHUNK</code> for a chunked data set with no compression</div>
<a name="wp572328"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">HDF_CHUNK</code> | <code style="font-family: Courier New; font-size: 8pt" class="cDefName">HDF_COMP</code> for a chunked data set compressed with RLE, Skipping Huffman, GZIP, or Szip compression methods</div>
<a name="wp572329"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">HDF_CHUNK</code> | <code style="font-family: Courier New; font-size: 8pt" class="cDefName">HDF_NBIT</code> for a chunked and NBIT-compressed data set</div>
</ul></div>
</ul></div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp572331"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp572333"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Chunking and compression information are passed in the parameter <em class="cVarName">cdef</em>. The parameter <em class="cVarName">cdef</em> has a type of <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">HDF_CHUNK_DEF</code><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">,</span> defined in the HDF library as follows:
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp572335"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp572337"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 25pt; margin-top: 0pt; text-align: left; text-indent: -25pt" class="pcodebodyRM">
typedef union hdf_chunk_def_u
</p>
<a name="wp572338"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 25pt; margin-top: 0pt; text-align: left; text-indent: -25pt" class="pcodebodyRM">
{
</p>
<a name="wp572339"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
int32 chunk_lengths[2]; /* chunk lengths along each dim */
</p>
<a name="wp572341"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
struct
</p>
<a name="wp572342"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
{
</p>
<a name="wp572343"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level3">
int32 chunk_lengths[2];
</p>
<a name="wp572344"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level3">
int32 comp_type; /* compression type */
</p>
<a name="wp572345"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level3">
struct comp_info cinfo;
</p>
<a name="wp572346"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
} comp;
</p>
<a name="wp572348"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
struct
</p>
<a name="wp572349"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
{
</p>
<a name="wp572350"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level3">
int32 chunk_lengths[2];
</p>
<a name="wp572351"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level3">
intn start_bit;
</p>
<a name="wp572352"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level3">
intn bit_len;
</p>
<a name="wp572353"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level3">
intn sign_ext;
</p>
<a name="wp572354"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level3">
intn fill_one;
</p>
<a name="wp572355"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
} nbit;
</p>
<a name="wp572366"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 25pt; margin-top: 0pt; text-align: left; text-indent: -25pt" class="pcodebodyRM">
} HDF_CHUNK_DEF
</p>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp572369"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp572371"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
There are three pieces of chunking and compression information which should be specified: chunking dimensions, compression type, and, if needed, compression parameters.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp572373"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp572375"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If the data set is chunked, i.e., <em class="cVarName">flag</em> value is <code style="font-family: Courier New; font-size: 8pt" class="cDefName">HDF_CHUNK</code>, then <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">chunk_lengths[]</code> elements of <em class="cVarName">cdef</em> union (<code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">cdef.chunk_lengths[]</code>) have to be initialized to the chunk dimensions.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp572377"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp572379"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If the data set is chunked and compressed using RLE, Skipping Huffman, Szip, or GZIP methods (i.e., <em class="cVarName">flag</em> value is set up to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">HDF_CHUNK | HDF_COMP</code>), then the elements <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">chunk_lengths[]</code> of the structure <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">comp</code> in the union <em class="cVarName">cdef</em> (<code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">cdef.comp.chunk_lengths[]</code>) have to be initialized to the chunk dimensions.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp572381"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp572383"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If the data set is chunked and NBIT compression is applied (i.e., <em class="cVarName">flag</em> values is set up to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">HDF_CHUNK | HDF_NBIT</code>), then the elements <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">chunk_lengths[]</code> of the structure <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">nbit</code> in the union <em class="cVarName">cdef</em> (<code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">cdef.nbit.chunk_lengths[]</code>) have to be initialized to the chunk dimensions.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp572385"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp572387"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Compression types are passed in the field <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">comp_type</code> of the structure <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">cinfo</code> , which is an element of the structure <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">comp</code> in the union <em class="cVarName">cdef</em> (<code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">cdef.comp.cinfo.comp_type</code>). Refer to the <b class="cFunctionName">SDsetcompress</b> page in this manual for the definition of structure <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">comp_info</code>. Valid compression methods are:
</div>
<div class="pSmartList1"><ul class="pSmartList1">
<div class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal"><ul class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal">
<a name="wp572457"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_NONE</code> for no compression</div>
<a name="wp572455"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_RLE</code> for RLE run-length encoding</div>
<a name="wp572389"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_SKPHUFF</code> for Skipping Huffman compression</div>
<a name="wp572390"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_DEFLATE</code> for GZIP compression</div>
<a name="wp572391"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_SZIP</code> for Szip compression</div>
</ul></div>
</ul></div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp572393"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp572395"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
For Skipping Huffman and GZIP compression, parameters are passed in corresponding fields of the structure <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">cinfo</code>.
</div>
<div class="pSmartList1"><ul class="pSmartList1">
<div class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal"><ul class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal">
<a name="wp572396"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">o</span> Specify skipping size for Skipping Huffman compression in the field <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">cdef.comp.cinfo.skphuff.skp_size</code>, which must be an integer of value 1 or greater. </div>
<a name="wp572397"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">o</span> Specify the deflate level for GZIP compression in the field <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">cdef.comp.cinfo.deflate_level</code>. Valid deflate level values are integers between 0 and 9 inclusive.</div>
<a name="wp573300"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">o</span> Specify the options mask and the number of pixels per block for Szip compression in the fields <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">c_info.szip.options_mask</code> and <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">c_info.szip.pixels_per_block</code>, respectively.</div>
</ul></div>
</ul></div>
<a name="wp573323"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Refer to the <b class="cFunctionName">SDsetcompress</b> entry in this reference manual for details on these parameters.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp572400"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp572402"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
NBIT compression parameters are specified in the fields <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">start_bit</code>, <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">bit_len</code>, <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">sign_ext</code>, and <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">fill_one</code> in the structure <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">nbit</code> of the union <em class="cVarName">cdef</em>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp572413"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp572415"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">Fortran only:</span>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp572417"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp572419"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The <em class="cVarName">dim_length</em> array specifies the chunk dimensions.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp572421"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp572423"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The <em class="cVarName">comp_type</em> parameter specifies the compression type. Valid compression types and their values are defined in the <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">hdf.inc</code> file, and are listed below:
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp572425"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><div class="pSmartList1"><ul class="pSmartList1">
<div class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal"><ul class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal">
<a name="wp572427"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_NONE</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) for no compression</div>
<a name="wp572450"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_RLE</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">1</code>) for RLE compression algorithm</div>
<a name="wp572451"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_NBIT</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">2</code>) for NBIT compression algorithm</div>
<a name="wp572452"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_SKPHUFF</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">3</code>) for Skipping Huffman compression</div>
<a name="wp572431"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_DEFLATE</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">4</code>) for GZIP compression algorithm</div>
<a name="wp572432"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_SZIP</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">5</code>) for Szip compression algorithm</div>
</ul></div>
</ul></div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp572434"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp572436"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The <em class="cVarName">comp_prm</em>(1) parameter specifies the skipping size for the Skipping Huffman compression method and the deflate level for the GZIP compression method. The skipping size value must be 1 or greater; the deflate level must be an integer value between 0 and 9 inclusive.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp572438"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp572440"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
For NBIT compression, the four elements of the array <em class="cVarName">comp_prm</em> correspond to the four NBIT compression parameters listed in the structure <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">nbit</code>. The value of <em class="cVarName">comp_prm</em>(1) should be set to the value of <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">start_bit</code>, the value of <em class="cVarName">comp_prm</em>(2) should be set to the value of <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">bit_len</code>, the value of <em class="cVarName">comp_prm</em>(3) should be set to the value of <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">sign_ext</code>, and the value of <em class="cVarName">comp_prm</em>(4) should be set to the value of <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">fill_one</code>. See the <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">HDF_CHUNK_DEF</code> union description and the description of <b class="cFunctionName">SDsetnbitdataset</b> function for NBIT compression parameters definitions.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp572442"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
</div></td>
<td><a name="wp572523"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
For Szip compression, the first two elements of the array <em class="cVarName">comp_prm</em> correspond to the first two Szip compression parameters listed in the structure <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">szip</code>. The value of <em class="cVarName">comp_prm</em>(1) should be set to the value of <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">option_mask</code> and the value of <em class="cVarName">comp_prm</em>(2) should be set to the value of <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">pixels_per_block</code>.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp516815table516813">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp516815"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp516817"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer sfschnk(sds_id, dim_length, comp_type, comp_prm)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp516819"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp516821"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id, dim_length, comp_type, comp_prm(*)
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp516520"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDsetchunkcache/sfscchnk
</h2>
<a name="wp441432"> </a><p style="font-weight: normal" class="pSignature">
intn SDsetchunkcache(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">maxcache</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">flag</span>)
</p>
<a name="wp534339"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513587table513585">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513587"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp513589"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513591"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513593"> </a><div style="margin-top: 0pt" class="pCellVariable">
maxcache
</div>
</td>
<td><a name="wp513595"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513597"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Maximum number of chunks in the cache
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513599"> </a><div style="margin-top: 0pt" class="pCellVariable">
flag
</div>
</td>
<td><a name="wp513601"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513603"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Flag determining the behavior of the routine
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513606table513604">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513606"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp513608"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Sets the size of the chunk cache.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513610"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp513612"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns the maximum number of chunks that can be cached (the value of the parameter <em class="cVarName">maxcache</em>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513614"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp513616"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDsetchunkcache</b> sets the size of the chunk cache to the value of the parameter <em class="cVarName">maxcache</em>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513618"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513642"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Currently the only allowed value of the parameter <em class="cVarName">flag</em> is <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>, which designates default operation.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513622"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513644"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
By default, when a generic data set is promoted to be a chunked data set, the parameter <em class="cVarName">maxcache</em> is set to the number of chunks along the fastest changing dimension and a cache for the chunks is created.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513626"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513646"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If the chunk cache is full and the value of the parameter <em class="cVarName">maxcache</em> is greater then the current <em class="cVarName">maxcache</em> value, then the chunk cache is reset to the new value of <em class="cVarName">maxcache</em>. Otherwise the chunk cache remains at the current value of <em class="cVarName">maxcache</em>. If the chunk cache is not full, then the chunk cache is set to the new value of <em class="cVarName">maxcache</em> only if the new <em class="cVarName">maxcache</em> value is greater than the current number of chunks in the cache.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513630"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513648"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Do not set the value of <em class="cVarName">maxcache</em> to be less than the number of chunks along the fastest-changing dimension of the biggest slab to be written or read via <b class="cFunctionName">SDreaddata</b> or <b class="cFunctionName">SDwritedata</b>. Doing this will cause internal thrashing. See the section on chunking in Chapter 14, "HDF Performance Issues" in the <em class="cVarName">HDF User's Guide</em>, for more information on this.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp515461table515459">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp515461"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp515463"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer sfscchnk(sds_id, maxcache, flag)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp515465"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp515467"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id, maxcache, flag
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp455338"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDsetcompress/sfscompress
</h2>
<a name="wp536076"> </a><p style="font-weight: normal" class="pSignature">
intn SDsetcompress(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">comp_type</span>, comp_info *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">c_info</span>)
</p>
<a name="wp536198"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp536079table536077">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp536079"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp536081"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp536083"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp536085"> </a><div style="margin-top: 0pt" class="pCellVariable">
comp_type
</div>
</td>
<td><a name="wp536087"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp536089"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Compression method
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp536097"> </a><div style="margin-top: 0pt" class="pCellVariable">
<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">C only:</span>
</div>
</td>
<td><a name="wp536099"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
</td>
<td><a name="wp536101"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp536103"> </a><div style="margin-top: 0pt" class="pCellVariable">
c_info
</div>
</td>
<td><a name="wp536105"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp536107"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Pointer to the <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">comp_info</code> union
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp536115"> </a><div style="margin-top: 0pt" class="pCellVariable">
<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">Fortran only:</span>
</div>
</td>
<td><a name="wp536117"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
</td>
<td><a name="wp536119"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp536121"> </a><div style="margin-top: 0pt" class="pCellVariable">
comp_prm
</div>
</td>
<td><a name="wp536123"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp536125"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Compression parameters array
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp536128table536126">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp536128"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp536130"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Compresses the data set with the specified compression method.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp536132"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586101"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp536136"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp536138"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDsetcompress</b> compresses the data set identified by the parameter <em class="cVarName">sds_id</em> according to the compression method specified by the parameter <em class="cVarName">comp_type</em> and the compression information specified by the parameter <em class="cVarName">c_info</em> in C and <em class="cVarName">comp_prm</em> in Fortran. <b class="cFunctionName">SDsetcompress</b> prepares compression information to be used uring the next call to <b class="cFunctionName">SDwritedata</b>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp536140"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp536142"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDsetcompress</b> is a simplified interface to the <b class="cFunctionName">HCcreate</b> routine and should be used instead of <b class="cFunctionName">HCcreate</b>, unless the user is familiar with working with the lower-level routines.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp536144"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp549786"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The parameter <em class="cVarName">comp_type</em> is the compression type definition and is set to one of the following:
</div>
<div class="pSmartList1"><ul class="pSmartList1">
<div class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal"><ul class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal">
<a name="wp572556"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_NONE</code> for no compression</div>
<a name="wp549787"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_RLE</code> for run-length encoding (RLE) </div>
<a name="wp549788"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_SKPHUFF</code> for Skipping Huffman </div>
<a name="wp548952"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_DEFLATE</code> for GZIP compression </div>
<a name="wp548953"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_CODE_SZIP</code> for Szip compression</div>
</ul></div>
</ul></div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp536148"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp536150"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The parameter <em class="cVarName">c_info</em> is a pointer to a union structure of type <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">comp_info</code>. This union structure is defined as follows:
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp536152"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp536154"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 25pt; margin-top: 0pt; text-align: left; text-indent: -25pt" class="pcodebodyRM">
typedef union tag_comp_info
</p>
<a name="wp536155"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 25pt; margin-top: 0pt; text-align: left; text-indent: -25pt" class="pcodebodyRM">
{
</p>
<a name="wp590218"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
struct
</p>
<a name="wp590219"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
{
</p>
<a name="wp590220"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level3">
/* Not used by SDsetcompress */
</p>
<a name="wp536159"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
} jpeg;
</p>
<a name="wp536161"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
struct
</p>
<a name="wp536162"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
{
</p>
<a name="wp536163"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level3">
/* Not used by SDsetcompress */
</p>
<a name="wp536164"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
} nbit;
</p>
<a name="wp539746"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
struct
</p>
<a name="wp539747"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
{ /* struct to contain info about how to compress size of the
</p>
<a name="wp539748"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level3">
elements when skipping */
</p>
<a name="wp539749"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level3">
intn skp_size;
</p>
<a name="wp536170"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
} skphuff;
</p>
<a name="wp548719"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
struct
</p>
<a name="wp549349"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
{ /* struct to contain info about how to compress or decompress
</p>
<a name="wp585579"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level3">
gzip encoded dataset how hard to work when compressing data*/
</p>
<a name="wp585581"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level3">
intn level;
</p>
<a name="wp548724"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
} deflate;
</p>
<a name="wp548729"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
struct
</p>
<a name="wp548730"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
{ /* struct to contain info about how to compress or decompress
</p>
<a name="wp548731"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level3">
szip encoded dataset*/
</p>
<a name="wp548754"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level3">
int32 options_mask; /* IN */
</p>
<a name="wp549180"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level3">
int32 pixels_per_block; /* IN */
</p>
<a name="wp549188"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level3">
int32 pixels_per_scanline; /* OUT */
</p>
<a name="wp549174"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level3">
int32 bits_per_pixel; /* OUT */
</p>
<a name="wp548758"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level3">
int32 pixels; /* OUT */
</p>
<a name="wp548734"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 18pt; margin-top: 0pt; text-align: left; text-indent: 0pt" class="pcodebodyRM_level2">
} szip;
</p>
<a name="wp536179"> </a><p style="font-family: Courier New; font-size: 8pt; margin-bottom: 0pt; margin-left: 25pt; margin-top: 0pt; text-align: left; text-indent: -25pt" class="pcodebodyRM">
} comp_info;
</p>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp536182"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp536184"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The skipping size for the Skipping Huffman algorithm must be 1 or greater and is specified in the field <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">c_info.skphuff.skp_size</code> in C and in the parameter <em class="cVarName">comp_prm</em>(1) in Fortran.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp536186"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp536188"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The deflate level for the GZIP algorithm is specified in the <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">c_info.deflate.level</code> field in C and in the parameter <em class="cVarName">comp_prm</em>(1) in Fortran. Valid values are integers between 0 and 9 inclusive.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp549192"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp549194"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The Szip options mask and the number of pixels per block in a chunked and Szip-compressed dataset are specified in <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">c_info.szip.options_mask</code> and <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">c_info.szip.pixels_per_block</code>, respectively.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp549228"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp583606"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The options mask can contain either of the following values:
</div>
<div class="pSmartList1"><ul class="pSmartList1">
<div class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal"><ul class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal">
<a name="wp583607"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">SZ_EC_OPTION_MASK</code> - Specifies entropy coding method</div>
<a name="wp549263"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><code style="font-family: Courier New; font-size: 8pt" class="cDefName">SZ_NN_OPTION_MASK</code> - Specifies nearest neighbor coding method</div>
</ul></div>
</ul></div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp549289"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp549336"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The following guidelines may be helpful in selecting the encoding method:
</div>
<div class="pSmartList1"><ul class="pSmartList1">
<div class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal"><ul class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal">
<a name="wp549333"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">o</span> The entropy coding method, the EC option specified by <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SZ_EC_OPTION_MASK</code>, is best suited for data that has been processed. The EC method works best for small numbers.</div>
<a name="wp549296"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">o</span> The nearest neighbor coding method, the NN option specified by <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SZ_NN_OPTION_MASK</code>, preprocesses the data then applies the EC method as above. </div>
</ul></div>
</ul></div>
<a name="wp549298"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Other factors may affect results, but the above criteria provide a good starting point for optimizing data compression.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp549224"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp549235"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The Szip values of the number of pixels per scanline, the number of bits in a pixel, and the number of pixels in an image, are computed by the HDF4 library and provided to the user in <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">c_info.szip.pixels_per_scanline</code>, <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">c_info.szip.bits_per_pixel</code>, and <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">c_info.szip.pixels</code>, respectively.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp548961"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp548965"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDsetcompress</b> will succeed in setting Szip compression for a dataset only if the Szip library is available and configured for encoding, i.e., <b class="cFunctionName">HCget_config_info</b> must return the flag <code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_DECODER_ENABLED|COMP_ENCODER_ENABLED</code> in <em class="cVarName">compression_config_info</em>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp549093"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Note
</div></td>
<td><a name="wp549095"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Regarding Szip usage and licensing:
</div>
<a name="wp549096"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
See <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">http://www.hdfgroup.org/doc_resource/SZIP/</span> for information regarding the use of Szip in HDF products and Szip licensing.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp536191table536189">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp536191"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp536193"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer sfscompress(sds_id, comp_type, comp_prm)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp536195"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp536197"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id, comp_type, comp_prm(*)
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp536200"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDsetdatastrs/sfsdtstr
</h2>
<a name="wp431029"> </a><p style="font-weight: normal" class="pSignature">
intn SDsetdatastrs(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">label</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">unit</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">format</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">coordsys</span>)
</p>
<a name="wp534343"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513710table513708">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513710"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp513712"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513714"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513716"> </a><div style="margin-top: 0pt" class="pCellVariable">
label
</div>
</td>
<td><a name="wp513718"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513720"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Label (predefined attribute)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513722"> </a><div style="margin-top: 0pt" class="pCellVariable">
unit
</div>
</td>
<td><a name="wp513724"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513726"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Unit (predefined attribute)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513728"> </a><div style="margin-top: 0pt" class="pCellVariable">
format
</div>
</td>
<td><a name="wp513730"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp519406"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Format (predefined attribute)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513734"> </a><div style="margin-top: 0pt" class="pCellVariable">
coordsys
</div>
</td>
<td><a name="wp513736"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513738"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Coordinate system (predefined attribute)
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513741table513739">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513741"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp513743"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Sets the predefined attributes for a data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513745"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586108"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513749"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp513751"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDsetdatastrs</b> sets the predefined attributes of the data set, identified by <em class="cVarName">sds_id</em>, to the values specified in the parameters <em class="cVarName">label</em>, <em class="cVarName">unit</em>, <em class="cVarName">format</em> and <em class="cVarName">coordsys</em>. The predefined attributes are label, unit, format, and coordinate system. If the user does not want a string returned, the corresponding parameter can be set to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">NULL</code> in C and an empty string in Fortran.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp516963"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp516965"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
For more information about predefined attributes, refer to Section 3.10, "Predefined Attributes." of the <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">HDF User's Guide</span>.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513794table513758">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513794"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp513796"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfsdtstr(sds_id, label, unit, format, coordsys)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513806"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513808"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513810"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513812"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) label, unit, format, coordsys
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp431052"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDsetdimname/sfsdmname
</h2>
<a name="wp431054"> </a><p style="font-weight: normal" class="pSignature">
intn SDsetdimname(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">dim_id</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">dim_name</span>)
</p>
<a name="wp534345"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513818table513816">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513818"> </a><div style="margin-top: 0pt" class="pCellVariable">
dim_id
</div>
</td>
<td><a name="wp513820"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513822"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Dimension identifier returned by <b class="cFunctionName">SDgetdimid</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513824"> </a><div style="margin-top: 0pt" class="pCellVariable">
dim_name
</div>
</td>
<td><a name="wp513826"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513828"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Name of the dimension
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513831table513829">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513831"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp513833"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Assigns a name to a dimension.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513835"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586115"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513839"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp513841"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDsetdimname</b> sets the name of the dimension identified by the parameter <em class="cVarName">dim_id</em> to the value specified in the parameter <em class="cVarName">dim_name</em>. Dimensions that are not explicitly named by the user will have the default name of "<code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">fakeDim[x]</code>" specified by the HDF library, where [<code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">x</code>] denotes the dimension index.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513843"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513859"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If another dimension exists with the same name it is assumed that they refer to the same dimension object and changes to one will be reflected in the other. If the dimension with the same name has a different size, an error condition will result.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568471"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp568473"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The length of the parameter <em class="cVarName">dim_name</em> can be at most <code style="font-family: Courier New; font-size: 8pt" class="cDefName">H4_MAX_NC_NAME</code> (<code style="font-family: Courier New; font-size: 8pt" class="cDefName">256</code>) characters.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513847"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513861"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Naming dimensions is optional but encouraged.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568466"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Note
</div></td>
<td><a name="wp568468"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">Regarding naming a dimension the same as an SDS' name</b>
</div>
<a name="wp591639"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
HDF4 allows a dimension and a one-dimensional SDS to be given the same name. Prior to HDF4.2r2, however, the library did not always adequately track object types; when a dimension and a one-dimensional SDS shared a name, writing to the SDS or the dimension could cause data corruption to the other. The corrupted data was unrecoverable.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp589182"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp591647"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
This problem was fixed in Release 4.2r2 and such data corruption will not occur in files created with a 4.2r2 or later library. Note, however, that the fix is effective only in new files; a dimension and a one-dimensional SDS of the same name that were created with a pre-4.2r2 HDF4 Library remain vulnerable to data corruption<span style="color: #ff0000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault"> </span>if an application is unaware of the potential conflict. To safely handle pre-4.2r2 files, the library now provides two functions, <b class="cFunctionName">SDgetnumvars_byname</b> and <b class="cFunctionName">SDnametoindices</b>. <b class="cFunctionName">SDgetnumvars_byname</b> can be used to determine whether a name is unique. If the function reports one ('1') variable by that name, the name is unique and no further precaution needs to be taken. If the name is not unique, i.e., the number of variables by that name is greater than one, <b class="cFunctionName">SDnametoindices</b> must then be used to retrieve the index and the type of each variable with that name. The desired variable can then can be safely selected via its index. These functions are described in detail in this manual and the HDF User's Guide.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp591544"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp591627"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
A similar problem is possible when a multi-dimensional SDS and a dimension are created with the same name by a pre-4.2r2 library. The HDF Group has not seen such a failure, however, and it is thought to be very unlikely. Note that the fix introduced in Release 4.2r2 also prevents data corruption from happening for this situation even though the data was created with libraries prior to 4.2r2, assuming no corruption had yet occurred.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513866table513864">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513866"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp513868"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfsdmname(dim_id, dim_name)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513874"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513876"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer dim_id
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513878"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513880"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) dim_name
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp431075"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDsetdimscale/sfsdscale
</h2>
<a name="wp431077"> </a><p style="font-weight: normal" class="pSignature">
intn SDsetdimscale(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">dim_id</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">count</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">data_type</span>, VOIDP <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">data</span>)
</p>
<a name="wp534347"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513888table513886">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513888"> </a><div style="margin-top: 0pt" class="pCellVariable">
dim_id
</div>
</td>
<td><a name="wp513890"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513892"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Dimension identifier returned by <b class="cFunctionName">SDgetdimid</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513894"> </a><div style="margin-top: 0pt" class="pCellVariable">
count
</div>
</td>
<td><a name="wp513896"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513898"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Total number of values along the dimension
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513900"> </a><div style="margin-top: 0pt" class="pCellVariable">
data_type
</div>
</td>
<td><a name="wp513902"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513904"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data type of the values along the dimension
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513906"> </a><div style="margin-top: 0pt" class="pCellVariable">
data
</div>
</td>
<td><a name="wp513908"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513910"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Value of each increment along the dimension
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513913table513911">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513913"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp513915"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Stores the values of a dimension.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513917"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586122"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513921"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp513923"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDsetdimscale</b> stores scale information for the dimension identified by the parameter <em class="cVarName">dim_id</em>. Note that it is possible to store dimension scale values without naming the dimension.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513925"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513937"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
For fixed-size arrays, the value of <em class="cVarName">count</em> must be equal to the the dimension size or the routine will fail.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513929"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513939"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Note that, due to the existence of the parameter <em class="cVarName">data_type</em>, the dimension scales need not have the same data type as the data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp547871"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp547873"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Note that if <b class="cFunctionName">SDsetdimscale</b> is called and <b class="cFunctionName">SDsetdimname</b> is subsequently called for the same dimension, <b class="cFunctionName">SDsetdimscale</b> must be called again to reassociate the scale with the new name.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp599349"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp599354"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Note that if this dimension has the same name as another data set, <b class="cFunctionName">SDsetdimscale</b> might overwrite the data set. This was a bug in the HDF4 library prior to 4.2r2. For details, please refer to the note "<a href="RM_Section_II_SD.html#wp568468">Regarding naming a dimension the same as an SDS' name</a>" in the <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">SDsetdimname</span> page.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp599345"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp599359"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
When the uniqueness of the name is unknown, <b class="cFunctionName">SDgetnumvars_byname</b> can be used to get the number of data sets (or variables, which includes both data sets and coordinate variables) with the same name. <b class="cFunctionName">SDnametoindices</b> can then be used to get a list of structures containing the indices and the types of all the variables of that same name.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513942table513940">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513942"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp513944"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfsdscale(dim_id, count, data_type, data)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513950"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513952"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer dim_id, count, data_type
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513954"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp513956"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
<valid data type> data(*)
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp431101"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDsetdimstrs/sfsdmstr
</h2>
<a name="wp431103"> </a><p style="font-weight: normal" class="pSignature">
intn SDsetdimstrs(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">dim_id</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">label</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">unit</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">format</span>)
</p>
<a name="wp534349"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513964table513962">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513964"> </a><div style="margin-top: 0pt" class="pCellVariable">
dim_id
</div>
</td>
<td><a name="wp513966"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513968"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Dimension identifier returned by <b class="cFunctionName">SDgetdimid</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513970"> </a><div style="margin-top: 0pt" class="pCellVariable">
label
</div>
</td>
<td><a name="wp513972"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513974"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Label (predefined attribute)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513976"> </a><div style="margin-top: 0pt" class="pCellVariable">
unit
</div>
</td>
<td><a name="wp513978"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513980"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Unit (predefined attribute)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513982"> </a><div style="margin-top: 0pt" class="pCellVariable">
format
</div>
</td>
<td><a name="wp513984"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp513986"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Format (predefined attribute)
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp513989table513987">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513989"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp513991"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Sets the predefined attribute of a dimension.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513993"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586129"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp513997"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp513999"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">SDsetdimstrs</span> sets the predefined attribute (label, unit, and format) for a dimension and its scale to the values specified in the parameters <em class="cVarName">label</em>, <em class="cVarName">unit</em> and <em class="cVarName">format</em>. If a parameter is set to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">NULL</code> in C and an empty string in Fortran, then the attribute corresponding to that parameter will not be written. For more information about predefined attributes, refer to Section 3.10, "Predefined Attributes." of the <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">HDF User's Guide</span>.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514002table514000">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514002"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp514004"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfsdmstr(dim_id, label, unit, format)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514010"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514012"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer dim_id
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514014"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514016"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) label, unit, format
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp442210"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDsetdimval_comp/sfsdmvc
</h2>
<a name="wp442211"> </a><p style="font-weight: normal" class="pSignature">
intn SDsetdimval_comp(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">dim_id</span>, intn<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault"> comp_mode</span>)
</p>
<a name="wp534351"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514023table514021">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514023"> </a><div style="margin-top: 0pt" class="pCellVariable">
dim_id
</div>
</td>
<td><a name="wp514025"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514027"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Dimension identifier returned by <b class="cFunctionName">SDgetdimid</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514029"> </a><div style="margin-top: 0pt" class="pCellVariable">
comp_mode
</div>
</td>
<td><a name="wp514031"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514033"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Compatibility mode to be set
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514036table514034">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514036"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp514038"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Determines whether a dimension <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">will have</span> the old and new representations or the new representation only.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514040"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586138"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514044"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp514046"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">SDsetdimval_comp</span> sets the compatibility mode specified by the <em class="cVarName">comp_mode</em> parameter for the dimension identified by the <em class="cVarName">dim_id</em> parameter. The two possible compatibility modes are: "backward-compatible" mode, which implies that the old and new dimension representations are written to the file, and "backward-incompatible" mode, which implies that only the new dimension representation is written to the file.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514048"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514068"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Unlimited dimensions are always backward-compatible, therefore <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">SDsetdimval_comp</span> takes no action on unlimited dimensions.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514052"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514070"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
As of HDF version 4.1r1, the default mode is backward-incompatible. Subsequent calls to <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">SDsetdimval_comp</span> will override the settings established in previous calls to the routine.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514056"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514072"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The <em class="cVarName">comp_mode</em> parameter can be set to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SD_DIMVAL_BW_COMP</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">1</code>), which specifies backward-compatible mode, or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SD_DIMVAL_BW_INCOMP</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>), which specifies backward-incompatible mode.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514077table514075">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514077"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp514079"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfsdmvc(dim_id, comp_mode)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514085"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514087"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer dim_id, comp_mode
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp442252"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDsetexternalfile/sfsextf
</h2>
<a name="wp431126"> </a><p style="font-weight: normal" class="pSignature">
intn SDsetexternalfile(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>, char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">filename</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">offset</span>)
</p>
<a name="wp534353"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514092table514090">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514092"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp514094"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514096"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514098"> </a><div style="margin-top: 0pt" class="pCellVariable">
filename
</div>
</td>
<td><a name="wp514100"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514102"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Name of the external file
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514104"> </a><div style="margin-top: 0pt" class="pCellVariable">
offset
</div>
</td>
<td><a name="wp514106"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514108"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Number of bytes from the beginning of the external file to where the data will be written
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514111table514109">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514111"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp514113"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Stores data in an external file.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514115"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586145"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514119"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp514121"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">SDsetexternalfile</span> allows users to move the actual data values (i.e., not metadata) of a data set, <em class="cVarName">sds_id</em>, into the external data file named by the parameter <em class="cVarName">filename</em>, and started at the offset specified by the parameter <em class="cVarName">offset</em>. The metadata remains in the original file. Note that this routine works only with HDF post-version 3.2 files.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514123"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514147"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data can only be moved once for any given data set, and it is the user's responsibility to make sure the external data file is kept with the "original" file.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514127"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514149"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If the data set already exists, its data will be moved to the external file. Space occupied by the data in the primary file will not be released. To release the space in the primary file use the <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">hdfpack</span> command-line utility. If the data set does not exist, its data will be written to the external file during the consequent calls to <b class="cFunctionName">SDwritedata</b>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514131"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514151"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
See the reference manual entries for <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">HXsetcreatedir</span> and <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">HXsetdir</span> for more information on the options available for accessing external files.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514156table514154">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514156"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp514158"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfsextf(sds_id, file_name, offset)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514164"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514166"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id, offset<span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault"> </span>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514168"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514170"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) file_name
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp431151"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDsetfillmode/sfsflmd
</h2>
<a name="wp431153"> </a><p style="font-weight: normal" class="pSignature">
intn SDsetfillmode(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sd_id</span>, intn <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">fill_mode</span>)
</p>
<a name="wp534355"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514175table514173">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514175"> </a><div style="margin-top: 0pt" class="pCellVariable">
sd_id
</div>
</td>
<td><a name="wp514177"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514179"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
SD interface identifier returned by <b class="cFunctionName">SDstart</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514181"> </a><div style="margin-top: 0pt" class="pCellVariable">
fill_mode
</div>
</td>
<td><a name="wp514183"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514185"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Fill mode
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514188table514186">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514188"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp514190"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Sets the current fill mode of a file.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514192"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp514194"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns the fill mode value before it was reset if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514196"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp514198"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">SDsetfillmode</span> applies the fill mode specified by the parameter <em class="cVarName">fill_mode</em> to all data sets contained in the file identified by the parameter <em class="cVarName">sd_id</em>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp518364"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp518366"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Possible values of <em class="cVarName">fill_mode</em> are <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SD_FILL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SD_NOFILL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">256</code>). <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SD_FILL</code> is the default mode, and indicates that fill values will be written when the data set is created. <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SD_NOFILL</code> indicates that fill values will not be written.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514204"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514226"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
When a data set without unlimited dimensions is created, by default the first <b class="cFunctionName">SDwritedata</b> call will fill the entire data set with the default or user-defined fill value (set by <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">SDsetfillvalue</span>). In data sets with an unlimited dimension , if a new write operation takes place along the unlimited dimension beyond the last location of the previous write operation, the array locations between these written areas will be initialized to the user-defined fill value, or the default fill value if a user-defined fill value has not been specified.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp518376"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp518378"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If it is certain that all data set values will be written before any read operation takes place, there is no need to write the fill values. Simply call <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">SDsetfillmode</span> with <em class="cVarName">fill_mode</em> value set to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SD_NOFILL</code>, which will eliminate all fill value write operations to the data set. For large data sets, this can improve the speed by almost 50%.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514233table514231">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514233"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp514235"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfsflmd(sd_id, fill_mode)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514241"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514243"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sd_id, fill_mode
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp442891"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDsetfillvalue/sfsfill/sfscfill
</h2>
<a name="wp442892"> </a><p style="font-weight: normal" class="pSignature">
intn SDsetfillvalue(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>, VOIDP <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">fill_value</span>)
</p>
<a name="wp534357"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514252table514250">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514252"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp514254"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514256"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514258"> </a><div style="margin-top: 0pt" class="pCellVariable">
fill_value
</div>
</td>
<td><a name="wp514260"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514262"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Fill value
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514265table514263">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514265"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp514267"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Sets the fill value for a data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514269"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586152"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514273"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp514275"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">SDsetfillvalue</span> sets the fill value specified by the <em class="cVarName">fill_value</em> parameter for the data set identified by the <em class="cVarName">sds_id</em> parameter.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514277"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514281"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The fill value is assumed to have the same data type as the data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp520165"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp520167"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
It is recommended to call <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">SDsetfillvalue</span> before writing data.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514284table514282">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514284"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp514286"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfsfill(sds_id, fill_value)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514292"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514294"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514296"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514298"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
<valid numeric data type> fill_value
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp533625"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp533627"> </a><div class="pCellFortran">
 
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp520123"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp520178"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfscfill(sds_id, fill_value)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp520115"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp520135"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp520111"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp520137"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) fill_value
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp441862"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDsetnbitdataset/sfsnbit
</h2>
<a name="wp441863"> </a><p style="font-weight: normal" class="pSignature">
intn SDsetnbitdataset(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>, intn <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">start_bit</span>, intn <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">bit_len</span>, intn <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sign_ext</span>, intn <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">fill_one</span>)
</p>
<a name="wp534359"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514303table514301">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514303"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp514305"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514307"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514309"> </a><div style="margin-top: 0pt" class="pCellVariable">
start_bit
</div>
</td>
<td><a name="wp514311"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514313"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Leftmost bit of the field to be written
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514315"> </a><div style="margin-top: 0pt" class="pCellVariable">
bit_len
</div>
</td>
<td><a name="wp514317"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514319"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Length of the bit field to be written
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514321"> </a><div style="margin-top: 0pt" class="pCellVariable">
sign_ext
</div>
</td>
<td><a name="wp514323"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514325"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Sign extend specifier
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514327"> </a><div style="margin-top: 0pt" class="pCellVariable">
fill_one
</div>
</td>
<td><a name="wp514329"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514331"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Background bit specifier
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514334table514332">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514334"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp514336"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Specifies a non-standard bit length for the data set values.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514338"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586159"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514342"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp514344"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">SDsetnbitdataset</span> allows the HDF user to specify that the data set identified by the parameter <em class="cVarName">sds_id</em> contains data of a non-standard length defined by the parameters <em class="cVarName">start_bit</em> and <em class="cVarName">bit_len</em>. Additional information about the non-standard bit length decoding are specified in the parameters <em class="cVarName">sign_ext</em> and <em class="cVarName">fill_one</em>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514346"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514392"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Any length between 1 and 32 bits can be specified. After <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">SDsetnbitdataset</span> has been called for the data set array, any read or write operations will involve a conversion between the new data length of the data set array and the data length of the read or write buffer.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514350"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514394"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Bit lengths of all data types are counted from the right of the bit field starting with 0. In a bit field containing the values <code style="font-family: Courier New; font-size: 8pt" class="cDefName">01111011</code>, bits 2 and 7 are set to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code> and all the other bits are set to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">1</code>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514354"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514396"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The <em class="cVarName">start_bit </em>parameter specifies the leftmost position of the variable-length bit field to be written. For example, in the bit field described in the preceding paragraph a <em class="cVarName">start_bit</em> parameter set to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">4</code> would correspond to the fourth bit value of <code style="font-family: Courier New; font-size: 8pt" class="cDefName">1</code> from the right.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514358"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514398"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The <em class="cVarName">bit_len</em> parameter specifies the number of bits of the variable-length bit field to be written. This number includes the starting bit and the count proceeds toward the right end of the bit field - toward the lower-bit numbers. For example, starting at bit 5 and writing 4 bits of the bit field described in the preceding paragraph would result in the bit field <code style="font-family: Courier New; font-size: 8pt" class="cDefName">1110</code> being written to the data set. This would correspond to a <em class="cVarName">start_bit</em> value of <code style="font-family: Courier New; font-size: 8pt" class="cDefName">5</code> and a <em class="cVarName">bit_len</em> value of <code style="font-family: Courier New; font-size: 8pt" class="cDefName">4</code>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514362"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514400"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The <em class="cVarName">sign_ext</em> parameter specifies whether to use the leftmost bit of the variable-length bit field to sign-extend to the leftmost bit of the data set data. For example, if 9-bit signed integer data is extracted from bits 17-25 and the bit in position 25 is <code style="font-family: Courier New; font-size: 8pt" class="cDefName">1</code>, then when the data is read back from disk, bits 26-31 will be set to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">1</code>. Otherwise bit 25 will be <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code> and bits 26-31 will be set to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>. The <em class="cVarName">sign_ext</em> parameter can be set to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">TRUE</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">1</code>) or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FALSE </code>(or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) - specify <code style="font-family: Courier New; font-size: 8pt" class="cDefName">TRUE</code> to sign-extend.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514366"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514402"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The <em class="cVarName">fill_one</em> specifies whether to fill the "background" bits with the value <code style="font-family: Courier New; font-size: 8pt" class="cDefName">1</code> or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>. This parameter can also be set to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">TRUE</code> or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FALSE</code>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514370"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514404"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The "background" bits of a variable-length data set are the bits that fall outside of the variable-length bit field stored on disk. For example, if five bits of an unsigned 16-bit integer data set located in bits 5 to 9 are written to disk with the <em class="cVarName">fill_one</em> parameter set to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">TRUE</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">1</code>), then when the data is reread into memory bits 0 to 4 and 10 to 15 would be set to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">1</code>. If the same 5-bit data was written with a <em class="cVarName">fill_one</em> value of <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FALSE</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>), then bits 0 to 4 and 10 to 15 would be set to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514374"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514406"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
This bit operation is performed before the sign-extend bit-filling. For example, using the <em class="cVarName">sign_ext</em> example above, bits 0 to 16 and 26 to 31 will first be set to the "background" bit value, and then bits 26 to 31 will be set to <code style="font-family: Courier New; font-size: 8pt" class="cDefName">1</code> or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code> based on the value of the 25th bit.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514409table514407">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514409"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp514411"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfsnbit(sds_id, start_bit, bit_len, sign_ext, fill_one)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514421"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514423"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id, start_bit, bit_len, sign_ext, fill_one
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp431178"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDsetrange/sfsrange
</h2>
<a name="wp431180"> </a><p style="font-weight: normal" class="pSignature">
intn SDsetrange(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>, VOIDP <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">max</span>, VOIDP <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">min</span>)
</p>
<a name="wp534361"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514431table514429">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514431"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp514433"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514435"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514437"> </a><div style="margin-top: 0pt" class="pCellVariable">
max
</div>
</td>
<td><a name="wp514439"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514441"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Maximum value of the range
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514443"> </a><div style="margin-top: 0pt" class="pCellVariable">
min
</div>
</td>
<td><a name="wp514445"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514447"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Minimum value of the range
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514450table514448">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514450"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp514452"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Sets the maximum and minimum range values for a data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514454"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586166"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514458"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp514460"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">SDsetrange</span> sets the maximum and minimum range values of the data set identified by the parameter <em class="cVarName">sds_id</em> with the values of the parameters <em class="cVarName">max</em> and <em class="cVarName">min</em>. The term "range" is used here to describe the range of numeric values stored in a data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514462"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514476"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
It is assumed that the data type for the maximum and minimum range values are the same as the data type of the data.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514466"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514478"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
This routine does not compute the maximum and minimum range values, it only stores the values as given. As a result, the maximum and minimum range values may not always reflect the actual maximum and minimum range values in the data set data.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514481table514479">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514481"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp514483"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfsrange(sds_id, max, min)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514489"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514491"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514493"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514495"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
<valid numeric data type> max, min
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp431208"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDstart/sfstart
</h2>
<a name="wp431210"> </a><p style="font-weight: normal" class="pSignature">
int32 SDstart(char *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">filename</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">access_mode</span>)
</p>
<a name="wp534363"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514501table514499">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514501"> </a><div style="margin-top: 0pt" class="pCellVariable">
filename
</div>
</td>
<td><a name="wp514503"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514505"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Name of the HDF file
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514507"> </a><div style="margin-top: 0pt" class="pCellVariable">
access_mode
</div>
</td>
<td><a name="wp514509"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514511"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The file access mode in effect during the current session
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514514table514512">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514514"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp514516"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Opens an HDF file and initializes an SD interface.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514518"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp514520"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns an SD interface identifier if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514522"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp514524"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDstart</b> opens the file with the name specified by the parameter <em class="cVarName">filename</em>, with the access mode specified by the parameter <em class="cVarName">access_mode</em>, and returns an SD interface identifier (<em class="cVarName">sd_id</em>). This routine must be called for each file before any other SD calls can be made on that file.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514526"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514566"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The type of identifier returned by <b class="cFunctionName">SDstart</b> is currently not the same as the identifier returned by <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">Hopen</span>. As a result, the SD interface identifiers (<em class="cVarName">sd_id</em>) returned by this routine are not understood by other HDF interfaces.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514530"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514568"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
To mix SD API calls and other HDF API calls, use <b class="cFunctionName">SDstart</b> and <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">Hopen</span> on the same file. <b class="cFunctionName">SDstart</b> must precede all SD calls, and <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">Hopen</span> must precede all other HDF function calls. To terminate access to the file, use <b class="cFunctionName">SDend</b> to dispose of the SD interface identifier, <em class="cVarName">sd_id</em>,<em class="cVarName"> </em>and <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">Hclose</span> to dispose of the file identifier, <em class="cVarName">file_id</em>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514534"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514570"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The file identified by the parameter <em class="cVarName">filename</em> can be any one of the following: an XDR-based netCDF file, "old-style" DFSD file or a "new-style" SD file.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514538"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514572"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The value of the parameter <em class="cVarName">access_mode</em> can be one of the following:
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp518149"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp518151"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<code style="font-family: Courier New; font-size: 8pt" class="cDefName">DFACC_READ</code> - Open existing file for read-only access. If the file does not exist, specifying this mode will cause <b class="cFunctionName">SDstart</b> to return <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>).
</div>
<a name="wp518162"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<code style="font-family: Courier New; font-size: 8pt" class="cDefName">DFACC_WRITE</code> - Open existing file for read and write access. If the file does not exist, specifying this mode will cause <b class="cFunctionName">SDstart</b> to return <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>).
</div>
<a name="wp518167"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<code style="font-family: Courier New; font-size: 8pt" class="cDefName">DFACC_CREATE</code> - Create a new file with read and write access. If the file has already existed, its contents will be replaced.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568228"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Note
</div></td>
<td><a name="wp568231"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Starting from HDF 4.2r2, the maximum number of open files is no longer limited to 32. It can be up to what the system allowed.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp568246"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Note
</div></td>
<td><a name="wp568250"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
It has been reported that opening/closing file in loops is very slow; thus, it is not recommended to perform such operations too many times, particularly, when data is being added to the file between opening/closing.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514586table514584">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514586"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp514588"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfstart(filename, access_mode)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514594"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514596"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) filename
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514598"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514600"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer access_mode
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp441960"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDwritechunk/sfwchnk/sfwcchnk
</h2>
<a name="wp441961"> </a><p style="font-weight: normal" class="pSignature">
intn SDwritechunk(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>, int32 *<span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">origin</span>, VOIDP <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">datap</span>)
</p>
<a name="wp534365"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514607table514605">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514607"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp514609"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514611"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514613"> </a><div style="margin-top: 0pt" class="pCellVariable">
origin
</div>
</td>
<td><a name="wp514615"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514617"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Origin of the chunk to be written
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514619"> </a><div style="margin-top: 0pt" class="pCellVariable">
datap
</div>
</td>
<td><a name="wp514621"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp514623"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Buffer for the chunk data to be written
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp514626table514624">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514626"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp514628"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Writes a data chunk to a chunked data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514630"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586173"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514634"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp514636"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDwritechunk</b> writes the entire chunk of data stored in the buffer <em class="cVarName">datap</em> to the chunked data set identified by the parameter <em class="cVarName">sds_id</em>. Writing starts at the location specified by the parameter <em class="cVarName">origin</em>. <b class="cFunctionName">SDwritechunk</b> is used when an entire chunk of data is to be written. <b class="cFunctionName">SDwritedata</b> is used when the write operation is to be done regardless of the chunking scheme used in the data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514642"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514660"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDwritechunk</b> will return <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) when an attempt is made to use it to write to a non-chunked data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp514646"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp514662"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The parameter <em class="cVarName">origin</em> specifies the coordinates of the chunk according to the chunk position in the overall chunk array. Refer to Chapter 3, "Scientific Data Sets (SD API)" in the <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">HDF User's Guide</span>, for a description of the organization of chunks in a data set.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp515389"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp515391"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Note that there are two FORTRAN-77 versions of this routine; one for numeric data (<b class="cFunctionName">sfwchnk</b>) and one for character data (<b class="cFunctionName">sfwcchnk</b>).
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp549453"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Note
</div></td>
<td><a name="wp549455"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">Regarding Szip-compressed data: <br /></span><b class="cFunctionName">SDwritechunk</b> can succeed only when the available Szip library is configured for encoding/decoding, i.e., when <b class="cFunctionName">HCget_config_info</b> returns <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">COMP_ENCODER_ENABLED</code>|<code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">COMP_DECODER_ENABLED</code> in <em class="cVarName">compression_config_info</em>.
</div>
<a name="wp549654"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
 
</div>
<a name="wp549666"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
See the <b class="cFunctionName">SDgetcompinfo</b> and <b class="cFunctionName">HCget_config_info</b> entries in this reference manual for further discussion of compression methods and configuration.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp549448"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Note
</div></td>
<td><a name="wp549450"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cBold">Regarding Szip usage and licensing:</b>
</div>
<a name="wp549451"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
See <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">http://www.hdfgroup.org/doc_resource/SZIP/</span> for information regarding the use of Szip in HDF products and Szip licensing.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp515342table515340">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp515342"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp515344"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer sfwchnk(sds_id, origin, datap)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp515346"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp515348"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id, origin
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp515377"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp515379"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
<valid numeric data type> datap(*)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp533629"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp533631"> </a><div class="pCellFortran">
 
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp515365"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp515373"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer sfwcchnk(sds_id, origin, datap)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp515361"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp515375"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id, origin
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp515383"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp515385"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) datap(*)
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<a name="wp431251"> </a><h2 class="pRef_SD_RoutineName">
<p align=right><A HREF="RM_Section_II_SDLOP.html">
[SD Interface]</A><a HREF="RMTOP.html"><b>[Top]</b></a>
</p>
<hr />
SDwritedata/sfwdata/sfwcdata
</h2>
<a name="wp431253"> </a><p style="font-weight: normal" class="pSignature">
intn SDwritedata(int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">sds_id</span>, int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">start</span>[], int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">stride</span>[], int32 <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">edge</span>[], VOIDP <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">buffer </span>)
</p>
<a name="wp585834"> </a><p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp585704table585702">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585704"> </a><div style="margin-top: 0pt" class="pCellVariable">
sds_id
</div>
</td>
<td><a name="wp585706"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp585708"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Data set identifier returned by <b class="cFunctionName">SDcreate</b> or <b class="cFunctionName">SDselect</b>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585710"> </a><div style="margin-top: 0pt" class="pCellVariable">
start
</div>
</td>
<td><a name="wp585712"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp585714"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Array specifying the starting location of the data to be written
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585716"> </a><div style="margin-top: 0pt" class="pCellVariable">
stride
</div>
</td>
<td><a name="wp585718"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp585720"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Array specifying the number of values to skip along each dimension
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585722"> </a><div style="margin-top: 0pt" class="pCellVariable">
edge
</div>
</td>
<td><a name="wp585724"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp585726"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Array specifying the number of values to be written along each dimension
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585728"> </a><div style="margin-top: 0pt" class="pCellVariable">
buffer
</div>
</td>
<td><a name="wp585730"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
IN:
</div>
</td>
<td><a name="wp585732"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Buffer for the values to be written
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp585735table585733">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585735"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Purpose
</div></td>
<td><a name="wp585737"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Writes a subsample of data to a data set or to a coordinate variable.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585739"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Return value
</div></td>
<td><a name="wp586180"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">SUCCEED</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code>) if successful and <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>) otherwise.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585743"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Description
</div></td>
<td><a name="wp585745"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDwritedata</b> writes the specified subsample of data to the data set or coordinate variable identified by the parameter <em class="cVarName">sds_id</em>. The data is written from the buffer <em class="cVarName">buffer</em>. The subsample is defined by the parameters <em class="cVarName">start</em>, <em class="cVarName">stride</em> and <em class="cVarName">edge.</em>
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585747"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585749"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The array <em class="cVarName">start</em> specifies the starting position from where the subsample will be written. Valid values of each element in the array <em class="cVarName">start</em> are from <code style="font-family: Courier New; font-size: 8pt" class="cDefName">0</code> to the size of the corresponding dimension of the data set - 1. The dimension sizes are returned by <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">SDgetinfo</span>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585751"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585753"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The array <em class="cVarName">edge</em> specifies the number of values to write along each data set dimension.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585755"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585757"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
The array <em class="cVarName">stride </em> specifies the writing pattern along each dimension. For example, if one of the elements of the array <em class="cVarName">stride</em> is 1, then every element along the corresponding dimension of the data set will be written. If one of the elements of the array <em class="cVarName">stride</em> is 2, then every other element along the corresponding dimension of the data set will be written, and so on. Specifying <em class="cVarName">stride</em> value of <code style="font-family: Courier New; font-size: 8pt" class="cDefName">NULL</code> in the C interface or setting all values of the array <em class="cVarName">stride</em> to 1 in either interface specifies the contiguous writing of data. If all values in the array <em class="cVarName">stride</em> are set to 0, <b class="cFunctionName">SDwritedata</b> returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">FAIL</code> (or <code style="font-family: Courier New; font-size: 8pt" class="cDefName">-1</code>).
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585759"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585761"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
When writing data to a chunked data set using <b class="cFunctionName">SDwritedata</b>, consideration should be given to be issues presented in the section on chunking in Chapter 3, "Scientific Data Sets (SD API)" and Chapter 14, "HDF Performance Issues" in the <span style="color: #000000; font-style: italic; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">HDF User's Guide</span>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585769"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585771"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
Note that there are two FORTRAN-77 versions of this routine; <b class="cFunctionName">sfwdata</b> and <b class="cFunctionName">sfwcdata</b>. The <b class="cFunctionName">sfwdata</b> routine writes numeric data and <b class="cFunctionName">sfwcdata</b> writes character scientific data.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585773"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Note
</div></td>
<td><a name="wp585775"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<span style="color: #000000; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">Regarding an important difference between the SD and GR interfaces: <br /></span>The SD and GR interfaces differ in the correspondence between the dimension order in parameter arrays such as <em class="cVarName">start</em>, <em class="cVarName">stride</em>, <em class="cVarName">edge</em>, and <em class="cVarName">dimsizes</em> and the dimension order in the <em class="cVarName">data</em> array. See the <b class="cFunctionName">SDreaddata </b>and<b class="cFunctionName"> GRreadimage </b>reference manual pages for discussions of the SD and GR approaches, respectively.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585777"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585779"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
When writing applications or tools to manipulate both images and two-dimensional SDs, this crucial difference between the interfaces must be taken into account. While the underlying data is stored in row-major order in both cases, the API parameters are not expressed in the same way. Consider the example of an SD data set and GR image that are stored as identically-shaped arrays of X columns by Y rows and accessed via the <b class="cFunctionName">SDreaddata</b> and <b class="cFunctionName">GRreadimage</b> functions, respectively. Both functions take the parameters <em class="cVarName">start</em>, <em class="cVarName">stride</em>, and <em class="cVarName">edge</em>.
</div>
<div class="pSmartList1"><ul class="pSmartList1">
<div class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal"><ul class="pSmartList2" style="font-family: Times New Roman; font-style: normal; font-weight: normal">
<a name="wp585780"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">o</span> For <b class="cFunctionName">SDreaddata</b>, those parameters are expressed in (<em class="cVarName">y</em>,<em class="cVarName">x</em>) or [<em class="cVarName">row</em>,<em class="cVarName">column</em>] order. For example, <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">start[0]</code> is the starting point in the Y dimension and <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">start[1]</code> is the starting point in the X dimension. The same ordering holds true for all SD data set manipulation functions.</div>
<a name="wp585781"> </a><div style="font-family: Times New Roman; font-style: normal; font-weight: normal" class="pSmartList2"><span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">o</span> For <b class="cFunctionName">GRreadimage</b>, those parameters are expressed in (<em class="cVarName">x</em>,<em class="cVarName">y</em>) or [<em class="cVarName">column</em>,<em class="cVarName">row</em>] order. For example, <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">start[0]</code> is the starting point in the X dimension and <code style="font-family: Courier New; font-style: normal; font-weight: normal" class="cCode">start[1]</code> is the starting point in the Y dimension. The same ordering holds true for all GR functions manipulating image data.</div>
</ul></div>
</ul></div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585783"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Note
</div></td>
<td><a name="wp585785"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cBold">Regarding compressed data sets:</b>
</div>
<a name="wp585786"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
If a data set is compressed, it may be necessary to determine whether the compression method is available on the current system and configured so that data can be encoded before being written. The compression method can be determined through the use of <b class="cFunctionName">SDgetcompinfo</b> and the configuration of that method on the current system through <b class="cFunctionName">HCget_config_info</b>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585788"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Note
</div></td>
<td><a name="wp585790"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cBold">Regarding Szip-compressed data:</b>
</div>
<a name="wp585791"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cFunctionName">SDwritedata</b> can succeed only when the available Szip library is configured for encoding/decoding, i.e., when <b class="cBold">HCget_config_info</b> returns <code style="font-family: Courier New; font-size: 8pt" class="cDefName">COMP_ENCODER_ENABLED|COMP_DECODER_ENABLED</code> in <em class="cVarName">compression_config_info</em>.
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585793"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
Note
</div></td>
<td><a name="wp585795"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
<b class="cBold">Regarding Szip usage and licensing:</b>
</div>
<a name="wp585796"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellDescription">
See <span style="color: #000000; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline" class="cDefault">http://www.hdfgroup.org/doc_resource/SZIP/</span> for information regarding the use of Szip in HDF products and Szip licensing.
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
<div align="left">
<table border="0" cellpadding="2" cellspacing="8" bgcolor="White" id="wp585799table585797">
<caption></caption>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585799"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
FORTRAN
</div></td>
<td><a name="wp585801"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfwdata(sds_id, start, stride, edge, buffer)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585803"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585805"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585807"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585809"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer start(*), stride(*), edge(*)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585811"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585813"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
<valid numeric data type> buffer(*)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585815"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585817"> </a><div class="pCellFortran">
 
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585819"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585821"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortSyntax">
integer function sfwcdata(sds_id, start, stride, edge, buffer)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585823"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585825"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer sds_id
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585827"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585829"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
integer start(*), stride(*), edge(*)
</div>
</td>
</tr>
<tr align="left" valign="top"> <td><td nowrap>
<a name="wp585831"> </a><div style="font-style: normal; margin-bottom: 0pt; margin-top: 0pt; text-transform: none" class="pCellHeadingWW">
 
</div></td>
<td><a name="wp585833"> </a><div style="margin-bottom: 0pt; margin-top: 0pt" class="pCellFortVar">
character*(*) buffer(*)
</div>
</td>
</tr>
</table>
</div>
<p class="pBodyRelative">
</p>
</blockquote>
<hr />
<table id="SummaryNotReq2" border="0" width="850" cellspacing="0" cellpadding="0">
<tr>
<td align="left">
HDF4.2r4 - February 2009<br/>
<a href="RM_Copyright.html">Copyright</a>
<td align="right">
<span style="font-size: 12px; font-weight: bold">
The HDF Group<br />
</span>
<span style="font-size: 12px">
<a href="http://www.hdfgroup.org">www.hdfgroup.org</a><br />
<img valign="bottom" border="0" src="images/help.jpg" height="12" alt="The HDF Group" valign="top" />
</span>
</td>
</tr>
</table>
<table id="SummaryNotReq3" width="220" border="0" cellpadding="0" cellspacing="0">
</table>
</body>
</html>
|