NetCDF-Fortran  4.4.4
fort-genatt.c
Go to the documentation of this file.
1 /*
2 This file is part of the netCDF Fortran 77 API.
3 
4 This file handles the netCDF attribute functions.
5 
6 Copyright 2006, University Corporation for Atmospheric Research. See
7 the COPYRIGHT file for copying and redistribution conditions.
8 
9 $Id: fort-genatt.c,v 1.4 2006/08/16 03:56:51 ed Exp $
10 */
11 
12 #include <config.h>
13 #include "netcdf.h"
14 #include "ncfortran.h"
15 
16 
17 /*
18  * Inquire about a netCDF attribute.
19  */
20 FCALLSCFUN5(NF_INT, nc_inq_att, NF_INQ_ATT, nf_inq_att,
21  NCID, VARID, STRING, PTYPE, PCOUNT)
22 
23 
24 /*
25  * Obtain the index of a netCDF attribute.
26  */
27 FCALLSCFUN4(NF_INT, nc_inq_attid, NF_INQ_ATTID, nf_inq_attid,
28  NCID, VARID, STRING, PATTID)
29 
30 
31 /*
32  * Obtain the type of a netCDF attribute.
33  */
34 FCALLSCFUN4(NF_INT, nc_inq_atttype, NF_INQ_ATTTYPE, nf_inq_atttype,
35  NCID, VARID, STRING, PTYPE)
36 
37 
38 /*
39  * Obtain the length of a netCDF attribute.
40  */
41 FCALLSCFUN4(NF_INT, nc_inq_attlen, NF_INQ_ATTLEN, nf_inq_attlen,
42  NCID, VARID, STRING, PCOUNT)
43 
44 
45 /*
46  * Obtain the name of a netCDF attribute.
47  */
48 FCALLSCFUN4(NF_INT, nc_inq_attname, NF_INQ_ATTNAME, nf_inq_attname,
49  NCID, VARID, ATTID, PSTRING)
50 
51 
52 /*
53  * Copy an attribute from one netCDF dataset to another.
54  */
55 FCALLSCFUN5(NF_INT, nc_copy_att, NF_COPY_ATT, nf_copy_att,
56  NCID1, VARID1, STRING, NCID2, VARID2)
57 
58 
59 /*
60  * Rename a netCDF attribute.
61  */
62 FCALLSCFUN4(NF_INT, nc_rename_att, NF_RENAME_ATT, nf_rename_att,
63  NCID, VARID, STRING, STRING)
64 
65 
66 /*
67  * Remove a netCDF attribute.
68  */
69 FCALLSCFUN3(NF_INT, nc_del_att, NF_DEL_ATT, nf_del_att,
70  NCID, VARID, STRING)
integer function nf_del_att(ncid, varid, name)
Definition: nf_genatt.f90:279
integer function nf_inq_atttype(ncid, varid, name, xtype)
Definition: nf_genatt.f90:70
integer function nf_inq_attname(ncid, varid, attnum, name)
Definition: nf_genatt.f90:174
#define NCID1
Definition: ncfortran.h:543
integer function nf_inq_attid(ncid, varid, name, attnum)
Definition: nf_genatt.f90:140
#define PATTID
Definition: ncfortran.h:143
integer function nf_rename_att(ncid, varid, name, newname)
Definition: nf_genatt.f90:245
FCALLSCFUN4(NF_INT, c_ncddef, NCDDEF, ncddef, NCID, STRING, DIMLEN, PRCODE)
#define FCALLSCFUN5(T0, CN, UN, LN, T1, T2, T3, T4, T5)
Definition: cfortran.h:2423
#define NF_INT
Definition: ncfortran.h:19
integer function nf_copy_att(ncid_in, varid_in, name, ncid_out, varid_out)
Definition: nf_genatt.f90:211
#define FCALLSCFUN3(T0, CN, UN, LN, T1, T2, T3)
Definition: cfortran.h:2419
integer function nf_inq_attlen(ncid, varid, name, nlen)
Definition: nf_genatt.f90:105
integer function nf_inq_att(ncid, varid, name, xtype, nlen)
Definition: nf_genatt.f90:33
#define ATTID
Definition: ncfortran.h:137
#define NCID2
Definition: ncfortran.h:544
#define PCOUNT
Definition: ncfortran.h:618

Return to the Main Unidata NetCDF page.
Generated on Thu Nov 9 2017 06:56:52 for NetCDF-Fortran. NetCDF is a Unidata library.