Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to retrieve data from one region out of 23 in a NetCDF file

1 回表示 (過去 30 日間)
Maya Lewis
Maya Lewis 2020 年 11 月 6 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi, I need rainfall data for one region only from a NetCDF file. I need to pick out the 23rd region only but I don't know how to do this. The relevant variables are below. Thank you in advance.
rainfall
Size: 23x47116
Dimensions: region,time
Datatype: double
Attributes:
standard_name = 'lwe_thickness_of_precipitation_amount'
long_name = 'Total precipitation amount'
units = 'mm'
description = 'Total rainfall'
label_units = 'mm'
plot_label = 'Total rainfall (mm)'
cell_methods = 'time: sum'
coordinates = 'geo_region'
region
Size: 23x1
Dimensions: region
Datatype: int32
Attributes:
units = '1'
standard_name = 'region'
geo_region
Size: 27x23
Dimensions: string27,region
Datatype: char
Attributes:
units = '1'
long_name = 'River Basin'
>>

回答 (1 件)

KSSV
KSSV 2020 年 11 月 6 日
You can load/ read the data from netCDf file using ncread.
data = ncread("myncFile",'rainfall') ;
  6 件のコメント
Maya Lewis
Maya Lewis 2020 年 11 月 6 日
Thanks alot, I think that has worked now. I'm new to MATLAB working on my thesis, hence lack of knowledge...
KSSV
KSSV 2020 年 11 月 6 日
Thats good your problem solved. Good luck for you thesis. :)

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by