NetCDF-Fortran  4.4.2
fort-genvar.c
1 /*
2 This file is part of the netCDF Fortran 77 API.
3 
4 This file handles the netCDF variable functions.
5 
6 Copyright 2006, University Corporation for Atmospheric Research. See
7 the COPYRIGHT file for copying and redistribution conditions.
8 
9 $Id: fort-genvar.c,v 1.4 2008/02/19 21:47:05 ed Exp $
10 */
11 
12 #include <config.h>
13 #include "netcdf.h"
14 #include "ncfortran.h"
15 #include "fort-lib.h"
16 
17 /*
18  * Define a netCDF variable.
19  */
20 FCALLSCFUN6(NF_INT, nc_def_var, NF_DEF_VAR, nf_def_var,
21  NCID, STRING, TYPE, NDIMS, DIMIDS, PVARID)
22 
23 
24 /*
25  * Inquire about a netCDF variable.
26  */
27 FCALLSCFUN7(NF_INT, nc_inq_var, NF_INQ_VAR, nf_inq_var,
28  NCID, VARID, PSTRING, PTYPE, PNDIMS, PDIMIDS, PNATTS)
29 
30 
31 /*
32  * Obtain the ID of a netCDF variable.
33  */
34 FCALLSCFUN3(NF_INT, nc_inq_varid, NF_INQ_VARID, nf_inq_varid,
35  NCID, STRING, PVARID)
36 
37 
38 /*
39  * Obtain the name of a netCDF variable.
40  */
41 FCALLSCFUN3(NF_INT, nc_inq_varname, NF_INQ_VARNAME, nf_inq_varname,
42  NCID, VARID, PSTRING)
43 
44 
45 /*
46  * Obtain the type of a netCDF variable.
47  */
48 FCALLSCFUN3(NF_INT, nc_inq_vartype, NF_INQ_VARTYPE, nf_inq_vartype,
49  NCID, VARID, PTYPE)
50 
51 
52 /*
53  * Obtain the number of dimensions of a netCDF variable.
54  */
55 FCALLSCFUN3(NF_INT, nc_inq_varndims, NF_INQ_VARNDIMS, nf_inq_varndims,
56  NCID, VARID, PNDIMS)
57 
58 
59 /*
60  * Obtain the shape of a netCDF variable.
61  */
62 FCALLSCFUN3(NF_INT, nc_inq_vardimid, NF_INQ_VARDIMID, nf_inq_vardimid,
63  NCID, VARID, PDIMIDS)
64 
65 
66 /*
67  * Obtain the number of attributes of a netCDF variable.
68  */
69 FCALLSCFUN3(NF_INT, nc_inq_varnatts, NF_INQ_VARNATTS, nf_inq_varnatts,
70  NCID, VARID, PNATTS)
71 
72 
73 /*
74  * Rename a netCDF variable.
75  */
76 FCALLSCFUN3(NF_INT, nc_rename_var, NF_RENAME_VAR, nf_rename_var,
77  NCID, VARID, STRING)
78 
79 
80 /*
81  * Copy a netCDF variable.
82  */
83 FCALLSCFUN3(NF_INT, nc_copy_var, NF_COPY_VAR, nf_copy_var,
84  NCID1, VARID, NCID2)

Return to the Main Unidata NetCDF page.
Generated on Wed Aug 19 2015 17:51:09 for NetCDF-Fortran. NetCDF is a Unidata library.