mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-03 08:01:25 +08:00
225 lines
5.7 KiB
PHP
225 lines
5.7 KiB
PHP
|
!ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
|
||
|
! begin netcdf 2.4 backward compatibility:
|
||
|
!
|
||
|
|
||
|
!
|
||
|
! functions in the fortran interface
|
||
|
!
|
||
|
integer nccre
|
||
|
integer ncopn
|
||
|
integer ncddef
|
||
|
integer ncdid
|
||
|
integer ncvdef
|
||
|
integer ncvid
|
||
|
integer nctlen
|
||
|
integer ncsfil
|
||
|
|
||
|
external nccre
|
||
|
external ncopn
|
||
|
external ncddef
|
||
|
external ncdid
|
||
|
external ncvdef
|
||
|
external ncvid
|
||
|
external nctlen
|
||
|
external ncsfil
|
||
|
|
||
|
|
||
|
integer ncrdwr
|
||
|
integer nccreat
|
||
|
integer ncexcl
|
||
|
integer ncindef
|
||
|
integer ncnsync
|
||
|
integer nchsync
|
||
|
integer ncndirty
|
||
|
integer nchdirty
|
||
|
integer nclink
|
||
|
integer ncnowrit
|
||
|
integer ncwrite
|
||
|
integer ncclob
|
||
|
integer ncnoclob
|
||
|
integer ncglobal
|
||
|
integer ncfill
|
||
|
integer ncnofill
|
||
|
integer maxncop
|
||
|
integer maxncdim
|
||
|
integer maxncatt
|
||
|
integer maxncvar
|
||
|
integer maxncnam
|
||
|
integer maxvdims
|
||
|
integer ncnoerr
|
||
|
integer ncebadid
|
||
|
integer ncenfile
|
||
|
integer nceexist
|
||
|
integer nceinval
|
||
|
integer nceperm
|
||
|
integer ncenotin
|
||
|
integer nceindef
|
||
|
integer ncecoord
|
||
|
integer ncemaxds
|
||
|
integer ncename
|
||
|
integer ncenoatt
|
||
|
integer ncemaxat
|
||
|
integer ncebadty
|
||
|
integer ncebadd
|
||
|
integer ncests
|
||
|
integer nceunlim
|
||
|
integer ncemaxvs
|
||
|
integer ncenotvr
|
||
|
integer nceglob
|
||
|
integer ncenotnc
|
||
|
integer ncfoobar
|
||
|
integer ncsyserr
|
||
|
integer ncfatal
|
||
|
integer ncverbos
|
||
|
integer ncentool
|
||
|
|
||
|
|
||
|
!
|
||
|
! netcdf data types:
|
||
|
!
|
||
|
integer ncbyte
|
||
|
integer ncchar
|
||
|
integer ncshort
|
||
|
integer nclong
|
||
|
integer ncfloat
|
||
|
integer 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)
|
||
|
! do not 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 = nf_clobber)
|
||
|
parameter(ncnoclob = nf_noclobber)
|
||
|
|
||
|
!
|
||
|
! '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 = 64)
|
||
|
parameter(maxncdim = 1024)
|
||
|
parameter(maxncatt = 8192)
|
||
|
parameter(maxncvar = 8192)
|
||
|
! not enforced
|
||
|
parameter(maxncnam = 256)
|
||
|
parameter(maxvdims = maxncdim)
|
||
|
|
||
|
!
|
||
|
! global netcdf error status variable
|
||
|
! initialized in error.c
|
||
|
!
|
||
|
|
||
|
! no error
|
||
|
parameter(ncnoerr = nf_noerr)
|
||
|
! not a netcdf id
|
||
|
parameter(ncebadid = nf_ebadid)
|
||
|
! too many netcdfs open
|
||
|
parameter(ncenfile = -31) ! nc_syserr
|
||
|
! netcdf file exists && ncnoclob
|
||
|
parameter(nceexist = nf_eexist)
|
||
|
! invalid argument
|
||
|
parameter(nceinval = nf_einval)
|
||
|
! write to read only
|
||
|
parameter(nceperm = nf_eperm)
|
||
|
! operation not allowed in data mode
|
||
|
parameter(ncenotin = nf_enotindefine )
|
||
|
! operation not allowed in define mode
|
||
|
parameter(nceindef = nf_eindefine)
|
||
|
! coordinates out of domain
|
||
|
parameter(ncecoord = nf_einvalcoords)
|
||
|
! maxncdims exceeded
|
||
|
parameter(ncemaxds = nf_emaxdims)
|
||
|
! string match to name in use
|
||
|
parameter(ncename = nf_enameinuse)
|
||
|
! attribute not found
|
||
|
parameter(ncenoatt = nf_enotatt)
|
||
|
! maxncattrs exceeded
|
||
|
parameter(ncemaxat = nf_emaxatts)
|
||
|
! not a netcdf data type
|
||
|
parameter(ncebadty = nf_ebadtype)
|
||
|
! invalid dimension id
|
||
|
parameter(ncebadd = nf_ebaddim)
|
||
|
! ncunlimited in the wrong index
|
||
|
parameter(nceunlim = nf_eunlimpos)
|
||
|
! maxncvars exceeded
|
||
|
parameter(ncemaxvs = nf_emaxvars)
|
||
|
! variable not found
|
||
|
parameter(ncenotvr = nf_enotvar)
|
||
|
! action prohibited on ncglobal varid
|
||
|
parameter(nceglob = nf_eglobal)
|
||
|
! not a netcdf file
|
||
|
parameter(ncenotnc = nf_enotnc)
|
||
|
parameter(ncests = nf_ests)
|
||
|
parameter (ncentool = nf_emaxname)
|
||
|
parameter(ncfoobar = 32)
|
||
|
parameter(ncsyserr = -31)
|
||
|
|
||
|
!
|
||
|
! global options variable. used to determine behavior of error handler.
|
||
|
! initialized in lerror.c
|
||
|
!
|
||
|
parameter(ncfatal = 1)
|
||
|
parameter(ncverbos = 2)
|
||
|
|
||
|
!
|
||
|
! default fill values. these must be the same as in the c interface.
|
||
|
!
|
||
|
integer filbyte
|
||
|
integer filchar
|
||
|
integer filshort
|
||
|
integer fillong
|
||
|
real filfloat
|
||
|
doubleprecision fildoub
|
||
|
|
||
|
parameter (filbyte = -127)
|
||
|
parameter (filchar = 0)
|
||
|
parameter (filshort = -32767)
|
||
|
parameter (fillong = -2147483647)
|
||
|
parameter (filfloat = 9.9692099683868690e+36)
|
||
|
parameter (fildoub = 9.9692099683868690d+36)
|