/usr/include/hdf/netcdf.f90 is in libhdf4-dev 4.2.13-2.
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 | !
! Functions in the FORTRAN interface
integer nccre, ncopn, ncddef, ncdid, ncvdef, ncvid, nctlen
integer ncsfil
external nccre, ncopn, ncddef, ncdid, ncvdef, ncvid, nctlen
external ncsfil
integer NCRDWR,NCCREAT,NCEXCL,NCINDEF,NCNSYNC,NCHSYNC
integer NCNDIRTY,NCHDIRTY,NCLINK,NCNOWRIT,NCWRITE
integer NCCLOB,NCNOCLOB,NCGLOBAL,NCFILL,NCNOFILL
integer MAXNCOP,MAXNCDIM,MAXNCATT,MAXNCVAR
integer MAXNCNAM,MAXVDIMS,NCNOERR,NCEBADID
integer NCENFILE,NCEEXIST,NCEINVAL,NCEPERM,NCENOTIN
integer NCEINDEF,NCECOORD,NCEMAXDS,NCENAME
integer NCENOATT,NCEMAXAT,NCEBADTY,NCEBADD, NCESTS
integer NCEUNLIM,NCEMAXVS,NCENOTVR,NCEGLOB,NCENOTNC
integer NCFOOBAR,NCSYSERR,NCFATAL,NCVERBOS, NCENTOOL
integer NCBYTE,NCCHAR,NCSHORT,NCLONG,NCFLOAT,NCDOUBLE
parameter(NCBYTE = 1)
parameter(NCCHAR = 2)
parameter(NCSHORT = 3)
parameter(NCLONG = 4)
parameter(NCFLOAT = 5)
parameter(NCDOUBLE = 6)
!
! masks for the struct NC flag field; passed in as 'mode' arg to
! nccreate and ncopen.
!
! read/write, 0 => readonly
parameter(NCRDWR = 1)
! in create phase, cleared by ncendef
parameter(NCCREAT = 2)
! on create destroy existing file
parameter(NCEXCL = 4)
! in define mode, cleared by ncendef
parameter(NCINDEF = 8)
! synchronise numrecs on change (X'10')
parameter(NCNSYNC = 16)
! synchronise whole header on change (X'20')
parameter(NCHSYNC = 32)
! numrecs has changed (X'40')
parameter(NCNDIRTY = 64)
! header info has changed (X'80')
parameter(NCHDIRTY = 128)
! prefill vars on endef and increase of record, the default behavior
parameter(NCFILL = 0)
! don't fill vars on endef and increase of record (X'100')
parameter(NCNOFILL = 256)
! isa link (X'8000')
parameter(NCLINK = 32768)
!
! 'mode' arguments for nccreate and ncopen
!
parameter(NCNOWRIT = 0)
parameter(NCWRITE = NCRDWR)
parameter(NCCLOB = 11)
parameter(NCNOCLOB = 15)
!
! 'size' argument to ncdimdef for an unlimited dimension
!
integer NCUNLIM
parameter(NCUNLIM = 0)
!
! attribute id to put/get a global attribute
!
parameter(NCGLOBAL = 0)
!
! Advisory Maximums
!
parameter(MAXNCOP = 32)
parameter(MAXNCDIM = 32)
parameter(MAXNCATT = 512)
parameter(MAXNCVAR = 512)
! Not enforced
parameter(MAXNCNAM = 128)
parameter(MAXVDIMS = MAXNCDIM)
!
! The netcdf data types
!
!
! Global netcdf error status variable
! Initialized in error.c
!
! No Error
parameter(NCNOERR = 0)
! Not a netcdf id
parameter(NCEBADID = 1)
! Too many netcdfs open
parameter(NCENFILE = 2)
! netcdf file exists && NCNOCLOB
parameter(NCEEXIST = 3)
! Invalid Argument
parameter(NCEINVAL = 4)
! Write to read only
parameter(NCEPERM = 5)
! Operation not allowed in data mode
parameter(NCENOTIN = 6)
! Operation not allowed in define mode
parameter(NCEINDEF = 7)
! Coordinates out of Domain
parameter(NCECOORD = 8)
! MAXNCDIMS exceeded
parameter(NCEMAXDS = 9)
! String match to name in use
parameter(NCENAME = 10)
! Attribute not found
parameter(NCENOATT = 11)
! MAXNCATTRS exceeded
parameter(NCEMAXAT = 12)
! Not a netcdf data type
parameter(NCEBADTY = 13)
! Invalid dimension id
parameter(NCEBADD = 14)
! NCUNLIMITED in the wrong index
parameter(NCEUNLIM = 15)
! MAXNCVARS exceeded
parameter(NCEMAXVS = 16)
! Variable not found
parameter(NCENOTVR = 17)
! Action prohibited on NCGLOBAL varid
parameter(NCEGLOB = 18)
! Not a netcdf file
parameter(NCENOTNC = 19)
parameter(NCESTS = 20)
parameter (NCENTOOL = 21)
parameter(NCFOOBAR = 32)
parameter(NCSYSERR = -1)
!
! Global options variable. Used to determine behavior of error handler.
! Initialized in lerror.c
!
parameter(NCFATAL = 1)
parameter(NCVERBOS = 2)
|