ncdisp
コマンド ウィンドウに netCDF データ ソースの内容を表示する
説明
例
netCDF ファイル example.nc の内容を表示します。
ncdisp("example.nc")Source:
matlabroot\toolbox\matlab\demos\example.nc
Format:
netcdf4
Global Attributes:
creation_date = '29-Mar-2010'
Dimensions:
x = 50
y = 50
z = 5
Variables:
avagadros_number
Size: 1x1
Dimensions:
Datatype: double
Attributes:
description = 'this variable has no dimensions'
temperature
Size: 50x1
Dimensions: x
Datatype: int16
Attributes:
scale_factor = 1.8
add_offset = 32
units = 'degrees_fahrenheit'
peaks
Size: 50x50
Dimensions: x,y
Datatype: int16
Attributes:
description = 'z = peaks(50);'
Groups:
/grid1/
Attributes:
description = 'This is a group attribute.'
Dimensions:
x = 360
y = 180
time = 0 (UNLIMITED)
Variables:
temp
Size: []
Dimensions: x,y,time
Datatype: int16
/grid2/
Attributes:
description = 'This is another group attribute.'
Dimensions:
x = 360
y = 180
time = 0 (UNLIMITED)
Variables:
temp
Size: []
Dimensions: x,y,time
Datatype: int16ファイル example.nc の変数 peaks の内容を表示します。
ncdisp("example.nc","peaks")
Source:
matlabroot\toolbox\matlab\demos\example.nc
Format:
netcdf4
Dimensions:
x = 50
y = 50
Variables:
peaks
Size: 50x50
Dimensions: x,y
Datatype: int16
Attributes:
description = 'z = peaks(50);'ファイル example.nc のグループ階層および変数定義のみを表示します。
ncdisp("example.nc","/","min")
Source:
matlabroot\toolbox\matlab\demos\example.nc
Format:
netcdf4
Variables:
avagadros_number
Size: 1x1
Dimensions:
Datatype: double
temperature
Size: 50x1
Dimensions: x
Datatype: int16
peaks
Size: 50x50
Dimensions: x,y
Datatype: int16
Groups:
/grid1/
Variables:
temp
Size: []
Dimensions: x,y,time
Datatype: int16
/grid2/
Variables:
temp
Size: []
Dimensions: x,y,time
Datatype: int16入力引数
netCDF データ ソースの名前。string スカラーまたは文字ベクトルとして指定します。引数 source には、次の値のいずれかを指定できます。
ローカルの netCDF ソースのパス
リモートの OPeNDAP netCDF データ ソースの OPeNDAP URL
リモートの netCDF ソースの HTTP URL。その URL の末尾に
#mode=bytesを付け加えてバイト範囲読み取りを有効にするメモ
バイト範囲読み取りは、リモート ソースから読み取る他の方法よりも遅くなります。バイト範囲読み取りの詳細については、netCDF のドキュメンテーションを参照してください。
例: "myNetCDFfile.nc"
例: "http://host_name/netcdf_filename#mode=bytes"
netCDF データ ソース内の変数またはグループの場所。string スカラーまたは文字ベクトルとして指定します。ソース全体の内容を表示するには、location を "/" (スラッシュ) に設定します。
例: "myVar"
例: "/myGrp/mySubGrp/myNestedVar"
例: "myGrp"
例: "/myGrp/mySubGrp"
表示形式。"full" または "min" のいずれかとして指定します。属性を表示するには dispFormat を "full" に設定し、属性を非表示にするには dispFormat を "min" に設定します。
データ型: string | char
ヒント
sourceが制約式をもつ OPeNDAP URL である場合は、他の入力引数を指定せずに構文ncdisp(source)を使用します。
バージョン履歴
R2011a で導入リモート サーバーがバイト範囲アクセスをサポートしている場合、リモート データセットへの読み取り専用のアクセスに ncdisp を使用して、HTTP バイト範囲機能を使用できます。
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)