29 & dim, weight, & ! (in)
40 use gtool_history, only: historyaxisinquire, historyaxisaddattr, &
41 & historyvarinfocreate
48 character(*),
intent(in):: dim
60 real,
intent(in):: weight(:)
77 character(*),
intent(in),
optional:: units
86 character(*),
intent(in),
optional:: xtype
96 character(STRING):: name, longname
97 character(TOKEN):: dim_units, dim_xtype
100 character(STRING):: cause_c
101 character(*),
parameter:: subname =
"HistoryAutoAddWeightReal" 103 call beginsub(subname,
'dim=<%c>', c1=trim(dim) )
112 cause_c =
'gtool_historyauto' 117 call historyaxisinquire( &
121 & longname = longname, &
122 & units = dim_units, &
123 & xtype = dim_xtype )
124 if ( trim(dim) == trim(name) )
then 125 if ( dim_size /=
size(weight) )
then 129 if (
present(units) ) dim_units = units
130 if (
present(xtype) ) dim_xtype = xtype
131 call historyvarinfocreate( &
133 & name = trim(dim) //
wgtsuf, dims = (/ dim /), &
134 & longname =
'weight for integration or average in ' // &
136 & units = dim_units, xtype = dim_xtype )
138 call historyaxisaddattr( &
140 & attrname =
'gt_calc_weight', &
141 &
value = trim(dim) //
wgtsuf )
155 call storeerror(stat, subname, cause_c = cause_c)
161 & dim, weight, & ! (in)
172 use gtool_history, only: historyaxisinquire, historyaxisaddattr, &
173 & historyvarinfocreate
180 character(*),
intent(in):: dim
192 real(DP),
intent(in):: weight(:)
209 character(*),
intent(in),
optional:: units
218 character(*),
intent(in),
optional:: xtype
228 character(STRING):: name, longname
229 character(TOKEN):: dim_units, dim_xtype
232 character(STRING):: cause_c
233 character(*),
parameter:: subname =
"HistoryAutoAddWeightDouble" 235 call beginsub(subname,
'dim=<%c>', c1=trim(dim) )
244 cause_c =
'gtool_historyauto' 249 call historyaxisinquire( &
253 & longname = longname, &
254 & units = dim_units, &
255 & xtype = dim_xtype )
256 if ( trim(dim) == trim(name) )
then 257 if ( dim_size /=
size(weight) )
then 261 if (
present(units) ) dim_units = units
262 if (
present(xtype) ) dim_xtype = xtype
263 call historyvarinfocreate( &
265 & name = trim(dim) //
wgtsuf, dims = (/ dim /), &
266 & longname =
'weight for integration or average in ' // &
268 & units = dim_units, xtype = dim_xtype )
270 call historyaxisaddattr( &
272 & attrname =
'gt_calc_weight', &
273 &
value = trim(dim) //
wgtsuf )
287 call storeerror(stat, subname, cause_c = cause_c)
293 & dim, weight, & ! (in)
304 use gtool_history, only: historyaxisinquire, historyaxisaddattr, &
305 & historyvarinfocreate
312 character(*),
intent(in):: dim
324 integer,
intent(in):: weight(:)
341 character(*),
intent(in),
optional:: units
350 character(*),
intent(in),
optional:: xtype
360 character(STRING):: name, longname
361 character(TOKEN):: dim_units, dim_xtype
364 character(STRING):: cause_c
365 character(*),
parameter:: subname =
"HistoryAutoAddWeightInt" 367 call beginsub(subname,
'dim=<%c>', c1=trim(dim) )
376 cause_c =
'gtool_historyauto' 381 call historyaxisinquire( &
385 & longname = longname, &
386 & units = dim_units, &
387 & xtype = dim_xtype )
388 if ( trim(dim) == trim(name) )
then 389 if ( dim_size /=
size(weight) )
then 393 if (
present(units) ) dim_units = units
394 if (
present(xtype) ) dim_xtype = xtype
395 call historyvarinfocreate( &
397 & name = trim(dim) //
wgtsuf, dims = (/ dim /), &
398 & longname =
'weight for integration or average in ' // &
400 & units = dim_units, xtype = dim_xtype )
402 call historyaxisaddattr( &
404 & attrname =
'gt_calc_weight', &
405 &
value = trim(dim) //
wgtsuf )
419 call storeerror(stat, subname, cause_c = cause_c)
logical, save, public initialized
integer, parameter, public dc_enotinit
character(*), parameter, public wgtsuf
integer, parameter, public token
単語やキーワードを保持する文字型変数の種別型パラメタ
type(gt_history_axis_data), dimension(1:nf90_max_dims), target, save, public data_weights
subroutine historyautoaddweightint(dim, weight, units, xtype)
subroutine, public storeerror(number, where, err, cause_c, cause_i)
integer, parameter, public dc_noerr
subroutine historyautoaddweightreal(dim, weight, units, xtype)
type(gt_history_varinfo), dimension(1:nf90_max_dims), save, public gthst_weights
subroutine historyautoaddweightdouble(dim, weight, units, xtype)
type(gt_history_axis), dimension(1:nf90_max_dims), target, save, public gthst_axes
integer, parameter, public dp
倍精度実数型変数
subroutine, public beginsub(name, fmt, i, r, d, L, n, c1, c2, c3, ca, version)
integer, parameter, public gt_eargsizemismatch
integer, save, public numdims
integer, parameter, public hst_enoaxisname
integer, save, public numwgts
subroutine, public endsub(name, fmt, i, r, d, L, n, c1, c2, c3, ca)
integer, parameter, public string
文字列を保持する 文字型変数の種別型パラメタ