gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
gtdata_netcdf_types.f90
Go to the documentation of this file.
1!>
2!> @file gtdata_netcdf_types.f90
3!>
4!> @author Yasuhiro MORIKAWA, Eizi TOYODA
5!> @copyright Copyright (C) GFD Dennou Club, 2000-2026. All rights reserved. <br/>
6!> License is BSD-2-Clause. See [COPYRIGHT](@ref COPYRIGHT) in detail
7!>
8!> @en
9!> @brief Derived type definitions for abstract netCDF variable interface
10!> @enden
11!>
12!> @ja
13!> @brief 抽象 netCDF 変数インターフェイス用の派生型定義
14!> @endja
15!>
16
17!>
18!> @en
19!> @brief Derived type definitions for abstract netCDF variable interface
20!>
21!> This module provides type definitions for managing netCDF variables
22!> at the gtdata abstraction layer.
23!>
24!> | Type | Description |
25!> |------|-------------|
26!> | GD_NC_VARIABLE | User handle for netCDF variables |
27!> | GD_NC_VARIABLE_ENTRY | Internal table entry for variable management |
28!> | GD_NC_VARIABLE_SEARCH | Iterator for variable list search |
29!>
30!> @enden
31!>
32!> @ja
33!> @brief 抽象 netCDF 変数インターフェイス用の派生型定義
34!>
35!> このモジュールは gtdata 抽象化層で netCDF 変数を管理するための
36!> 型定義を提供します。
37!>
38!> | 型 | 説明 |
39!> |----|------|
40!> | GD_NC_VARIABLE | netCDF 変数用のユーザハンドル |
41!> | GD_NC_VARIABLE_ENTRY | 変数管理用の内部テーブルエントリ |
42!> | GD_NC_VARIABLE_SEARCH | 変数リスト検索用イテレータ |
43!>
44!> @endja
45!>
47
48 implicit none
49
50 !>
51 !> @en
52 !> @brief User handle for netCDF variables
53 !>
54 !> This is the handle that users (gtdata layer) should use.
55 !> The id member is an index into the gdnctab table in the
56 !> gtdata_netcdf_internal module.
57 !> @enden
58 !>
59 !> @ja
60 !> @brief netCDF 変数用のユーザハンドル
61 !>
62 !> ユーザ (gtdata 層) が使うべきハンドルです。
63 !> id メンバは gtdata_netcdf_internal モジュールの gdnctab 表の
64 !> インデックスとなります。
65 !> @endja
66 !>
68 integer:: id !< @en Index into gdnctab table @enden @ja gdnctab 表へのインデックス @endja
69 end type gd_nc_variable
70
71 !>
72 !> @en
73 !> @brief Internal table entry for variable management
74 !>
75 !> Element of the gdnctab table in gtdata_netcdf_internal module.
76 !>
77 !> A variable (gtdata_netcdf_variable entity) is identified by
78 !> (fileid, varid, dimid). A valid variable always has a positive fileid.
79 !>
80 !> For dimension variables, dimids contains the dimension itself.
81 !> For non-dimension variables, dimids contains the list of dimids
82 !> for that variable's dimensions.
83 !> @enden
84 !>
85 !> @ja
86 !> @brief 変数管理用の内部テーブルエントリ
87 !>
88 !> gtdata_netcdf_internal モジュールの gdnctab 表の要素です。
89 !>
90 !> 変数 (gtdata_netcdf_variable 実体) は (fileid, varid, dimid) で
91 !> 同定されます。正当な変数の fileid は必ず正です。
92 !>
93 !> 次元変数については自次元が、非次元変数については
94 !> 自分にとっての次元の dimid の一覧が dimids に保存されます。
95 !> @endja
96 !>
98 integer:: fileid !< @en File ID @enden @ja ファイル ID @endja
99 integer:: varid !< @en Variable ID @enden @ja 変数 ID @endja
100 integer:: dimid !< @en Dimension ID @enden @ja 次元 ID @endja
101 integer, pointer:: dimids(:) !< @en Dimension ID table @enden @ja 次元 ID 表 @endja
102 integer:: attrid !< @en Attribute search iterator @enden @ja 属性サーチ用イテレータ @endja
103 end type gd_nc_variable_entry
104
105 !>
106 !> @en
107 !> @brief Iterator for variable list search
108 !> @enden
109 !>
110 !> @ja
111 !> @brief 変数リスト検索用イテレータ
112 !> @endja
113 !>
115 integer:: fileid !< @en File ID @enden @ja ファイル ID @endja
116 integer:: varid !< @en Variable ID @enden @ja 変数 ID @endja
117 integer:: dimid !< @en Dimension ID @enden @ja 次元 ID @endja
118 end type gd_nc_variable_search
119
120end module gtdata_netcdf_types