声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1315|回复: 2

[编程技巧] 如何从 txt 文件中读入和提取感兴趣的数据

[复制链接]
发表于 2008-5-12 16:03 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
请问各位大侠,我有一数据如下所示,请问如何用matlab读入并取出其中 95-122E,0-25N的数据 ? 谢谢:loveliness:


Data are stored in ASCII

All values are integers
Temperatures are stored as degrees C * 100
100% sea-ice-covered gridboxes are flagged as -1000
Land squares are set to -32768

The day, month and year are stored at the start of each month. The day simply tells
you on which day the month starts.

Data Array (360x180)
Item (  1,  1) stores the value for the 1-deg-area centred at 179.5W and 89.5N
Item (360,180) stores the value for the 1-deg-area centred at 179.5E and 89.5S

          ----- ----- -----
         |     |     |     |
         | DAY | MON | YR  |
         |_____|_____|_____|____________________________
     90N |(1,1)                                         |
         |                                              |
         |                                              |
         |                                              |
         |                                              |
         |(1,90)                                        |
     Equ |                                              |
         |(1,91)                                        |
         |                                              |
         |                                              |
         |                                              |
         |                                              |
     90S |(1,180)______________________________(360,180)|
          180W                 0                    180E

[ 本帖最后由 eight 于 2008-5-12 19:40 编辑 ]
回复
分享到:

使用道具 举报

发表于 2008-5-12 16:18 | 显示全部楼层
原帖由 hzxiaofen 于 2008-5-12 16:03 发表
请问各位大侠,我有一数据如下所示,请问如何用matlab读入并取出其中 95-122E,0-25N的数据 ? 谢谢:loveliness:


Data are stored in ASCII

All values are integers
Temperatures are stored as degrees C ...


请搜索版面的精华帖或浏览置顶帖,里面有您想要的
发表于 2008-5-12 19:39 | 显示全部楼层
原帖由 hzxiaofen 于 2008-5-12 16:03 发表
请问各位大侠,我有一数据如下所示,请问如何用matlab读入并取出其中 95-122E,0-25N的数据 ? 谢谢:loveliness:


Data are stored in ASCII

All values are integers
Temperatures are stored as degrees C ...
不知所云,我都没看见 95-122E 这些数据
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-9-23 11:27 , Processed in 0.066699 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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