- 积分
- 2336
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-9-6
- 最后登录
- 1970-1-1
|
发表于 2022-2-17 12:16:58
|
显示全部楼层
读取数据,等压面数据
ds=xr.open_dataset('../data/fnl_20200101_00_00.grib2',engine='cfgrib',
backend_kwargs={'filter_by_keys':{'typeOfLevel': 'isobaricInhPa'}})
数据详情,问题是里面只有位置高度和温度,没有风场,湿度的变量,其他年份测试正常,麻烦老师指教。
ds
Out[93]:
<xarray.Dataset>
Dimensions: (isobaricInhPa: 33, latitude: 181, longitude: 360)
Coordinates:
time datetime64[ns] ...
step timedelta64[ns] ...
* isobaricInhPa (isobaricInhPa) int32 1000 975 950 925 900 850 ... 7 5 3 2 1
* latitude (latitude) float64 90.0 89.0 88.0 87.0 ... -88.0 -89.0 -90.0
* longitude (longitude) float64 0.0 1.0 2.0 3.0 ... 357.0 358.0 359.0
valid_time datetime64[ns] ...
Data variables:
gh (isobaricInhPa, latitude, longitude) float32 ...
t (isobaricInhPa, latitude, longitude) float32 ...
Attributes:
GRIB_edition: 2
GRIB_centre: kwbc
GRIB_centreDescription: US National Weather Service - NCEP
GRIB_subCentre: 0
Conventions: CF-1.7
institution: US National Weather Service - NCEP
history: 2022-02-17T11:56:43 GRIB to CDM+CF via cfgrib-0.... |
|