NetCDF-Fortran  4.4.3
fort-genatt.c
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)

Return to the Main Unidata NetCDF page.
Generated on Sun Mar 27 2016 13:46:12 for NetCDF-Fortran. NetCDF is a Unidata library.