Go to the source code of this file.
◆ gdncvarattrnext()
subroutine gdncvarattrnext |
( |
type(gd_nc_variable), intent(in) |
var, |
|
|
character(len = *), intent(out) |
name, |
|
|
logical, intent(out), optional |
vend |
|
) |
| |
Definition at line 30 of file gdncvarattr.f90.
References dc_url::gt_plus, gtdata_netcdf_internal::vtable_lookup(), and gtdata_netcdf_internal::vtable_set_attrid().
32 use netcdf
, only: nf90_noerr, nf90_max_name, nf90_inq_attname, nf90_global
36 character(len = *),
intent(out):: name
38 logical,
intent(out),
optional:: vend
39 character(len = NF90_MAX_NAME):: attrname
44 if (stat /= nf90_noerr)
goto 999
46 new_attrid = ent%attrid
48 if (ent%attrid >= 0)
then 49 new_attrid = ent%attrid + 1
50 stat = nf90_inq_attname(ent%fileid, ent%varid, new_attrid, attrname)
51 if (stat == nf90_noerr)
then 61 stat = nf90_inq_attname(ent%fileid, nf90_global, -new_attrid, attrname)
62 if (stat == nf90_noerr)
then 63 new_attrid = new_attrid - 1
integer function, public vtable_lookup(var, entry)
character, parameter, public gt_plus
integer function, public vtable_set_attrid(var, attrid)
◆ gdncvarattrrewind()
subroutine gdncvarattrrewind |
( |
type(gd_nc_variable), intent(in) |
var | ) |
|
Definition at line 16 of file gdncvarattr.f90.
References dc_trace::dbgmessage(), and gtdata_netcdf_internal::vtable_set_attrid().
18 use netcdf
, only: nf90_noerr
23 character(len = *),
parameter:: subname =
'GDNcVarAttrRewind' 26 call dbgmessage(
"%c %d", c1=subname, i=(/stat/))
subroutine, public dbgmessage(fmt, i, r, d, L, n, c1, c2, c3, ca)
integer function, public vtable_set_attrid(var, attrid)