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