- 积分
- 121
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-5-3
- 最后登录
- 1970-1-1
|
GrADS
系统平台: |
matlab |
问题截图: |
- |
问题概况: |
用ncread读取区域范围怎么表示 |
我看过提问的智慧: |
看过 |
自己思考时长(天): |
3 |
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
用ncread 怎么取区域范围?
clear
clc
ncdisp('F:\nc\sst.ltm.1981-2010.nc');
lat = ncread('sst.ltm.1981-2010.nc','lat');
lon = ncread('sst.ltm.1981-2010.nc','lon');
time = ncread('sst.ltm.1981-2010.nc','time');
sstdata = ncread('sst.ltm.1981-2010.nc','sst',1 1 m],[180 40 100]); 这里是错的
sstdata = ncread('sst.ltm.1981-2010.nc','sst',1 1 m],[180 40 100]); 在这一步中,我想要读取经度100-180,纬度0-60,的区域范围
nc数据是从1981-2010的月平均数据
整个信息是这样的,数据是1×1的
Dimensions:
time = 12
lat = 180
lon = 360
Variables:
time
Size: 12x1
Dimensions: time
Datatype: double
Attributes:
long_name = 'Time'
units = 'days since 1800-01-01 00:00:0.0'
avg_period = '0000-01-00 00:00:00'
delta_t = '0000-01-00 00:00:00'
ltm_range = [6.61e+04 7.71e+04]
actual_range = [-6.57e+05 -6.57e+05]
axis = 'T'
lat
Size: 180x1
Dimensions: lat
Datatype: single
Attributes:
long_name = 'Latitude'
standard_name = 'latitude'
units = 'degrees_north'
actual_range = [-8.95e+01 8.95e+01]
axis = 'Y'
lon
Size: 360x1
Dimensions: lon
Datatype: single
Attributes:
long_name = 'Longitude'
standard_name = 'longitude'
units = 'degrees_east'
actual_range = [5.00e-01 3.60e+02]
axis = 'X'
sst
Size: 360x180x12
Dimensions: lon,lat,time
Datatype: int16
Attributes:
long_name = 'Monthly Long Term Mean of Sea Surface Temperature'
units = 'degC'
least_significant_digit = 1
precision = 1
scale_factor = 0.01
add_offset = 0
missing_value = 3.28e+04
valid_range = [-5.00e+02 4.00e+03]
unpacked_valid_range = [-5.00e+00 4.00e+01]
dataset = 'NOAA Optimum Interpolation (OI) SST V2'
statistic = 'Long Term Mean'
parent_stat = 'Mean'
level_desc = 'Surface'
var_desc = 'Sea Surface Temperature'
_FillValue = 3.28e+04
actual_range = [-1.80e+00 3.36e+01]
求助怎么用ncread 取范围?已经看过help,但是不是很理解,不知道怎么表示
|
|