爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 3445|回复: 1

[程序设计] 如何用MATLAB读取TRMM 3B41和3B40的bin格式数据?

[复制链接]

新浪微博达人勋

发表于 2018-12-16 11:40:38 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
我已经下载好了TRMM 3B41和3B40的降雨数据,数据格式都是bin:
TIM图片20181216113305.png
从官网所给的数据格式描述可知数据大致的排列形式如下,即数据应是1440×480的矩阵格式:
These data are output from the TRMM Multi-satellite Precipitation Analysis (TMPA), the Near Real-Time (RT) processing stream. The latency is about seven hours from the observation time, although processing issues may delay or prevent this schedule. Users should be mindful that the price for the short latency of these data is the reduced quality as compared to the research quality product 3B42. This particular dataset is an intermediate variable (VAR) rainrate IR estimate. Data files start with a header consisting of a 2880-byte record containing ASCII characters. The header line makes the file nearly self-documenting, in particular spelling out the variable and version names, and giving the units of the variables. Immediately after the header follow 3 data fields, "precip", "error","# pixels", with byte count correspondingly 1382400,1382400,691200. First two are 2-byte integers, and the third is 1-byte. All fields are 1440x480 grid boxes (0-360E,60N
S). The first grid box center is at (0.125E,59.875N). The grid increments most rapidly to the east. Grid boxes without valid data are filled with the (2-byte integer) "missing" value -31999. Valid estimates are only provided in the band 50N-S. This binary data sets are in IEEE "big-endian" floating-point format. The NASA Goddard Space Flight Center (GSFC) system to produce the TMPA-RT estimates in real time for use by the operational research community was developed to apply new concepts in merging quasi-global precipitation estimates and to take advantage of the increasing availability of input data sets in near real time.

TIM图片20181216113430.png TIM图片20181216113409.jpg
我用MATLAB对其进行读取,所得结果并不是矩阵排列,而是一整列数据:
TIM图片20181216113716.png TIM图片20181216113729.png
并且降雨数据明显不正确,不是特别大就是特别小,我不知道问题出在哪里???应该怎么读取这个bin数据呢?????求助大神,有些着急,谢谢大家了!!!!!


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

新浪微博达人勋

 成长值: 32430
发表于 2018-12-16 20:38:19 | 显示全部楼层
2byte integer
写的这么明白,楼主自行思考吧
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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