fort-genatt.c
Go to the documentation of this file.
/*
This file is part of the netCDF Fortran 77 API.
This file handles the netCDF attribute functions.
Copyright 2006, University Corporation for Atmospheric Research. See
the COPYRIGHT file for copying and redistribution conditions.
$Id: fort-genatt.c,v 1.4 2006/08/16 03:56:51 ed Exp $
*/
#include <config.h>
#include "netcdf.h"
#include "ncfortran.h"
/*
* Inquire about a netCDF attribute.
*/
FCALLSCFUN5(NF_INT, nc_inq_att, NF_INQ_ATT, nf_inq_att,
NCID, VARID, STRING, PTYPE, PCOUNT)
/*
* Obtain the index of a netCDF attribute.
*/
FCALLSCFUN4(NF_INT, nc_inq_attid, NF_INQ_ATTID, nf_inq_attid,
NCID, VARID, STRING, PATTID)
/*
* Obtain the type of a netCDF attribute.
*/
FCALLSCFUN4(NF_INT, nc_inq_atttype, NF_INQ_ATTTYPE, nf_inq_atttype,
NCID, VARID, STRING, PTYPE)
/*
* Obtain the length of a netCDF attribute.
*/
FCALLSCFUN4(NF_INT, nc_inq_attlen, NF_INQ_ATTLEN, nf_inq_attlen,
NCID, VARID, STRING, PCOUNT)
/*
* Obtain the name of a netCDF attribute.
*/
FCALLSCFUN4(NF_INT, nc_inq_attname, NF_INQ_ATTNAME, nf_inq_attname,
NCID, VARID, ATTID, PSTRING)
/*
* Copy an attribute from one netCDF dataset to another.
*/
FCALLSCFUN5(NF_INT, nc_copy_att, NF_COPY_ATT, nf_copy_att,
NCID1, VARID1, STRING, NCID2, VARID2)
/*
* Rename a netCDF attribute.
*/
FCALLSCFUN4(NF_INT, nc_rename_att, NF_RENAME_ATT, nf_rename_att,
NCID, VARID, STRING, STRING)
/*
* Remove a netCDF attribute.
*/
FCALLSCFUN3(NF_INT, nc_del_att, NF_DEL_ATT, nf_del_att,
NCID, VARID, STRING)
nf_del_att
integer function nf_del_att(ncid, varid, name)
Definition: nf_genatt.f90:279
nf_inq_atttype
integer function nf_inq_atttype(ncid, varid, name, xtype)
Definition: nf_genatt.f90:70
nf_inq_attname
integer function nf_inq_attname(ncid, varid, attnum, name)
Definition: nf_genatt.f90:174
NCID1
#define NCID1
Definition: ncfortran.h:543
nf_inq_attid
integer function nf_inq_attid(ncid, varid, name, attnum)
Definition: nf_genatt.f90:140
PATTID
#define PATTID
Definition: ncfortran.h:143
nf_rename_att
integer function nf_rename_att(ncid, varid, name, newname)
Definition: nf_genatt.f90:245
FCALLSCFUN4
FCALLSCFUN4(NF_INT, c_ncddef, NCDDEF, ncddef, NCID, STRING, DIMLEN, PRCODE)
Definition: fort-v2compat.c:332
FCALLSCFUN5
#define FCALLSCFUN5(T0, CN, UN, LN, T1, T2, T3, T4, T5)
Definition: cfortran.h:2423
NF_INT
#define NF_INT
Definition: ncfortran.h:19
ncfortran.h
nf_copy_att
integer function nf_copy_att(ncid_in, varid_in, name, ncid_out, varid_out)
Definition: nf_genatt.f90:211
FCALLSCFUN3
#define FCALLSCFUN3(T0, CN, UN, LN, T1, T2, T3)
Definition: cfortran.h:2419
nf_inq_attlen
integer function nf_inq_attlen(ncid, varid, name, nlen)
Definition: nf_genatt.f90:105
nf_inq_att
integer function nf_inq_att(ncid, varid, name, xtype, nlen)
Definition: nf_genatt.f90:33
ATTID
#define ATTID
Definition: ncfortran.h:137
NCID2
#define NCID2
Definition: ncfortran.h:544
PCOUNT
#define PCOUNT
Definition: ncfortran.h:618

Return to the Main Unidata NetCDF page.