爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 8443|回复: 19

[程序设计] 怎样利用nc文件画出气旋轨迹

[复制链接]

新浪微博达人勋

发表于 2015-7-6 14:17:25 | 显示全部楼层 |阅读模式

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

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

x
nc文件中包含了轨迹、周期、振幅、半径等数据但是不会调用,求个老师带新手,万分感谢!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-7-6 14:21:26 | 显示全部楼层
_(:з」∠)_一团浆糊待解救
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-7-6 14:30:11 | 显示全部楼层
温骸 发表于 2015-7-6 14:21
_(:з」∠)_一团浆糊待解救

把数据文件贴出来看看
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-7-6 14:58:09 | 显示全部楼层
MeteoInfo 发表于 2015-7-6 14:30
把数据文件贴出来看看

Format:
           classic
Global Attributes:
           title              = 'Mesoscale Eddies in Altimeter Observations of SSH'
           institution        = 'Oregon State University/CEOAS'
           file_name          = 'tracks.20130125.nc'
           file_creation_time = '2013May06 15:53:30'
           data_process_date  = '20130125'
           data_start_date    = 'Oct 14, 1992'
           data_end_date      = 'Apr  4, 2012'
           authors            = 'Dudley Chelton and Michael Schlax'
           inquiries_to       = 'Eric Beals (beals@coas.oregonstate.edu)'
Dimensions:
           Nobs = 2590938
Variables:
    track
           Size:       2590938x1
           Dimensions: Nobs
           Datatype:   int32
           Attributes:
                       units       = 'ordinal'
                       min         = 1
                       max         = 2.15e+05
                       long_name   = 'track number'
                       description = 'eddy identification number'
    n   
           Size:       2590938x1
           Dimensions: Nobs
           Datatype:   int32
           Attributes:
                       units       = 'ordinal'
                       min         = 4
                       max         = 307
                       long_name   = 'observation number'
                       description = 'observation sequence number (7 day intervals)'
    j1   
           Size:       2590938x1
           Dimensions: Nobs
           Datatype:   int32
           Attributes:
                       units                 = 'days'
                       min                   = 2.45e+06
                       max                   = 2.46e+06
                       long_name             = 'Julian date'
                       description           = 'date of this observation'
                       reference             = 2.45e+06
                       reference_description = 'Julian date at Jan 1, 1992'
    cyc  
           Size:       2590938x1
           Dimensions: Nobs
           Datatype:   int32
           Attributes:
                       units       = 'boolean'
                       min         = -1
                       max         = 1
                       long_name   = 'cyclonic'
                       description = 'cyclonic -1; anti-cyclonic +1'
    lon  
           Size:       2590938x1
           Dimensions: Nobs
           Datatype:   single
           Attributes:
                       units       = 'degrees east'
                       min         = 263
                       max         = 649
                       long_name   = 'longitude'
                       description = 'longitude of this observation'
                       note        = 'To avoid jumps of ~360 deg in eddy tracks when the trajectory wraps around a longitude branch point that might lie in a region of interest, the longitude domain is set to 260E-650E. With this range, the only eddies with trajectories that might be affected will be those passing through the Drake Passage.'
    lat  
           Size:       2590938x1
           Dimensions: Nobs
           Datatype:   single
           Attributes:
                       units       = 'degrees north'
                       min         = -75.9
                       max         = 79.5
                       long_name   = 'latitude'
                       description = 'latitude of this observation (negative for southern hemisphere)'
    A   
           Size:       2590938x1
           Dimensions: Nobs
           Datatype:   single
           Attributes:
                       units       = 'cm'
                       min         = 1
                       max         = 126
                       long_name   = 'amplitude'
                       description = 'magnitude of the height difference between the extremum of SSH within the eddy and the SSH around the contour defining the eddy perimeter'
    L   
           Size:       2590938x1
           Dimensions: Nobs
           Datatype:   single
           Attributes:
                       units       = 'km'
                       min         = 9.43
                       max         = 444
                       long_name   = 'radius scale'
                       description = 'radius of a circle whose area is equal to that enclosed by the contour of maximum circum-average speed'
    U   
           Size:       2590938x1
           Dimensions: Nobs
           Datatype:   single
           Attributes:
                       units       = 'cm/sec'
                       min         = 0.588
                       max         = 564
                       long_name   = 'maximum circum-averaged speed'
                       description = 'average speed of the contour defining the radius scale L'
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-7-6 14:59:36 | 显示全部楼层
MeteoInfo 发表于 2015-7-6 14:30
把数据文件贴出来看看

想先提取某个气旋画出他的运动轨迹,谢谢!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-7-6 15:14:10 | 显示全部楼层
温骸 发表于 2015-7-6 14:59
想先提取某个气旋画出他的运动轨迹,谢谢!

能提供一个示例数据文件吗?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2015-7-6 15:27:02 | 显示全部楼层
MeteoInfo 发表于 2015-7-6 15:14
能提供一个示例数据文件吗?

文件太大不让传,track里面就是像这样的一列数,其他项目里面也是这样的一列

1
1
1
2
2
2
2
3
3
3
3
4
4
4
4
5
5
5
5
6
6
6
6
7
7
7
7
8
8
8
8
9
9
9
9
10
10
10
10
11
11
11
11
12
12
12
12
13
13
13
13
14
14
14
14
15
15
15
15
16
16
16
16
17
17
17
17
18
18
18
18
19
19
19
19
20
20
20
20
21
21
21
21
22
22
22
22
23
23
23
23
24
24
24
24
25
25
25
25
26
26
26
26
27
27
27
27
28
28
28
28
29
29
29
29
30
30
30
30
31
31
31
31
32
32
32
32
33
33
33
33
34
34
34
34
35
35
35
35
36
36
36
36
37
37
37
37
38
38
38
38
39
39
39
39
40
40
40
40
41
41
41
41
42
42
42
42
43
43
43
43
44
44
44
44
45
45
45
45
46
46
46
46
47
47
47
47
48
48
48
48
49
49
49
49
50
50
50
50
51
51
51
51
52
52
52
52
53
53
53
53
54
54
54
54
55
55
55
55
56
56
56
56
57
57
57
57
58
58
58
58
59
59
59
59
60
60
60
60
61
61
61
61
62
62
62
62
63
63
63
63
64
64
64
64
65
65
65
65
66
66
66
66
67


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

新浪微博达人勋

 楼主| 发表于 2015-7-6 15:27:42 | 显示全部楼层
MeteoInfo 发表于 2015-7-6 15:14
能提供一个示例数据文件吗?

要不您给我个邮箱我把nc文件发过去?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-7-6 15:47:57 | 显示全部楼层
温骸 发表于 2015-7-6 15:27
要不您给我个邮箱我把nc文件发过去?

你可以在百度云网盘之类的云盘上共享。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-7-6 15:49:15 | 显示全部楼层
请问楼主哪里下的数据?
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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