爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
楼主: daydream

关于如何使用ncdump查看.nc文件的一个方法

  [复制链接]

新浪微博达人勋

发表于 2015-9-29 21:19:46 | 显示全部楼层
daydream 发表于 2013-5-19 14:34
其实现在我就遇这样一个问题,本来我是用sdfopen打开.nc文件遇到问题,后来看了兰溪的帖子,知道可以用nc ...

我也遇到同样问题,亲你解决了吗
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-9-29 21:28:55 | 显示全部楼层
给力啊
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2015-10-6 09:52:08 | 显示全部楼层
谢谢楼主!我用的是老师给的简易版NCL
原本没有ncdump这个执行文件 ,现在终于补齐拉~开心
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-10-21 16:02:25 | 显示全部楼层
本帖最后由 洗雨 于 2015-10-21 16:03 编辑
baishizhou 发表于 2013-11-12 09:37
ncdump -c -h *.nc >seehead.txt及就可以把头文件信息存放的文件中查看了。


怎样根据头文件写grads读取的描述文件?
netcdf Basin.EP.ibtracs_all.v03r06 {
dimensions:
storm = UNLIMITED ; // (1101 currently)(风暴数=无限制的1101个目前)
time = 191 ;时间=191个
ncharsn = 13 ;
ncharnm = 57 ;
center = 25 ;
ncharcn = 10 ;
variables:
char storm_sn(storm, ncharsn) ;
  storm_sn:long_name = "Storm serial number" ;风暴时间序列
char name(storm, ncharnm) ;
  name:long_name = "Storm name" ;风暴名称
short numObs(storm) ;
  numObs:long_name = "Number of observations for the storm" ;风暴观测次数
short season(storm) ;
  season:long_name = "Year based on season" ;季节年
  season:Note = "Following WMO,\n",跟随世界气象组织
   "NH Seasons begin 1 January and \n",北半球季节起始于1月1日
   "SH Seasons begin 1 July the prior year" ;南半球季节起始于前一年的7月1日
byte track_type(storm) ;
  track_type:long_name = "Track type" ;路径类型
  track_type:key = "0 = main - cyclogenesis to cyclolysis\n",
   "1 = merge - cyclogenesis to merger\n",
   "2 = split - split to cyclolysis\n",
   "3 = other - split to merger" ;
byte genesis_basin(storm) ;
  genesis_basin:long_name = "Basin of genesis" ;盆地的成因
  genesis_basin:units = " " ;
  genesis_basin:key = "0 = NA - North Atlantic\n",北大西洋
   "1 = SA - South Atlantic\n",南大西洋
   "2 = WP - West Pacific\n",西太平洋
   "3 = EP - East Pacific\n",东太平洋
   "4 = SP - South Pacific\n",南太平洋
   "5 = NI - North Indian\n",北印度洋
   "6 = SI - South Indian\n",南印度洋
   "7 = AS - Arabian Sea\n",阿拉伯海
   "8 = BB - Bay of Bengal\n",孟加拉湾
   "9 = EA - Eastern Australia\n",东澳大利亚
   "10 = WA - Western Australia\n",西澳大利亚
   "11 = CP - Central Pacific\n",中部太平洋
   "12 = CS - Carribbean Sea\n",加勒比海
   "13 = GM - Gulf of Mexico\n",墨西哥湾
   "14 = MM - Missing" ;缺测
  genesis_basin:Note = "Based on where the storm began" ;风暴发生之地
byte num_basins(storm) ;
  num_basins:long_name = "Number of basins through which the storm passes" ;风暴通过海盆的数目
  num_basins:units = " " ;
byte basin(storm, time) ;
  basin:long_name = "Basin" ;海盆
  basin:units = " " ;
  basin:key = "0 = NA - North Atlantic\n",
   "1 = SA - South Atlantic\n",
   "2 = WP - West Pacific\n",
   "3 = EP - East Pacific\n",
   "4 = SP - South Pacific\n",
   "5 = NI - North Indian\n",
   "6 = SI - South Indian\n",
   "7 = AS - Arabian Sea\n",
   "8 = BB - Bay of Bengal\n",
   "9 = EA - Eastern Australia\n",
   "10 = WA - Western Australia\n",
   "11 = CP - Central Pacific\n",
   "12 = CS - Carribbean Sea\n",
   "13 = GM - Gulf of Mexico\n",
   "14 = MM - Missing" ;
  basin:Note = "Based on present location" ;基于之前的位置
  basin:_FillValue = -127b ;
byte wind_avg_period(center) ;
  wind_avg_period:long_name = "Wind speed averaging period" ;平均时段风速
  wind_avg_period:units = "min" ;最小值
  wind_avg_period:_FillValue = -127b ;
char source(center, ncharcn) ;
  source:long_name = "Source name" ;
  source:Note = "This order matches the dimension in source_* variables" ;这个命令匹配维数环境和变量
double source_time(storm, time) ;
  source_time:long_name = "Modified Julian Day" ;改进儒略日
  source_time:units = "days since 1858-11-17 00:00:00" ;起始时间为1858年1月17日
  source_time:_FillValue = -99999. ;全职为-99999
short lat_for_mapping(storm, time) ;
  lat_for_mapping:long_name = "Latitude for mapping purposes only" ;仅限于地图的纬度
  lat_for_mapping:units = "degrees_north" ;
  lat_for_mapping:scale_factor = 0.01f ;
  lat_for_mapping:_FillValue = -32767s ;
short lon_for_mapping(storm, time) ;
  lon_for_mapping:long_name = "Longitude for mapping purposes only" ;地图的经度
  lon_for_mapping:units = "degrees_east" ;
  lon_for_mapping:scale_factor = 0.01f ;
  lon_for_mapping:_FillValue = -32767s ;
byte nature_for_mapping(storm, time) ;
  nature_for_mapping:long_name = "Storm nature" ;风暴
  nature_for_mapping:key = "0 = TS - Tropical\n",热带
   "1 = SS - Subtropical\n",副热带
   "2 = ET - Extratropical\n",温带
   "3 = DS - Disturbance\n",扰动
   "4 = MX - Mix of conflicting reports\n",融合矛盾报告
   "5 = NR - Not Reported\n",未报
   "6 = MM - Missing\n",缺测
   "7 =  - Missing" ;
  nature_for_mapping:Note = "Based on classification from original sources" ;基于分类原始来源
  nature_for_mapping:_FillValue = -127b ;
short source_lat(storm, time, center) ;
  source_lat:long_name = "Storm center latitude" ;风暴中心纬度
  source_lat:units = "degrees_north" ;
  source_lat:scale_factor = 0.01f ;
  source_lat:source = "hurdat_atl td9636 reunion atcf ds824_sh ds824_ni bom ds824_au jtwc_sh jtwc_wp td9635 ds824_wp jtwc_io cma hurdat_epa jtwc_ep ds824_ep jtwc_cp tokyo neumann hko cphc wellington newdelhi nadi" ;
  source_lat:_FillValue = -30000s ;
short source_lon(storm, time, center) ;
  source_lon:long_name = "Storm center longitude" ;风暴中心经度
  source_lon:units = "degrees_east" ;
  source_lon:scale_factor = 0.01f ;
  source_lon:source = "hurdat_atl td9636 reunion atcf ds824_sh ds824_ni bom ds824_au jtwc_sh jtwc_wp td9635 ds824_wp jtwc_io cma hurdat_epa jtwc_ep ds824_ep jtwc_cp tokyo neumann hko cphc wellington newdelhi nadi" ;
  source_lon:_FillValue = -30000s ;
short source_wind(storm, time, center) ;
  source_wind:long_name = "Maximum Sustained Wind (MSW)" ;最大持续风
  source_wind:units = "kt" ;
  source_wind:scale_factor = 0.1f ;
  source_wind:source = "hurdat_atl td9636 reunion atcf ds824_sh ds824_ni bom ds824_au jtwc_sh jtwc_wp td9635 ds824_wp jtwc_io cma hurdat_epa jtwc_ep ds824_ep jtwc_cp tokyo neumann hko cphc wellington newdelhi nadi" ;
  source_wind:_FillValue = -9990s ;
short source_pres(storm, time, center) ;
  source_pres:long_name = "Minimum Central Pressure (MCP)" ;最小中心气压
  source_pres:units = "mb" ;
  source_pres:scale_factor = 0.1f ;
  source_pres:source = "hurdat_atl td9636 reunion atcf ds824_sh ds824_ni bom ds824_au jtwc_sh jtwc_wp td9635 ds824_wp jtwc_io cma hurdat_epa jtwc_ep ds824_ep jtwc_cp tokyo neumann hko cphc wellington newdelhi nadi" ;
  source_pres:_FillValue = -9990s ;
short dist2land(storm, time) ;
  dist2land:long_name = "Distance to land" ;到陆地的距离
  dist2land:units = "km" ;
  dist2land:_FillValue = -999s ;
short landfall(storm, time) ;
  landfall:long_name = "Minimum distance to land until next report (0=landfall)" ;下一次预报时到陆地的最小距离
  landfall:units = "km" ;
  landfall:_FillValue = -999s ;
// global attributes:
  :Title = "IBTrACS-WMO: NetCDF reformat" ;标题
  :Version = "v03r06" ;
  :Description = "IBTrACS-WMO data reformatted to contain \n",
   "all data in one netCDF file. Also an attempt has been made\n",
   "to have the data appear as trajectories in the CDM" ;
  :cdm_datatype = "Trajectory" ;
  :trajectoryDimension = "storm" ;
  :Conventions = "CF-1.0" ;
  :metadata_link = "gov.noaa.ncdc:C00834" ;
}
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-10-22 10:35:44 | 显示全部楼层
很不错的东西.
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-10-22 10:36:09 | 显示全部楼层
急需金钱如何刷币
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-10-27 16:12:33 | 显示全部楼层
{:5_213:}{:5_213:}{:5_213:}{:5_213:}
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2015-12-9 19:23:36 | 显示全部楼层
怎么下载
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2015-12-19 20:25:12 | 显示全部楼层
ncdump -h 文件名 >文件名什么意思呢
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-2-15 18:46:05 | 显示全部楼层
多希望能招待一个非常傻瓜的软件解决呀
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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