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
|
Module netcdf4_nc_interfaces
! Fortran interfaces to netCDF4 C functions using FORTRAN 2003 C
! Interoperability features. These interfaces are for the base
! netCDF C routines in the libsrc4 directory and the results from
! running CPP on the fort-xxx.c routines to get the cfortran.h
! generated interfaces
! Written by: Richard Weed, Ph.D.
! Center for Advanced Vehicular Systems
! Mississippi State University
! rweed@cavs.msstate.edu
! License (and other Lawyer Language)
! This software is released under the Apache 2.0 Open Source License. The
! full text of the License can be viewed at :
!
! http:www.apache.org/licenses/LICENSE-2.0.html
!
! The author grants to the University Corporation for Atmospheric Research
! (UCAR), Boulder, CO, USA the right to revise and extend the software
! without restriction. However, the author retains all copyrights and
! intellectual property rights explicitly stated in or implied by the
! Apache license
! Version 1.: June. 2007 - Initial version - split from ntecdf_nc_interfaces
! Version 2.: April, 2009 - Interfaces based on netcdf-4.0.1 source
! Version 3.: April, 2010 - Interfaces based on netcdf-4.1.1 source
! Version 4.: Aug, 2013 - Added nc_rename_grp interfaces for netcdf-C 4.3.1
! Version 5 : Jan. 2016 - General code cleanup and added interfaces for
! three new funcions in nf_lib.c that return
! the number of groups, types, and dimids for
! compound fields
USE netcdf_nc_interfaces
Implicit NONE
!--------- Define default C interface parameters from netcdf.h ---------------
! Begin explicit interfaces for nc_ functions. Note that some interfaces
! expect data to be passed as C_PTR type variables. These data are arrays
! that could have a NULL pointer passed instead of the array. Also, note
! the use of generic interfaces to support routines that handle text data
! to allow text to be passed as either a single string or an array of
! single characters
! Also note that each interface has an explicit USE ISO_C_BINDING. A better
! solution is to use the F2003 IMPORT statement (I originally had it this way)
! However its best to leave the interfaces as is for now because there might
! be a few compilers out there that support most of the C-interop facility but
! for some reason haven't implemented IMPORT yet.
! NETCDF 4 functions supported by FORTRAN interface
!------------------------------- nc_inq_ncid ----------------------------------
Interface
Function nc_inq_ncid(ncid, name, grp_ncid) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_CHAR
Integer(C_INT), VALUE :: ncid
Character(KIND=C_CHAR), Intent(IN) :: name(*)
Integer(C_INT), Intent(INOUT) :: grp_ncid
Integer(C_INT) :: nc_inq_ncid
End Function nc_inq_ncid
End Interface
!------------------------------- nc_inq_numgrps ------------------------------
!**** NOT a Netcdf C function. Added to nf_lib.c support Fortran interaces
Interface
Function nc_inq_numgrps(ncid, numgrps) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: ncid
Integer(C_INT), Intent(INOUT) :: numgrps
Integer(C_INT) :: nc_inq_numgrps
End Function nc_inq_numgrps
End Interface
!------------------------------- nc_inq_numtypes ------------------------------
!**** NOT a Netcdf C function. Added to nf_lib.c support Fortran interaces
Interface
Function nc_inq_numtypes(ncid, numtypes) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: ncid
Integer(C_INT), Intent(INOUT) :: numtypes
Integer(C_INT) :: nc_inq_numtypes
End Function nc_inq_numtypes
End Interface
!------------------------------- nc_inq_grps ----------------------------------
Interface
Function nc_inq_grps(ncid, numgrps, ncids) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: ncid
Integer(C_INT), Intent(INOUT) :: numgrps
Integer(C_INT), Intent(INOUT) :: ncids(*)
Integer(C_INT) :: nc_inq_grps
End Function nc_inq_grps
End Interface
!------------------------------- nc_inq_grpname -------------------------------
Interface
Function nc_inq_grpname(ncid, name) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_CHAR
Integer(C_INT), VALUE :: ncid
Character(KIND=C_CHAR), Intent(INOUT) :: name(*)
Integer(C_INT) :: nc_inq_grpname
End Function nc_inq_grpname
End Interface
!------------------------------- nc_inq_grpname_full --------------------------
Interface
Function nc_inq_grpname_full(ncid, nlen, name) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T, C_CHAR
Integer(C_INT), VALUE :: ncid
Integer(C_SIZE_T), Intent(INOUT) :: nlen
Character(KIND=C_CHAR), Intent(INOUT) :: name(*)
Integer(C_INT) :: nc_inq_grpname_full
End Function nc_inq_grpname_full
End Interface
!------------------------------- nc_inq_grpname_len ---------------------------
Interface
Function nc_inq_grpname_len(ncid, nlen) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T
Integer(C_INT), VALUE :: ncid
Integer(C_SIZE_T), Intent(INOUT) :: nlen
Integer(C_INT) :: nc_inq_grpname_len
End Function nc_inq_grpname_len
End Interface
!------------------------------- nc_inq_grp_full_ncid -------------------------
Interface
Function nc_inq_grp_full_ncid(ncid, full_name, grp_ncid) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_CHAR
Integer(C_INT), VALUE :: ncid
Integer(C_INT), Intent(INOUT) :: grp_ncid
Character(KIND=C_CHAR), Intent(INOUT) :: full_name(*)
Integer(C_INT) :: nc_inq_grp_full_ncid
End Function nc_inq_grp_full_ncid
End Interface
!------------------------------- nc_inq_grp_parent ----------------------------
Interface
Function nc_inq_grp_parent(ncid, parent_ncid) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: ncid
Integer(C_INT), Intent(INOUT) :: parent_ncid
Integer(C_INT) :: nc_inq_grp_parent
End Function nc_inq_grp_parent
End Interface
!------------------------------- nc_inq_grp_ncid ------------------------------
Interface
Function nc_inq_grp_ncid(ncid, grp_name, grp_ncid) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_CHAR
Integer(C_INT), VALUE :: ncid
Character(KIND=C_CHAR), Intent(IN) :: grp_name(*)
Integer(C_INT), Intent(INOUT) :: grp_ncid
Integer(C_INT) :: nc_inq_grp_ncid
End Function nc_inq_grp_ncid
End Interface
!------------------------------- nc_inq_varids_f ------------------------------
Interface
Function nc_inq_varids_f(ncid, nvars, varids) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: ncid
Integer(C_INT), Intent(INOUT) :: nvars
Integer(C_INT), Intent(INOUT) :: varids(*)
Integer(C_INT) :: nc_inq_varids_f
End Function nc_inq_varids_f
End Interface
!------------------------------- nc_inq_dimids_f ------------------------------
Interface
Function nc_inq_dimids_f(ncid, ndims, dimids, parent) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: ncid, parent
Integer(C_INT), Intent(INOUT) :: ndims
Integer(C_INT), Intent(INOUT) :: dimids(*)
Integer(C_INT) :: nc_inq_dimids_f
End Function nc_inq_dimids_f
End Interface
!------------------------------- nc_inq_typeids -------------------------------
Interface
Function nc_inq_typeids(ncid, ntypes, typeids) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: ncid
Integer(C_INT), Intent(INOUT) :: ntypes
Integer(C_INT), Intent(INOUT) :: typeids(*)
Integer(C_INT) :: nc_inq_typeids
End Function nc_inq_typeids
End Interface
!------------------------------- nc_inq_typeid --------------------------------
Interface
Function nc_inq_typeid(ncid, name, typeid) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_CHAR
Integer(C_INT), VALUE :: ncid
Character(KIND=C_CHAR), Intent(IN) :: name(*)
Integer(C_INT), Intent(INOUT) :: typeid
Integer(C_INT) :: nc_inq_typeid
End Function nc_inq_typeid
End Interface
!------------------------------- nc_def_grp -----------------------------------
Interface
Function nc_def_grp(parent_ncid, name, new_ncid) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_CHAR
Integer(C_INT), VALUE :: parent_ncid
Character(KIND=C_CHAR), Intent(IN) :: name(*)
Integer(C_INT), Intent(INOUT) :: new_ncid
Integer(C_INT) :: nc_def_grp
End Function nc_def_grp
End Interface
!------------------------------- nc_rename_grp --------------------------------
Interface
Function nc_rename_grp(grpid, name) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_CHAR
Integer(C_INT), VALUE :: grpid
Character(KIND=C_CHAR), Intent(IN) :: name(*)
Integer(C_INT) :: nc_rename_grp
End Function nc_rename_grp
End Interface
!------------------------------- nc_def_compound ------------------------------
Interface
Function nc_def_compound(ncid, isize, name, typeidp) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T, C_CHAR
Integer(C_INT), VALUE :: ncid
Integer(C_SIZE_T), VALUE :: isize
Character(KIND=C_CHAR), Intent(IN) :: name(*)
Integer(C_INT), Intent(INOUT) :: typeidp
Integer(C_INT) :: nc_def_compound
End Function nc_def_compound
End Interface
!------------------------------- nc_insert_compound ---------------------------
Interface
Function nc_insert_compound(ncid, xtype, name, offset, field_typeid) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T, C_CHAR
Integer(C_INT), VALUE :: ncid
Integer(C_INT), VALUE :: xtype, field_typeid ! nc_type in C
Integer(C_SIZE_T), VALUE :: offset
Character(KIND=C_CHAR), Intent(IN) :: name(*)
Integer(C_INT) :: nc_insert_compound
End Function nc_insert_compound
End Interface
!------------------------------- nc_insert_array_compound_f -------------------
Interface
Function nc_insert_array_compound_f(ncid, xtype, name, offset, field_typeid, &
ndims, dim_sizes) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T, C_CHAR
Integer(C_INT), VALUE :: ncid, ndims
Integer(C_INT), VALUE :: xtype, field_typeid ! nc_type in C
Integer(C_SIZE_T), VALUE :: offset
Character(KIND=C_CHAR), Intent(IN) :: name(*)
Integer(C_INT), Intent(INOUT) :: dim_sizes(*)
Integer(C_INT) :: nc_insert_array_compound_f
End Function nc_insert_array_compound_f
End Interface
!------------------------------- nc_inq_type ----------------------------------
Interface
Function nc_inq_type(ncid, xtype, name, isize) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T, C_CHAR
Integer(C_INT), VALUE :: ncid
Integer(C_INT), VALUE :: xtype ! nc_type in C
Character(KIND=C_CHAR), Intent(IN) :: name(*)
Integer(C_SIZE_T), Intent(INOUT) :: isize
Integer(C_INT) :: nc_inq_type
End Function nc_inq_type
End Interface
!------------------------------- nc_inq_compound -----------------------------
Interface
Function nc_inq_compound(ncid, xtype, name, isize, nfieldsp) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T, C_CHAR
Integer(C_INT), VALUE :: ncid
Integer(C_INT), VALUE :: xtype ! nc_type in C
Character(KIND=C_CHAR), Intent(INOUT) :: name(*)
Integer(C_SIZE_T), Intent(INOUT) :: isize, nfieldsp
Integer(C_INT) :: nc_inq_compound
End Function nc_inq_compound
End Interface
!------------------------------- nc_inq_compound_name -------------------------
Interface
Function nc_inq_compound_name(ncid, xtype, name) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T, C_CHAR
Integer(C_INT), VALUE :: ncid
Integer(C_INT), VALUE :: xtype ! nc_type in C
Character(KIND=C_CHAR), Intent(INOUT) :: name(*)
Integer(C_INT) :: nc_inq_compound_name
End Function nc_inq_compound_name
End Interface
!------------------------------- nc_inq_compound_size -------------------------
Interface
Function nc_inq_compound_size(ncid, xtype, isize) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T
Integer(C_INT), VALUE :: ncid
Integer(C_INT), VALUE :: xtype ! nc_type in C
Integer(C_SIZE_T), Intent(INOUT) :: isize
Integer(C_INT) :: nc_inq_compound_size
End Function nc_inq_compound_size
End Interface
!------------------------------- nc_inq_compound_nfields ----------------------
Interface
Function nc_inq_compound_nfields(ncid, xtype, nfieldsp) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T
Integer(C_INT), VALUE :: ncid
Integer(C_INT), VALUE :: xtype ! nc_type in C
Integer(C_SIZE_T), Intent(INOUT) :: nfieldsp
Integer(C_INT) :: nc_inq_compound_nfields
End Function nc_inq_compound_nfields
End Interface
!------------------------------- nc_inq_compound_field_ndims ------------------
!**** NOT a Netcdf C function. Added to nf_lib.c support Fortran interaces
Interface
Function nc_inq_compound_field_ndims(ncid, xtype, fieldid, ndims) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: ncid, fieldid
Integer(C_INT), VALUE :: xtype ! nc_type in C
Integer(C_INT), Intent(INOUT) :: ndims
Integer(C_INT) :: nc_inq_compound_field_ndims
End Function nc_inq_compound_field_ndims
End Interface
!------------------------------- nc_inq_compound_field_f ----------------------
Interface
Function nc_inq_compound_field_f(ncid, xtype, fieldid, name, offsetp, &
field_typeidp, ndimsp, dim_sizesp) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T, C_CHAR
Integer(C_INT), VALUE :: ncid, fieldid
Integer(C_INT), VALUE :: xtype ! nc_type in C
Integer(C_INT), Intent(INOUT) :: field_typeidp ! nc_type in C
Integer(C_SIZE_T), Intent(INOUT) :: offsetp
Character(KIND=C_CHAR), Intent(INOUT) :: name(*)
Integer(C_INT), Intent(INOUT) :: ndimsp
Integer(C_INT), Intent(INOUT) :: dim_sizesp(*)
Integer(C_INT) :: nc_inq_compound_field_f
End Function nc_inq_compound_field_f
End Interface
!------------------------------- nc_inq_compound_fieldoffset ------------------
Interface
Function nc_inq_compound_fieldoffset(ncid, xtype, fieldid, offsetp) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T
Integer(C_INT), VALUE :: ncid, fieldid
Integer(C_INT), VALUE :: xtype ! nc_type in C
Integer(C_SIZE_T), Intent(INOUT) :: offsetp
Integer(C_INT) :: nc_inq_compound_fieldoffset
End Function nc_inq_compound_fieldoffset
End Interface
!------------------------------- nc_inq_compound_fieldname --------------------
Interface
Function nc_inq_compound_fieldname(ncid, xtype, fieldid, name) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_CHAR
Integer(C_INT), VALUE :: ncid, fieldid
Integer(C_INT), VALUE :: xtype ! nc_type in C
Character(KIND=C_CHAR), Intent(INOUT) :: name(*)
Integer(C_INT) :: nc_inq_compound_fieldname
End Function nc_inq_compound_fieldname
End Interface
!------------------------------- nc_inq_compound_fieldindex -------------------
Interface
Function nc_inq_compound_fieldindex(ncid, xtype, name, fieldidp) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_CHAR
Integer(C_INT), VALUE :: ncid
Integer(C_INT), VALUE :: xtype ! nc_type in C
Character(KIND=C_CHAR), Intent(IN) :: name(*)
Integer(C_INT), Intent(INOUT) :: fieldidp
Integer(C_INT) :: nc_inq_compound_fieldindex
End Function nc_inq_compound_fieldindex
End Interface
!------------------------------- nc_inq_compound_fieldtype --------------------
Interface
Function nc_inq_compound_fieldtype(ncid, xtype, fieldid, field_typeidp) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: ncid, fieldid
Integer(C_INT), VALUE :: xtype ! nc_type in C
Integer(C_INT), Intent(INOUT) :: field_typeidp ! nc_type in C
Integer(C_INT) :: nc_inq_compound_fieldtype
End Function nc_inq_compound_fieldtype
End Interface
!------------------------------- nc_inq_compound_fieldndims -------------------
Interface
Function nc_inq_compound_fieldndims(ncid, xtype, fieldid, ndimsp) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: ncid, fieldid
Integer(C_INT), VALUE :: xtype ! nc_type in C
Integer(C_INT), Intent(INOUT) :: ndimsp
Integer(C_INT) :: nc_inq_compound_fieldndims
End Function nc_inq_compound_fieldndims
End Interface
!------------------------------- nc_inq_compound_fielddim_sizes ---------------
Interface
Function nc_inq_compound_fielddim_sizes(ncid, xtype, fieldid, dim_sizes) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: ncid, fieldid
Integer(C_INT), VALUE :: xtype ! nc_type in C
Integer(C_INT), Intent(INOUT) :: dim_sizes(*)
Integer(C_INT) :: nc_inq_compound_fielddim_sizes
End Function nc_inq_compound_fielddim_sizes
End Interface
!------------------------------- nc_def_vlen ----------------------------------
Interface
Function nc_def_vlen(ncid, name, base_typeid, xtypep) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_CHAR
Integer(C_INT), VALUE :: ncid
Integer(C_INT), VALUE :: base_typeid ! nc_type in C
Integer(C_INT), Intent(INOUT) :: xtypep ! nc_type in C
Character(KIND=C_CHAR), Intent(IN) :: name(*)
Integer(C_INT) :: nc_def_vlen
End Function nc_def_vlen
End Interface
!------------------------------- nc_inq_vlen ----------------------------------
Interface
Function nc_inq_vlen(ncid, xtype, name, datum_sizep, base_nc_typep) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T, C_CHAR
Integer(C_INT), VALUE :: ncid
Integer(C_INT), VALUE :: xtype ! nc_type in C
Integer(C_SIZE_T), Intent(INOUT) :: datum_sizep
Integer(C_INT), Intent(INOUT) :: base_nc_typep ! nc_type in C
Character(KIND=C_CHAR), Intent(INOUT) :: name(*)
Integer(C_INT) :: nc_inq_vlen
End Function nc_inq_vlen
End Interface
!------------------------------- nc_inq_user_type -----------------------------
Interface
Function nc_inq_user_type(ncid, xtype, name, isize, base_nc_typep, &
nfieldsp, classp) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T, C_CHAR
Integer(C_INT), VALUE :: ncid
Integer(C_INT), VALUE :: xtype ! nc_type in C
Integer(C_SIZE_T), Intent(INOUT) :: isize , nfieldsp
Integer(C_INT), Intent(INOUT) :: base_nc_typep ! nc_type in C
Integer(C_INT), Intent(INOUT) :: classp
Character(KIND=C_CHAR), Intent(INOUT) :: name(*)
Integer(C_INT) :: nc_inq_user_type
End Function nc_inq_user_type
End Interface
!------------------------------- nc_def_enum ----------------------------------
Interface
Function nc_def_enum(ncid, base_typeid, name, typeidp) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_CHAR
Integer(C_INT), VALUE :: ncid
Integer(C_INT), VALUE :: base_typeid ! nc_type in C
Integer(C_INT), Intent(OUT) :: typeidp ! nc_type in C
Character(KIND=C_CHAR), Intent(IN) :: name(*)
Integer(C_INT) :: nc_def_enum
End Function nc_def_enum
End Interface
!------------------------------- nc_insert_enum -------------------------------
Interface
Function nc_insert_enum(ncid, xtype, name, values) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_CHAR, C_PTR
Integer(C_INT), VALUE :: ncid
Integer(C_INT), VALUE :: xtype ! nc_type in C
Type(C_PTR), VALUE :: values ! void pointer in C
Character(KIND=C_CHAR), Intent(IN) :: name(*)
Integer(C_INT) :: nc_insert_enum
End Function nc_insert_enum
End Interface
!------------------------------- nc_inq_enum ----------------------------------
Interface
Function nc_inq_enum(ncid, xtype, name, base_nc_typep, base_sizep, &
num_membersp) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T, C_CHAR
Integer(C_INT), VALUE :: ncid
Integer(C_INT), VALUE :: xtype ! nc_type in C
Integer(C_INT), Intent(INOUT) :: base_nc_typep ! nc_type in C
Integer(C_SIZE_T), Intent(INOUT) :: base_sizep, num_membersp
Character(KIND=C_CHAR), Intent(INOUT) :: name(*)
Integer(C_INT) :: nc_inq_enum
End Function nc_inq_enum
End Interface
!------------------------------- nc_inq_enum_member ---------------------------
Interface
Function nc_inq_enum_member(ncid, xtype, idx, name, value) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_CHAR
Integer(C_INT), VALUE :: ncid, idx
Integer(C_INT), VALUE :: xtype ! nc_type in C
Character(KIND=C_CHAR), Intent(OUT) :: value(*)
Character(KIND=C_CHAR), Intent(INOUT) :: name(*)
Integer(C_INT) :: nc_inq_enum_member
End Function nc_inq_enum_member
End Interface
!------------------------------- nc_inq_enum_ident ----------------------------
Interface
Function nc_inq_enum_ident(ncid, xtype, val, name) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_LONG_LONG, C_CHAR
Integer(C_INT), VALUE :: ncid
Integer(C_INT), VALUE :: xtype ! nc_type in C
Integer(C_LONG_LONG), VALUE :: val
Character(KIND=C_CHAR), Intent(INOUT) :: name(*)
Integer(C_INT) :: nc_inq_enum_ident
End Function nc_inq_enum_ident
End Interface
!------------------------------- nc_def_opaque --------------------------------
Interface
Function nc_def_opaque(ncid, isize, name, xtypep) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T, C_CHAR
Integer(C_INT), VALUE :: ncid
Integer(C_SIZE_T), VALUE :: isize
Character(KIND=C_CHAR), Intent(IN) :: name(*)
Integer(C_INT), Intent(OUT) :: xtypep ! nc_type in C
Integer(C_INT) :: nc_def_opaque
End Function nc_def_opaque
End Interface
!------------------------------- nc_inq_opaque --------------------------------
Interface
Function nc_inq_opaque(ncid, xtype, name, sizep) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T, C_CHAR
Integer(C_INT), VALUE :: ncid
Integer(C_INT), VALUE :: xtype ! nc_type in C
Integer(C_SIZE_T), Intent(OUT) :: sizep
Character(KIND=C_CHAR), Intent(OUT) :: name(*)
Integer(C_INT) :: nc_inq_opaque
End Function nc_inq_opaque
End Interface
!------------------------------- nc_def_var_fill ------------------------------
Interface
Function nc_def_var_fill(ncid, varid, no_fill, cfill_value_p) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_PTR
Integer(C_INT), VALUE :: ncid, varid, no_fill
Type(C_PTR), VALUE :: cfill_value_p
Integer(C_INT) :: nc_def_var_fill
End Function nc_def_var_fill
End Interface
!------------------------------- nc_inq_var_fill ------------------------------
Interface
Function nc_inq_var_fill(ncid, varid, no_fill, fill_value) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_CHAR
Integer(C_INT), VALUE :: ncid, varid
Integer(C_INT), Intent(INOUT) :: no_fill
Character(KIND=C_CHAR), Intent(INOUT) :: fill_value(*)
Integer(C_INT) :: nc_inq_var_fill
End Function nc_inq_var_fill
End Interface
!------------------------------- nc_inq_varnparams ------------------------------
!**** NOT a Netcdf C function. Added to nf_lib.c support Fortran interaces
Interface
Function nc_inq_varnparams(ncid, varid, nparamsp) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T
Integer(C_INT), VALUE :: ncid, varid
Integer(C_SIZE_T), Intent(INOUT) :: nparamsp
Integer(C_INT) :: nc_inq_varnparams
End Function nc_inq_varnparams
End Interface
!------------------------------- nc_inq_var_szip ------------------------------
Interface
Function nc_inq_var_szip(ncid, varid, options_mask, pixels_per_block) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: ncid, varid
Integer(C_INT), Intent(INOUT) :: options_mask, pixels_per_block
Integer(C_INT) :: nc_inq_var_szip
End Function nc_inq_var_szip
End Interface
!------------------------------- nc_def_var_fletcher32 ------------------------
Interface
Function nc_def_var_fletcher32(ncid, varid, fletcher32) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: ncid, varid, fletcher32
Integer(C_INT) :: nc_def_var_fletcher32
End Function nc_def_var_fletcher32
End Interface
!------------------------------- nc_inq_var_fletcher32 ------------------------
Interface
Function nc_inq_var_fletcher32(ncid, varid, fletcher32) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: ncid, varid
Integer(C_INT), Intent(INOUT) :: fletcher32
Integer(C_INT) :: nc_inq_var_fletcher32
End Function nc_inq_var_fletcher32
End Interface
!------------------------------- nc_def_var_deflate ---------------------------
Interface
Function nc_def_var_deflate(ncid, varid, shuffle, deflate, deflate_level) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: ncid, varid, shuffle, deflate, deflate_level
Integer(C_INT) :: nc_def_var_deflate
End Function nc_def_var_deflate
End Interface
!------------------------------- nc_inq_var_deflate ---------------------------
Interface
Function nc_inq_var_deflate(ncid, varid, shuffle, deflate, deflate_level) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: ncid, varid
Integer(C_INT), Intent(INOUT) :: shuffle, deflate, deflate_level
Integer(C_INT) :: nc_inq_var_deflate
End Function nc_inq_var_deflate
End Interface
!------------------------------- nc_def_var_chunking --------------------------
Interface
Function nc_def_var_chunking(ncid, varid, contiguousp, chunksizesp) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T
Integer(C_INT), VALUE :: ncid, varid, contiguousp
Integer(C_SIZE_T), Intent(INOUT) :: chunksizesp
Integer(C_INT) :: nc_def_var_chunking
End Function nc_def_var_chunking
End Interface
!------------------------------- nc_inq_var_chunking --------------------------
Interface
Function nc_inq_var_chunking(ncid, varid, contiguousp, chunksizesp) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T
Integer(C_INT), VALUE :: ncid, varid
Integer(C_INT), Intent(INOUT) :: contiguousp
Integer(C_SIZE_T), Intent(INOUT) :: chunksizesp(*)
Integer(C_INT) :: nc_inq_var_chunking
End Function nc_inq_var_chunking
End Interface
!------------------------------- nc_def_var_chunking_ints ---------------------
Interface
Function nc_def_var_chunking_ints(ncid, varid, contiguousp, chunksizesp) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_PTR
Integer(C_INT), VALUE :: ncid, varid, contiguousp
Type(C_PTR), VALUE :: chunksizesp
Integer(C_INT) :: nc_def_var_chunking_ints
End Function nc_def_var_chunking_ints
End Interface
!------------------------------- nc_inq_var_chunking_ints ---------------------
Interface
Function nc_inq_var_chunking_ints(ncid, varid, contiguousp, chunksizesp) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: ncid, varid
Integer(C_INT), Intent(INOUT) :: contiguousp
Integer(C_INT), Intent(INOUT) :: chunksizesp(*)
Integer(C_INT) :: nc_inq_var_chunking_ints
End Function nc_inq_var_chunking_ints
End Interface
!------------------------------- nc_def_var_endian --------------------------
Interface
Function nc_def_var_endian(ncid, varid, endiann) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: ncid, varid, endiann
Integer(C_INT) :: nc_def_var_endian
End Function nc_def_var_endian
End Interface
!------------------------------- nc_inq_var_endian --------------------------
Interface
Function nc_inq_var_endian(ncid, varid, endiann) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: ncid, varid
Integer(C_INT), Intent(INOUT) :: endiann
Integer(C_INT) :: nc_inq_var_endian
End Function nc_inq_var_endian
End Interface
!------------------------------- nc_def_var_filter ------------------------
Interface
Function nc_def_var_filter(ncid, varid, id, nparams, params) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T
Integer(C_INT), VALUE :: ncid, varid, id
Integer(C_SIZE_T), VALUE :: nparams
Integer(C_INT) :: params(*)
Integer(C_INT) :: nc_def_var_filter
End Function nc_def_var_filter
End Interface
!------------------------------- nc_inq_var_filter ----------------------------------
Interface
Function nc_inq_var_filter(ncid, varid, id, nparams, params) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T
Integer(C_INT), VALUE :: ncid, varid
Integer(C_INT), Intent(INOUT) :: id
Integer(C_SIZE_T), Intent(INOUT) :: nparams
Integer(C_INT), Intent(INOUT) :: params(*)
Integer(C_INT) :: nc_inq_var_filter
End Function nc_inq_var_filter
End Interface
!------------------------------- nc_put_vlen_element --------------------------
Interface
Function nc_put_vlen_element(ncid, xtype, vlen_element, nlen, op) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_SIZE_T, C_PTR, C_CHAR
Integer(C_INT), VALUE :: ncid, xtype
Integer(C_SIZE_T), VALUE :: nlen
Character(KIND=C_CHAR), Intent(INOUT) :: vlen_element(*)
Type(C_PTR), VALUE :: op
Integer(C_INT) :: nc_put_vlen_element
End Function nc_put_vlen_element
End Interface
!------------------------------- nc_get_vlen_element --------------------------
Interface
Function nc_get_vlen_element(ncid, xtype, vlen_element, nlen, op) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT, C_CHAR, C_SIZE_T, C_PTR
Integer(C_INT), VALUE :: ncid, xtype
Integer(C_SIZE_T), Intent(INOUT) :: nlen
Character(KIND=C_CHAR), Intent(INOUT) :: vlen_element(*)
Character(KIND=C_CHAR), Intent(INOUT) :: op(*)
Integer(C_INT) :: nc_get_vlen_element
End Function nc_get_vlen_element
End Interface
!------------------------------- nc_free_vlen ---------------------------------
Interface
Function nc_free_vlen(vl) BIND(C)
USE ISO_C_BINDING, ONLY: C_PTR, C_INT
Type(C_PTR), VALUE :: vl
Integer(C_INT) :: nc_free_vlen
End Function nc_free_vlen
End Interface
!------------------------------- nc_free_vlens -------------------------------
Interface
Function nc_free_vlens(len, vl) BIND(C)
USE ISO_C_BINDING, ONLY: C_PTR, C_INT, C_SIZE_T
Integer(C_SIZE_T), Intent(IN) :: len
Type(C_PTR), VALUE :: vl
Integer(C_INT) :: nc_free_vlens
End Function nc_free_vlens
End Interface
!------------------------------- nc_free_string ------------------------------
Interface
Function nc_free_string(len, vl) BIND(C)
USE ISO_C_BINDING, ONLY: C_PTR, C_INT, C_SIZE_T
Integer(C_SIZE_T), Intent(IN) :: len
Type(C_PTR), VALUE :: vl
Integer(C_INT) :: nc_free_string
End Function nc_free_string
End Interface
!------------------------------- nc_set_chunk_cache_ints ----------------------
Interface
Function nc_set_chunk_cache_ints(size, nelems, preemption) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: size, nelems, preemption
Integer(C_INT) :: nc_set_chunk_cache_ints
End Function nc_set_chunk_cache_ints
End Interface
!------------------------------- nc_get_chunk_cache_ints ----------------------
Interface
Function nc_get_chunk_cache_ints(size, nelems, preemption) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), Intent(INOUT) :: size, nelems, preemption
Integer(C_INT) :: nc_get_chunk_cache_ints
End Function nc_get_chunk_cache_ints
End Interface
!------------------------------- nc_set_var_chunk_cache_ints ------------------
Interface
Function nc_set_var_chunk_cache_ints(ncid, varid, size, nelems, &
preemption) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: ncid, varid, size, nelems, preemption
Integer(C_INT) :: nc_set_var_chunk_cache_ints
End Function nc_set_var_chunk_cache_ints
End Interface
!------------------------------- nc_get_var_chunk_cache_ints ------------------
Interface
Function nc_get_var_chunk_cache_ints(ncid, varid, size, nelems, &
preemption) BIND(C)
USE ISO_C_BINDING, ONLY: C_INT
Integer(C_INT), VALUE :: ncid, varid
Integer(C_INT), Intent(INOUT) :: size, nelems, preemption
Integer(C_INT) :: nc_get_var_chunk_cache_ints
End Function nc_get_var_chunk_cache_ints
End Interface
!------------------------------- nc_set_chunk_cache ---------------------------
Interface
Function nc_set_chunk_cache(size, nelems, preemption) BIND(C)
USE ISO_C_BINDING, ONLY: C_SIZE_T, C_FLOAT, C_INT
Integer(C_SIZE_T), VALUE :: size, nelems
Real(C_FLOAT), VALUE :: preemption
Integer(C_INT) :: nc_set_chunk_cache
End Function nc_set_chunk_cache
End Interface
!------------------------------- nc_get_chunk_cache ---------------------------
Interface
Function nc_get_chunk_cache(size, nelems, preemption) BIND(C)
USE ISO_C_BINDING, ONLY: C_SIZE_T, C_FLOAT, C_INT
Integer(C_SIZE_T), Intent(INOUT) :: size, nelems
Real(C_FLOAT), Intent(INOUT) :: preemption
Integer(C_INT) :: nc_get_chunk_cache
End Function nc_get_chunk_cache
End Interface
!--------------------------End of Module netcdf4_c_interfaces -----------------
End Module netcdf4_nc_interfaces
|