Go to the source code of this file.
◆ gdncvarattrcopy()
subroutine gdncvarattrcopy |
( |
type(gd_nc_variable), intent(in) |
to, |
|
|
character(len = *), intent(in) |
attrname, |
|
|
type(gd_nc_variable), intent(in) |
from, |
|
|
integer, intent(out) |
stat |
|
) |
| |
Definition at line 4 of file gdncvarattrcopy.f90.
References gdncfiledefinemode(), dc_url::gt_plus, dc_error::storeerror(), and gtdata_netcdf_internal::vtable_lookup().
8 use netcdf
, only: nf90_noerr, nf90_max_name, nf90_copy_att
13 character(len = *),
intent(in):: attrname
15 integer,
intent(out):: stat
16 character(NF90_MAX_NAME):: nc_aname
17 integer:: id_var_from, id_var_to
21 if (stat /= nf90_noerr)
goto 999
23 if (stat /= nf90_noerr)
goto 999
25 if (stat /= nf90_noerr)
goto 999
26 call inquireplus(from, attrname, id_var_from, nc_aname)
28 stat = nf90_copy_att(from_ent%fileid, id_var_from, nc_aname, to_ent%fileid, id_var_to)
30 call storeerror(stat,
"GDNcVarAttrCopy", myerr)
integer function, public vtable_lookup(var, entry)
integer function gdncfiledefinemode(fileid)
character, parameter, public gt_plus
subroutine, public storeerror(number, where, err, cause_c, cause_i)