5 use netcdf,
only: nf90_put_att, nf90_global
22 character(len=*),
intent(in) :: header_name
23 integer(i_byte),
intent(in) :: header_value
26 call nclayer_error(
"Can't write definitions - NetCDF4 layer not initialized yet!")
33 character(len=*),
intent(in) :: header_name
34 integer(i_short),
intent(in) :: header_value
37 call nclayer_error(
"Can't write definitions - NetCDF4 layer not initialized yet!")
44 character(len=*),
intent(in) :: header_name
45 integer(i_long),
intent(in) :: header_value
48 call nclayer_error(
"Can't write definitions - NetCDF4 layer not initialized yet!")
55 character(len=*),
intent(in) :: header_name
56 real(r_single),
intent(in) :: header_value
59 call nclayer_error(
"Can't write definitions - NetCDF4 layer not initialized yet!")
66 character(len=*),
intent(in) :: header_name
67 real(r_double),
intent(in) :: header_value
70 call nclayer_error(
"Can't write definitions - NetCDF4 layer not initialized yet!")
77 character(len=*),
intent(in) :: header_name
78 character(len=*),
intent(in) :: header_value
81 call nclayer_error(
"Can't write definitions - NetCDF4 layer not initialized yet!")
83 call nclayer_check(nf90_put_att(
ncid, nf90_global, header_name, trim(header_value)))
93 character(len=*),
intent(in) :: header_name
94 integer(i_byte),
dimension(:),
intent(in) :: header_value
97 call nclayer_error(
"Can't write definitions - NetCDF4 layer not initialized yet!")
104 character(len=*),
intent(in) :: header_name
105 integer(i_short),
dimension(:),
intent(in) :: header_value
108 call nclayer_error(
"Can't write definitions - NetCDF4 layer not initialized yet!")
115 character(len=*),
intent(in) :: header_name
116 integer(i_long),
dimension(:),
intent(in) :: header_value
119 call nclayer_error(
"Can't write definitions - NetCDF4 layer not initialized yet!")
126 character(len=*),
intent(in) :: header_name
127 real(r_single),
dimension(:),
intent(in) :: header_value
130 call nclayer_error(
"Can't write definitions - NetCDF4 layer not initialized yet!")
137 character(len=*),
intent(in) :: header_name
138 real(r_double),
dimension(:),
intent(in) :: header_value
141 call nclayer_error(
"Can't write definitions - NetCDF4 layer not initialized yet!")
integer, parameter, public i_byte
integer, parameter, public i_long
subroutine nclayer_check(status)
integer, parameter, public i_short
subroutine nclayer_error(err)
integer, parameter, public r_double
integer, parameter, public r_single