爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
12
返回列表 发新帖
楼主: mayuteng

[讨论] 用matlab如何提取grib2文件中的经纬度

[复制链接]

新浪微博达人勋

 成长值: 32430
发表于 2016-11-24 07:20:39 | 显示全部楼层
mayuteng 发表于 2016-11-23 22:31
看路径还是什么?

是的
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2016-11-24 09:19:51 | 显示全部楼层

大神,之前你说的nc.variables 怎么用?是什么格式?
直接a=nv.variables(‘xxxxxxxxxx.grib2’)这种格式吗
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 成长值: 32430
发表于 2016-11-24 17:24:14 | 显示全部楼层
你能看看我的例子吗?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-4-20 11:15:38 | 显示全部楼层
wnd.netcdf

ans =

netcdf e:/1.grb2 {
dimensions:
   lon = 274;
   lat = 263;
   time = 24;
variables:
   float VAR0-1-205_FROM_38-0-0_surface(time=24, lat=263, lon=274);
     :long_name = "Unknown Parameter 0-1-205 @ Ground or water surface";
     :units = "";
     :missing_value = NaNf; // float
     :grid_mapping = "LatLon_Projection";
     :Grib_Variable_Id = "VAR_0-1-205_L1";
     :Grib2_Parameter = 0, 1, 205; // int
     :Grib2_Parameter_Discipline = "Meteorological products";
     :Grib2_Parameter_Category = "Moisture";
     :Grib2_Level_Type = 1; // int
     :Grib2_Generating_Process_Type = "Forecast";
   float lat(lat=263);
     :units = "degrees_north";
     :_CoordinateAxisType = "Lat";
   float lon(lon=274);
     :units = "degrees_east";
     :_CoordinateAxisType = "Lon";
   int time(time=24);
     :units = "Hour since 2018-03-19T08:00:00Z";
     :standard_name = "time";
     :_CoordinateAxisType = "Time";

:Originating or generating Center = "Beijing (RSMC)";
:Originating or generating Subcenter = "0";
:GRIB table version (master,local) = "1,0";
:Type of generating process = "Forecast";
:Conventions = "CF-1.6";
:history = "Read using CDM IOSP Grib2Collection";
:featureType = "GRID";
:file_format = "GRIB-2";
:_CoordSysBuilder = "ucar.nc2.dataset.conv.CF1Convention";


用wnd_Moisture=wnd.data('Moisture')读取变量Moisture读不出来?请问问题在哪里?
用wnd_surface=wnd.data('VAR0-1-205_FROM_38-0-0_surface');读出来这样:

grb2.PNG
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2021-1-22 23:20:23 | 显示全部楼层
我也遇到这个问题了,查了一下资料似乎是 metlab 2017版的通病,换版本就行
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2021-6-15 19:48:27 | 显示全部楼层
本帖最后由 流云洗出天空蓝 于 2021-6-15 20:57 编辑
mayuteng 发表于 2016-11-23 22:16
我用cntoolbox读取另外一个grib2文件的时候,就读不出来了~是什么情况,如图

报错确实是版本的问题,我装了16a以后就解决了
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表