MODIS Ocean Level 3 Data读取程序.doc

  1. 1、本文档共33页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
MODIS Ocean Level 3 Data读取程序

一、MODIS Ocean Level 3 Binned Data读取程序 IDL语言程序 从HDF文件中读取SDS Function Get_SDS, file_name, SDS_Name If (N_Elements( file_name ) eq 0) then Message, Must specify filename. Id = HDF_SD_Start( file_name, /READ ) Index = HDF_SD_NameToIndex( Id, SDS_Name ) SDS = HDF_SD_Select( Id, Index ) HDF_SD_GetData, SDS, Data HDF_SD_End, Id Return, Data End 从一个byte中提取1个或多个bit的资料 ; The IDL function, Bit.pro, extracts bits from an array of byte values. ; ; i = array of byte values ; j = starting bit position ; k = number of bits to be extracted ; ; Kevin Turpie, SAIC GSO Function Bit, i, j, k If (N_Elements( k ) eq 0) then k = 1 k = Fix( k ) If (N_Elements( j ) eq 0) then j = 1 j = Fix( j ) Return, IShft ( IShft ( Long (i), 32-j-k+1 ), -(31-k+1) ) End 将二进制资料转换成经纬度坐标 ; This code converts bin number to (lat,lon) ; It is written in both C and IDL. ; The IDL routine, binloc.pro, calls a C handler, binloc.c, which in turn ; calls the bin2ll routine from a shareable library, created from bin_csub.c ; (originally from SeaDAS). Compilation instructions in the binloc.c file ; work for SGI. binloc.pro references a .so library file created using those ; instructions. The user must be careful to correctly specify the path and ; name of this library file for their system in binloc.pro. ;--------------------------- IDL Interface: ------------------------------- ;-------------------------------------------------------------------------- ; ; BinLoc ; ; This IDL procedure takes an array of L3 bin numbers (b) and returns the ; corresponding latitude and longitude values. ; ; ARGUMENTS: ; b = corresponding array of bin numbers ; Lat = lat/lon grid containing sum of values ; Lon = lat/lon grid containing number of values ; ; KEYWORDS: ; NROWS = number of rows in input L3 bin grid. ; default is 4320 for MODIS. for SeaWiFS, set to 2160. ; ; AUTHOR: Kevin Turpie, 08 May 2000 ; SAIC General Sciences Corp

文档评论(0)

xcs88858 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档