gtool5 Fortran 90/95 Library
1.0.0-rc5
日本語
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Loading...
Searching...
No Matches
gtdata
gtdata_netcdf
gdncxtypename.f90
Go to the documentation of this file.
1
!> @file gdncxtypename.f90
2
!>
3
!> @author GFD Dennou Club
4
!> @copyright Copyright (C) GFD Dennou Club, 2000-2026. All rights reserved. <br/>
5
!> License is BSD-2-Clause. See [COPYRIGHT](@ref COPYRIGHT) in detail
6
!>
7
!> @en
8
!> @brief Convert netCDF type ID to type name string
9
!> @enden
10
!>
11
!> @ja
12
!> @brief netCDF 型 ID を型名文字列に変換
13
!> @endja
14
!>
15
16
!>
17
!> @en
18
!> @brief Get netCDF type name from type ID
19
!>
20
!> Converts a netCDF type identifier to its string representation.
21
!> @enden
22
!>
23
!> @ja
24
!> @brief 型 ID から netCDF 型名を取得
25
!>
26
!> netCDF 型識別子を文字列表現に変換します。
27
!> @endja
28
!>
29
!> @param[in] ixtype @en netCDF type identifier @enden @ja netCDF 型識別子 @endja
30
!> @param[out] xtype @en Type name string @enden @ja 型名文字列 @endja
31
!>
32
subroutine
gdncxtypename
(ixtype, xtype)
33
use
netcdf,
only
: &
34
& nf90_byte, &
35
& nf90_char, &
36
& nf90_short, &
37
& nf90_int, &
38
& nf90_float, &
39
& nf90_double
40
implicit none
41
integer
,
intent(in)
:: ixtype
42
character(*)
,
intent(out)
:: xtype
43
select case
(ixtype)
44
case
(0)
45
xtype =
"error"
46
case
(nf90_char)
47
xtype =
"char"
48
case
(nf90_byte)
49
xtype =
"byte"
50
case
(nf90_short)
51
xtype =
"short"
52
case
(nf90_int)
53
xtype =
"int"
54
case
(nf90_float)
55
xtype =
"float"
56
case
(nf90_double)
57
xtype =
"double"
58
case default
59
xtype =
""
60
end select
61
end subroutine
gdncxtypename
gdncxtypename
subroutine gdncxtypename(ixtype, xtype)
Definition
gdncxtypename.f90:33
Generated on
for gtool5 Fortran 90/95 Library by
1.15.0