39 use netcdf,
only: nf90_noerr, nf90_max_name, nf90_copy_att
43 character(len = *),
intent(in):: attrname
45 integer,
intent(out):: stat
46 character(NF90_MAX_NAME):: nc_aname
47 integer:: id_var_from, id_var_to
51 if (stat /= nf90_noerr)
goto 999
53 if (stat /= nf90_noerr)
goto 999
55 if (stat /= nf90_noerr)
goto 999
56 call inquireplus(from, attrname, id_var_from, nc_aname)
58 stat = nf90_copy_att(from_ent%fileid, id_var_from, nc_aname, to_ent%fileid, id_var_to)
60 call storeerror(stat,
"GDNcVarAttrCopy", myerr)