fort-genvar.c
Go to the documentation of this file.
/*
This file is part of the netCDF Fortran 77 API.
This file handles the netCDF variable functions.
Copyright 2006, University Corporation for Atmospheric Research. See
the COPYRIGHT file for copying and redistribution conditions.
$Id: fort-genvar.c,v 1.4 2008/02/19 21:47:05 ed Exp $
*/
#include <config.h>
#include "netcdf.h"
#include "ncfortran.h"
#include "fort-lib.h"
/*
* Define a netCDF variable.
*/
FCALLSCFUN6(NF_INT, nc_def_var, NF_DEF_VAR, nf_def_var,
NCID, STRING, TYPE, NDIMS, DIMIDS, PVARID)
/*
* Inquire about a netCDF variable.
*/
FCALLSCFUN7(NF_INT, nc_inq_var, NF_INQ_VAR, nf_inq_var,
NCID, VARID, PSTRING, PTYPE, PNDIMS, PDIMIDS, PNATTS)
/*
* Obtain the ID of a netCDF variable.
*/
FCALLSCFUN3(NF_INT, nc_inq_varid, NF_INQ_VARID, nf_inq_varid,
NCID, STRING, PVARID)
/*
* Obtain the name of a netCDF variable.
*/
FCALLSCFUN3(NF_INT, nc_inq_varname, NF_INQ_VARNAME, nf_inq_varname,
NCID, VARID, PSTRING)
/*
* Obtain the type of a netCDF variable.
*/
FCALLSCFUN3(NF_INT, nc_inq_vartype, NF_INQ_VARTYPE, nf_inq_vartype,
NCID, VARID, PTYPE)
/*
* Obtain the number of dimensions of a netCDF variable.
*/
FCALLSCFUN3(NF_INT, nc_inq_varndims, NF_INQ_VARNDIMS, nf_inq_varndims,
NCID, VARID, PNDIMS)
/*
* Obtain the shape of a netCDF variable.
*/
FCALLSCFUN3(NF_INT, nc_inq_vardimid, NF_INQ_VARDIMID, nf_inq_vardimid,
NCID, VARID, PDIMIDS)
/*
* Obtain the number of attributes of a netCDF variable.
*/
FCALLSCFUN3(NF_INT, nc_inq_varnatts, NF_INQ_VARNATTS, nf_inq_varnatts,
NCID, VARID, PNATTS)
/*
* Rename a netCDF variable.
*/
FCALLSCFUN3(NF_INT, nc_rename_var, NF_RENAME_VAR, nf_rename_var,
NCID, VARID, STRING)
/*
* Copy a netCDF variable.
*/
FCALLSCFUN3(NF_INT, nc_copy_var, NF_COPY_VAR, nf_copy_var,
NCID1, VARID, NCID2)
nf_inq_var
integer function nf_inq_var(ncid, varid, name, xtype, ndims, dimids, natts)
Definition: nf_genvar.f90:119
nf_inq_varname
integer function nf_inq_varname(ncid, varid, name)
Definition: nf_genvar.f90:279
nf_inq_varndims
integer function nf_inq_varndims(ncid, varid, vndims)
Definition: nf_genvar.f90:91
NCID1
#define NCID1
Definition: ncfortran.h:543
FCALLSCFUN7
#define FCALLSCFUN7(T0, CN, UN, LN, T1, T2, T3, T4, T5, T6, T7)
Definition: cfortran.h:2427
PNATTS
#define PNATTS
Definition: ncfortran.h:215
nf_copy_var
integer function nf_copy_var(ncid_in, varid, ncid_out)
Definition: nf_genvar.f90:402
nf_rename_var
integer function nf_rename_var(ncid, varid, name)
Definition: nf_genvar.f90:372
nf_inq_varnatts
integer function nf_inq_varnatts(ncid, varid, nvatts)
Definition: nf_genvar.f90:344
PVARID
#define PVARID
Definition: ncfortran.h:582
NF_INT
#define NF_INT
Definition: ncfortran.h:19
ncfortran.h
FCALLSCFUN3
#define FCALLSCFUN3(T0, CN, UN, LN, T1, T2, T3)
Definition: cfortran.h:2419
nf_def_var
integer function nf_def_var(ncid, name, xtype, nvdims, vdims, varid)
Definition: nf_genvar.f90:36
PNDIMS
#define PNDIMS
Definition: ncfortran.h:191
nf_inq_vartype
integer function nf_inq_vartype(ncid, varid, xtype)
Definition: nf_genvar.f90:316
nf_inq_vardimid
integer function nf_inq_vardimid(ncid, varid, dimids)
Definition: nf_genvar.f90:192
NCID2
#define NCID2
Definition: ncfortran.h:544
nf_inq_varid
integer function nf_inq_varid(ncid, name, varid)
Definition: nf_genvar.f90:246
FCALLSCFUN6
FCALLSCFUN6(NF_INT, c_ncvdef, NCVDEF, ncvdef, NCID, STRING, TYPE, NDIMS, DIMIDS, PRCODE)
Definition: fort-v2compat.c:395
fort-lib.h

Return to the Main Unidata NetCDF page.