Definition at line 59 of file mod_nctools.f90.
◆ nc_get_gatt()
type(ncatt) function, pointer mod_nctools::nc_get_att::nc_get_gatt |
( |
type(ncfile), intent(in) |
NCF, |
|
|
integer, intent(in) |
attid |
|
) |
| |
Definition at line 847 of file mod_nctools.f90.
848 TYPE(NCFILE),
INTENT(IN) :: NCF
849 TYPE(NCATT),
pointer :: ATT
850 integer,
intent(in) :: attid
852 CHARACTER(LEN=120) :: errmsg
853 CHARACTER(LEN=NF90_MAX_NAME+1) :: NAME
855 if(dbg_set(dbg_sbr)) &
856 &
write(ipt,*)
"START NC_GET_GATT" 858 status=nf90_inq_attname(ncf%NCID,nf90_global,attid,name)
859 errmsg=
"Can not get a file's global attribute name: "//trim(ncf%FNAME)
860 call handle_ncerr(status,errmsg)
863 att%attname=trim(name)
866 status = nf90_inquire_attribute &
867 & (ncf%NCID,nf90_global,trim(att%ATTNAME),att%XTYPE,att%LEN)
869 call read_att_type(ncf%NCID,nf90_global,att)
871 if(dbg_set(dbg_sbr)) &
872 &
write(ipt,*)
"END NC_GET_GATT"
◆ nc_get_vatt()
type(ncatt) function, pointer mod_nctools::nc_get_att::nc_get_vatt |
( |
type(ncvar), intent(in) |
VAR, |
|
|
integer, intent(in) |
attid |
|
) |
| |
Definition at line 877 of file mod_nctools.f90.
878 TYPE(NCVAR),
INTENT(IN) :: VAR
879 TYPE(NCATT),
pointer :: ATT
880 integer,
intent(in) :: attid
882 CHARACTER(LEN=120) :: errmsg
883 CHARACTER(LEN=NF90_MAX_NAME+1) :: NAME
885 if(dbg_set(dbg_sbr)) &
886 &
write(ipt,*)
"START NC_GET_VATT" 888 status=nf90_inq_attname(var%NCID,var%VARID,attid,name)
889 errmsg=
"Can not get variable attribute name: "//trim(var%VARNAME)
890 call handle_ncerr(status,errmsg)
893 att%attname=trim(name)
896 status = nf90_inquire_attribute &
897 & (var%NCID,var%VARID,trim(att%ATTNAME),att%XTYPE,att%LEN)
899 call read_att_type(var%NCID,var%VARID,att)
901 if(dbg_set(dbg_sbr)) &
902 &
write(ipt,*)
"END NC_GET_VATT"
The documentation for this interface was generated from the following file: