31 & varname, attrname, value, history, err)
61 character(*),
intent(in):: varname
70 character(*),
intent(in):: attrname
86 character(*),
intent(in):: value
89 type(
gt_history),
intent(inout),
target,
optional:: history
97 logical,
intent(out),
optional:: err
114 logical:: err_not_found
116 character(STRING):: cause_c
117 character(len = *),
parameter:: subname =
"HistoryAddAttrChar0"
120 &
'varname=<%c> attrname=<%c>, value=<%c>', &
121 & c1=trim(varname), c2=trim(attrname), c3=trim(
value))
125 if (
present(history))
then
130 if (varname ==
"")
then
132 do, v_ord = 1,
size(hst % vars)
137 if ( .not. err_not_found )
then
141 cause_c =
'varname="' // trim(varname) //
'" is not found'
146 call storeerror(stat, subname, err, cause_c=cause_c)
150 & varname, attrname, value, history, err)
164 character(*),
intent(in):: varname
165 character(*),
intent(in):: attrname
166 logical,
intent(in):: value
167 type(
gt_history),
intent(inout),
target,
optional:: history
168 logical,
intent(out),
optional:: err
172 logical:: err_not_found
174 character(STRING):: cause_c
175 character(len = *),
parameter:: subname =
"HistoryAddAttrLogical0"
178 &
'varname=<%c> attrname=<%c>, value=<%c>', &
179 & c1=trim(varname), c2=trim(attrname), c3=trim(
tochar(
value)))
183 if (
present(history))
then
188 if (varname ==
"")
then
190 do, v_ord = 1,
size(hst % vars)
195 if ( .not. err_not_found )
then
199 cause_c =
'varname="' // trim(varname) //
'" is not found'
204 call storeerror(stat, subname, err, cause_c=cause_c)
208 & varname, attrname, value, history, err)
222 character(*),
intent(in):: varname
223 character(*),
intent(in):: attrname
224 integer,
intent(in):: value
225 type(
gt_history),
intent(inout),
target,
optional:: history
226 logical,
intent(out),
optional:: err
230 logical:: err_not_found
232 character(STRING):: cause_c
233 character(len = *),
parameter:: subname =
"HistoryAddAttrInt0"
236 &
'varname=<%c> attrname=<%c>, value=<%c>', &
237 & c1=trim(varname), c2=trim(attrname), c3=trim(
tochar(
value)))
241 if (
present(history))
then
246 if (varname ==
"")
then
248 do, v_ord = 1,
size(hst % vars)
253 if ( .not. err_not_found )
then
254 call put_attr(var, attrname, (/
value/))
257 cause_c =
'varname="' // trim(varname) //
'" is not found'
262 call storeerror(stat, subname, err, cause_c=cause_c)
266 & varname, attrname, value, history, err)
280 character(*),
intent(in):: varname
281 character(*),
intent(in):: attrname
282 integer,
intent(in)::
value(:)
283 type(
gt_history),
intent(inout),
target,
optional:: history
284 logical,
intent(out),
optional:: err
288 logical:: err_not_found
290 character(STRING):: cause_c
291 character(len = *),
parameter:: subname =
"HistoryAddAttrInt1"
294 &
'varname=<%c> attrname=<%c>, value=<%c>', &
295 & c1=trim(varname), c2=trim(attrname), c3=trim(
tochar(
value)))
299 if (
present(history))
then
304 if (varname ==
"")
then
306 do, v_ord = 1,
size(hst % vars)
311 if ( .not. err_not_found )
then
312 call put_attr(var, attrname, (/
value/))
315 cause_c =
'varname="' // trim(varname) //
'" is not found'
320 call storeerror(stat, subname, err, cause_c=cause_c)
324 & varname, attrname, value, history, err)
338 character(*),
intent(in):: varname
339 character(*),
intent(in):: attrname
340 real,
intent(in):: value
341 type(
gt_history),
intent(inout),
target,
optional:: history
342 logical,
intent(out),
optional:: err
346 logical:: err_not_found
348 character(STRING):: cause_c
349 character(len = *),
parameter:: subname =
"HistoryAddAttrReal0"
352 &
'varname=<%c> attrname=<%c>, value=<%c>', &
353 & c1=trim(varname), c2=trim(attrname), c3=trim(
tochar(
value)))
357 if (
present(history))
then
362 if (varname ==
"")
then
364 do, v_ord = 1,
size(hst % vars)
369 if ( .not. err_not_found )
then
370 call put_attr(var, attrname, (/
value/))
373 cause_c =
'varname="' // trim(varname) //
'" is not found'
378 call storeerror(stat, subname, err, cause_c=cause_c)
382 & varname, attrname, value, history, err)
396 character(*),
intent(in):: varname
397 character(*),
intent(in):: attrname
398 real,
intent(in)::
value(:)
399 type(
gt_history),
intent(inout),
target,
optional:: history
400 logical,
intent(out),
optional:: err
404 logical:: err_not_found
406 character(STRING):: cause_c
407 character(len = *),
parameter:: subname =
"HistoryAddAttrReal1"
410 &
'varname=<%c> attrname=<%c>, value=<%c>', &
411 & c1=trim(varname), c2=trim(attrname), c3=trim(
tochar(
value)))
415 if (
present(history))
then
420 if (varname ==
"")
then
422 do, v_ord = 1,
size(hst % vars)
427 if ( .not. err_not_found )
then
428 call put_attr(var, attrname, (/
value/))
431 cause_c =
'varname="' // trim(varname) //
'" is not found'
436 call storeerror(stat, subname, err, cause_c=cause_c)
440 & varname, attrname, value, history, err)
454 character(*),
intent(in):: varname
455 character(*),
intent(in):: attrname
456 real(DP),
intent(in):: value
457 type(
gt_history),
intent(inout),
target,
optional:: history
458 logical,
intent(out),
optional:: err
462 logical:: err_not_found
464 character(STRING):: cause_c
465 character(len = *),
parameter:: subname =
"HistoryAddAttrDouble0"
468 &
'varname=<%c> attrname=<%c>, value=<%c>', &
469 & c1=trim(varname), c2=trim(attrname), c3=trim(
tochar(
value)))
473 if (
present(history))
then
478 if (varname ==
"")
then
480 do, v_ord = 1,
size(hst % vars)
485 if ( .not. err_not_found )
then
486 call put_attr(var, attrname, (/
value/))
489 cause_c =
'varname="' // trim(varname) //
'" is not found'
494 call storeerror(stat, subname, err, cause_c=cause_c)
498 & varname, attrname, value, history, err)
512 character(*),
intent(in):: varname
513 character(*),
intent(in):: attrname
514 real(DP),
intent(in)::
value(:)
515 type(
gt_history),
intent(inout),
target,
optional:: history
516 logical,
intent(out),
optional:: err
520 logical:: err_not_found
522 character(STRING):: cause_c
523 character(len = *),
parameter:: subname =
"HistoryAddAttrDouble1"
526 &
'varname=<%c> attrname=<%c>, value=<%c>', &
527 & c1=trim(varname), c2=trim(attrname), c3=trim(
tochar(
value)))
531 if (
present(history))
then
536 if (varname ==
"")
then
538 do, v_ord = 1,
size(hst % vars)
543 if ( .not. err_not_found )
then
544 call put_attr(var, attrname, (/
value/))
547 cause_c =
'varname="' // trim(varname) //
'" is not found'
552 call storeerror(stat, subname, err, cause_c=cause_c)
subroutine historyaddattrreal0(varname, attrname, value, history, err)
subroutine historyaddattrdouble1(varname, attrname, value, history, err)
subroutine historyaddattrlogical0(varname, attrname, value, history, err)
subroutine historyaddattrchar0(varname, attrname, value, history, err)
gtool4 データ内の変数への属性付加
subroutine historyaddattrint0(varname, attrname, value, history, err)
subroutine historyaddattrdouble0(varname, attrname, value, history, err)
subroutine historyaddattrreal1(varname, attrname, value, history, err)
subroutine historyaddattrint1(varname, attrname, value, history, err)
subroutine, public storeerror(number, where, err, cause_c, cause_i)
integer, parameter, public dc_noerr
Error storage variables
integer, parameter, public hst_empinoaxisdata
Handling character types.
subroutine, public beginsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca, version)
subroutine, public endsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca)
Provides kind type parameter values.
integer, parameter, public dp
Double Precision Real number
integer, parameter, public string
Character length for string
Variable URL string parser.
character, parameter, public gt_plus
type(gt_history), target, save, public default