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
|
c machine specific xdr infinity constants
c
double precision XDRDINF,XDRFINF
c ifdef vax
c
c parameter(XDRDINF = 1.7014118346046923e+38)
c parameter(XDRFINF = 2.93873588e-39)
c ifdef sun
parameter(XDRDINF = 1.797693134862315809d+308)
parameter(XDRFINF = 3.4028235677e+38)
c
c Fill values
c These values are stuffed into newly allocated space as appropriate.
c The hope is that one might use these to notice that a particular dataum
c has not been set.
c
integer FILBYTE,FILCHAR, FILSHORT,FILLONG
real FILFLOAT
double precision FILDOUB
c
c Largest Negative value
parameter(FILBYTE = 128)
parameter(FILCHAR = 0)
parameter(FILSHORT = 32768)
parameter(FILLONG = -2147483647-1)
c IEEE Infinity
parameter(FILFLOAT = XDRFINF)
parameter(FILDOUB = XDRDINF)
c
c Functions in the FORTRAN interface
c These declarations may cause "unused variable" warnings
integer nccre, ncopn, ncddef, ncdid, ncvdef, ncvid, nctlen
integer NCRDWR,NCCREAT,NCEXCL,NCINDEF,NCNSYNC,NCHSYNC
integer NCNDIRTY,NCHDIRTY,NCLINK,NCNOWRIT,NCWRITE
integer NCCLOB,NCNOCLOB,NCUNLIM,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)
c
c masks for the struct NC flag field; passed in as 'mode' arg to
c nccreate and ncopen.
c
c read/write, 0 => readonly
parameter(NCRDWR = 1)
c in create phase, cleared by ncendef
parameter(NCCREAT = 2)
c on create destroy existing file
parameter(NCEXCL = 4)
c in define mode, cleared by ncendef
parameter(NCINDEF = 8)
c synchronise numrecs on change (X'10')
parameter(NCNSYNC = 16)
c synchronise whole header on change (X'20')
parameter(NCHSYNC = 32)
c numrecs has changed (X'40')
parameter(NCNDIRTY = 64)
c header info has changed (X'80')
parameter(NCHDIRTY = 128)
c prefill vars on endef and increase of record, the default behavior
parameter(NCFILL = 0)
c don't fill vars on endef and increase of record (X'100')
parameter(NCNOFILL = 256)
c isa link (X'8000')
parameter(NCLINK = 32768)
c
c 'mode' arguments for nccreate and ncopen
c
parameter(NCNOWRIT = 0)
parameter(NCWRITE = NCRDWR)
parameter(NCCLOB = 11)
parameter(NCNOCLOB = 15)
c
c 'size' argument to ncdimdef for an unlimited dimension
c
parameter(NCUNLIM = 0)
c
c attribute id to put/get a global attribute
c
parameter(NCGLOBAL = 0)
c
c Advisory Maximums
c
parameter(MAXNCOP = 8)
parameter(MAXNCDIM = 32)
parameter(MAXNCATT = 512)
parameter(MAXNCVAR = 512)
c Not enforced
parameter(MAXNCNAM = 128)
parameter(MAXVDIMS = MAXNCDIM)
c
c The netcdf data types
c
c
c Global netcdf error status variable
c Initialized in error.c
c
c No Error
parameter(NCNOERR = 0)
c Not a netcdf id
parameter(NCEBADID = 1)
c Too many netcdfs open
parameter(NCENFILE = 2)
c netcdf file exists && NCNOCLOB
parameter(NCEEXIST = 3)
c Invalid Argument
parameter(NCEINVAL = 4)
c Write to read only
parameter(NCEPERM = 5)
c Operation not allowed in data mode
parameter(NCENOTIN = 6)
c Operation not allowed in define mode
parameter(NCEINDEF = 7)
c Coordinates out of Domain
parameter(NCECOORD = 8)
c MAXNCDIMS exceeded
parameter(NCEMAXDS = 9)
c String match to name in use
parameter(NCENAME = 10)
c Attribute not found
parameter(NCENOATT = 11)
c MAXNCATTRS exceeded
parameter(NCEMAXAT = 12)
c Not a netcdf data type
parameter(NCEBADTY = 13)
c Invalid dimension id
parameter(NCEBADD = 14)
c NCUNLIMITED in the wrong index
parameter(NCEUNLIM = 15)
c MAXNCVARS exceeded
parameter(NCEMAXVS = 16)
c Variable not found
parameter(NCENOTVR = 17)
c Action prohibited on NCGLOBAL varid
parameter(NCEGLOB = 18)
c Not a netcdf file
parameter(NCENOTNC = 19)
parameter(NCESTS = 20)
parameter (NCENTOOL = 21)
parameter(NCFOOBAR = 32)
parameter(NCSYSERR = -1)
c
c Global options variable. Used to determine behavior of error handler.
c Initialized in lerror.c
c
parameter(NCFATAL = 1)
parameter(NCVERBOS = 2)
|