テーブル → NetCDF (マルチディメンション ツール)
サマリー
使用法
デフォルトの変数名は、変数に使用するフィールド (Python では fields_to_variables) パラメーターで指定したフィールド名と同じです。
変数のタイプは、フィールドのタイプと同じです。
デフォルトのディメンション名は、ディメンションに使用するフィールド (Python では fields_to_ dimensions) パラメーターで指定したフィールド名と同じです。
ディメンションの大きさは、各フィールド内の一意の値の個数と等しくなります。
ディメンションとしてフィールドが指定されていない場合、出力 netCDF ファイルに RecordID というディメンションが作成されます。
文字列フィールドを使用して netCDF ファイル内にディメンションを作成することはできません。
このツールは、ディメンションに使用するフィールド パラメーターで指定したフィールドに応じて、変数を CF 規約に準拠したポイントなどの不連続サンプリング ジオメトリー (DSG)、またはグリッド データとして書き込みます。
ディメンションに使用するフィールド パラメーターで、デフォルトのジオメトリー以外のタイプのフィールドが指定された場合、このツールは、変数を CF 規約に準拠したポイントや軌道などの不連続サンプリング ジオメトリー (DSG) として書き込みます。 これらのデータはグリッド データではないため、出力 netCDF ファイル内の変数はボクセル レイヤーの作成に適していません。
ディメンションに使用するフィールド パラメーターで、Shape.X や Shape.Y などのジオメトリー タイプのフィールドが座標ディメンションとして指定された場合、このツールは、変数を CF 規約に準拠した規則的な間隔のグリッド データとして書き込みます。 そのため、出力 netCDF ファイル内の変数はボクセル レイヤーの作成に適しています。
パラメーター
|
ラベル
|
説明
|
データ タイプ
|
|
入力テーブル
|
入力テーブル。
|
Table View
|
|
変数に使用するフィールド
|
netCDF ファイル内に変数を作成する際に使用するフィールド (1 つまたは複数)。
値テーブル列:
Field—A field in the input feature attribute table.
Variable—The netCDF variable name.
Units—The units of the data represented by the field.
|
Value Table
|
|
出力 netCDF ファイル
|
出力 netCDF ファイル。 ファイル名には .nc 拡張子を付ける必要があります。
|
File
|
|
ディメンションに使用するフィールド
(オプション)
|
netCDF ファイル内にディメンションを作成する際に使用するフィールド (1 つまたは複数)
値テーブル列:
Field—A field in the input raster attribute table.
Dimension—The netCDF dimension name.
Units—The units of the data represented by the field.
|
Value Table
|
arcpy.md.TableToNetCDF(in_table, fields_to_variables, out_netCDF_file, {fields_to_dimensions})
|
名前
|
説明
|
データ タイプ
|
|
in_table
|
入力テーブル。
|
Table View
|
|
fields_to_variables
[[field, {variable}, {units}],...]
|
netCDF ファイル内に変数を作成する際に使用するフィールド (1 つまたは複数)。
値テーブル列:
Field—A field in the input feature attribute table.
Variable—The netCDF variable name.
Units—The units of the data represented by the field.
|
Value Table
|
|
out_netCDF_file
|
出力 netCDF ファイル。 ファイル名には .nc 拡張子を付ける必要があります。
|
File
|
|
fields_to_dimensions
[[field, {dimension}, {units}],...]
(オプション)
|
netCDF ファイル内にディメンションを作成する際に使用するフィールド (1 つまたは複数)
値テーブル列:
Field—A field in the input raster attribute table.
Dimension—The netCDF dimension name.
Units—The units of the data represented by the field.
|
Value Table
|
コードのサンプル
TableToNetCDF の例 1 (Python ウィンドウ)
テーブルを netCDF ファイルに変換します。
import arcpy
arcpy.md.TableToNetCDF("c:/data/netcdfgisdata/rainfall.dbf",
"longitude longitude degree_east;latitude latitude degree_north",
"c:/output/rain.nc","station station")
TableToNetCDF の例 2 (スタンドアロン スクリプト)
テーブルを netCDF ファイルに変換します。
# Name: TableToNetCDF_Ex_02.py
# Description:
# Requirements: none
# Import system modules
import arcpy
# Set local variables
inTable = "c:/data/netcdfgisdata/rainfall.dbf"
fieldVariableUnits = "longitude longitude degree_east;latitude latitude degree_north"
outNetCDFFile = "c:/output/rain.nc"
fieldDimensionUnits = "station station"
# Run SelectByDimension
import arcpy
arcpy.md.TableToNetCDF(inTable, fieldVariableUnits, outNetCDFFile, fieldDimensionUnits)
環境
現在のワークスペース, スクラッチ ワークスペース
ライセンス情報
- Basic: はい
- Standard: はい
- Advanced: はい