爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 6953|回复: 10

[分享资料] JAR-25 读取程序

[复制链接]
发表于 2013-11-18 09:18:50 | 显示全部楼层 |阅读模式

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

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

x
  1. ctl说明文件:

  2. dset  G:\jra25\%y4\%m2\fcst_phy2m.%y4%m2%d2%h2

  3. index G:\jra25\fcst_phy2m.1979_2004.idx

  4. undef 9.999E+20

  5. title fcst_phy2m

  6. dtype grib 255

  7. options yrev template

  8. xdef 320 linear 0.0 1.125

  9. ydef 160 levels

  10. -89.142 -88.029 -86.911 -85.791 -84.670 -83.549 -82.428 -81.307 -80.185 -79.064

  11. -77.943 -76.821 -75.700 -74.578 -73.457 -72.336 -71.214 -70.093 -68.971 -67.850

  12. -66.728 -65.607 -64.485 -63.364 -62.242 -61.121 -60.000 -58.878 -57.757 -56.635

  13. -55.514 -54.392 -53.271 -52.149 -51.028 -49.906 -48.785 -47.663 -46.542 -45.420

  14. -44.299 -43.177 -42.056 -40.934 -39.813 -38.691 -37.570 -36.448 -35.327 -34.205

  15. -33.084 -31.962 -30.841 -29.719 -28.598 -27.476 -26.355 -25.234 -24.112 -22.991

  16. -21.869 -20.748 -19.626 -18.505 -17.383 -16.262 -15.140 -14.019 -12.897 -11.776

  17. -10.654  -9.533  -8.411  -7.290  -6.168  -5.047  -3.925  -2.804  -1.682  -0.561

  18.   0.561   1.682   2.804   3.925   5.047   6.168   7.290   8.411   9.533  10.654

  19. 11.776  12.897  14.019  15.140  16.262  17.383  18.505  19.626  20.748  21.869

  20. 22.991  24.112  25.234  26.355  27.476  28.598  29.719  30.841  31.962  33.084

  21. 34.205  35.327  36.448  37.570  38.691  39.813  40.934  42.056  43.177  44.299

  22. 45.420  46.542  47.663  48.785  49.906  51.028  52.149  53.271  54.392  55.514

  23. 56.635  57.757  58.878  60.000  61.121  62.242  63.364  64.485  65.607  66.728

  24. 67.850  68.971  70.093  71.214  72.336  73.457  74.578  75.700  76.821  77.943

  25. 79.064  80.185  81.307  82.428  83.549  84.670  85.791  86.911  88.029  89.142

  26. tdef 37988 linear 00Z01jan1979  6hr

  27. zdef 1 linear 1 1

  28. * Level suffix abbreviation: sfc=Surface; col=Total Column; toa=Top of atmosphere

  29. * Last Column Abbreviation: AC=Accumulation; MN=Time-Mean; SNP=Snap-shot (instantaneous)

  30. vars 60

  31. CPRATsfc 0 63,1,0   ** 6-hourly convective precipitation rate       [mm/day] AC

  32. CSDLFsfc 0 163,1,0  ** Clear sky downward long wave flux at surface  [W/m^2] MN

  33. CSDSFsfc 0 161,1,0  ** Clear sky downward solar flux at surface      [W/m^2] MN

  34. CSULFtoa 0 162,8,0  ** Clear sky upward long wave flux at top        [W/m^2] MN

  35. CSUSFsfc 0 160,1,0  ** Clear sky upward solar flux at surface        [W/m^2] MN

  36. CSUSFtoa 0 160,8,0  ** Clear sky upward solar flux at top            [W/m^2] MN

  37. CWATcol  0 76,1,0   ** Total cloud water                            [kg/m^2] AC

  38. DISTsfc  0 8,1,0    ** Model surface height                              [m] SNP

  39. DLWRFsfc 0 205,1,0  ** Downward long wave radiation flux at surface  [W/m^2] MN

  40. DSWRFsfc 0 204,1,0  ** Downward solar radiation flux at surface      [W/m^2] MN

  41. DSWRFtoa 0 204,8,0  ** Downward solar radiation flux at top          [W/m^2] MN

  42. FGLUsfc  0 147,1,0  ** Zonal momemtum flux by long gravity wave      [N/m^2] MN

  43. FGLVsfc  0 148,1,0  ** Meridional momemtum flux by long gravity wave [N/m^2] MN

  44. FGSUsfc  0 159,1,0  ** Zonal momemtum flux by short gravity wave     [N/m^2] MN

  45. FGSVsfc  0 154,1,0  ** Meridional momemtum flux by short gravity wave [N/m^2] MN

  46. FRQCsfc  0 169,1,0  ** Frequency of cumulus precipitation                [%]

  47. FRQPsfc  0 168,1,0  ** Frequency of precipitation                        [%]

  48. HCDC     0 75,1,0   ** High level cloud cover                            [%] MN

  49. ICECsfc  0 91,1,0   ** Ice concentration (ice=1; no ice=0)             [1/0] MN

  50. LCDC     0 73,1,0   ** Low level cloud cover                             [%] MN

  51. LHTFLsfc 0 121,1,0  ** Latent heat flux                              [W/m^2] MN

  52. MCDC     0 74,1,0   ** Mid level cloud cover                             [%] MN

  53. LPRATsfc 0 62,1,0   ** 6-hourly large-scale precipitation rate      [mm/day] AC

  54. PRESsfc  0 1,1,0    ** Surface pressure                                 [Pa] SNP

  55. PRMSLmsl 0 2,102,0  ** Mean pressure reduced to MSL                     [Pa] MN

  56. PRMXsfc  0 220,1,0  ** Maximum hourly precipitaion                 [mm/hour]

  57. PWATcol  0 54,1,0   ** Precipitable water                           [kg/m^2] SNP

  58. SPFHMsfc 0 139,1,0  ** Surface specific humidity                     [kg/kg] MN

  59. RHsfc    0 52,1,0   ** Surface relative humidity                         [%] SNP

  60. SFCRsfc  0 83,1,0   ** Surface roughness                                 [m] SNP

  61. SHTFLsfc 0 122,1,0  ** Sensible heat flux                            [W/m^2] MN

  62. SPFHsfc  0 51,1,0   ** Specific humidity                             [kg/kg] SNP

  63. SPFHhbl  0 51,109,1 ** Specific humidity at the lowest model level   [kg/kg] SNP

  64. SRWEQsfc 0 64,1,0   ** 6-hourly snowfall rate water equivalent    [kg/m^2/s] AC

  65. TCDCcol  0 71,1,0   ** Total cloud cover                                 [%] MN

  66. TMAXsfc  0 15,1,0   ** Surface 2m air maximum temperature                [K]

  67. TMINsfc  0 16,1,0   ** Surface 2m air minimum temperature                [K]

  68. TMPsfc   0 11,1,0   ** Surface 2m air temperature                        [K] SNP

  69. TMPhbl   0 11,109,1 ** Temperature at the lowest model level             [K] SNP

  70. TMPMsfc  0 138,1,0  ** Surface 2m air temperature                        [K] MN

  71. TTHMcol  0 218,1,0  ** Column total of diabatic heat                 [W/m^2] MN

  72. UFLXsfc  0 124,1,0  ** Zonal momentum flux by friction               [N/m^2] MN

  73. UGRDsfc  0 33,1,0   ** Surface 10m zonal wind                          [m/s] SNP

  74. UGRDhbl  0 33,109,1 ** Zonal wind  at lowest model level               [m/s] SNP

  75. ULWRFsfc 0 212,1,0  ** Upward long wave radiation flux at surface    [W/m^2] MN

  76. ULWRFtoa 0 212,8,0  ** Upward long wave radiation flux at top        [W/m^2] MN

  77. UGRDMsfc 0 136,1,0  ** Surface 10m zonal wind                          [m/s] MN

  78. USWRFsfc 0 211,1,0  ** Upward solar radiation at surface             [W/m^2] MN

  79. USWRFtoa 0 211,8,0  ** Upward solar radiation at top                 [W/m^2] MN

  80. UWVcol   0 157,1,0  ** Column total of zonal water vapor flux       [kg/m/s] MN

  81. VFLXsfc  0 125,1,0  ** Meridional momentum flux by friction          [N/m^2] MN

  82. VGRDsfc  0 34,1,0   ** Surface 10m meridional wind                     [m/s] SNP

  83. VGRDhbl  0 34,109,1 ** Meridional wind at lowest model level           [m/s] SNP

  84. VGRDMsfc 0 137,1,0  ** Surface 10m meridional wind                     [m/s] MN

  85. VTUcol   0 200,1,0  ** Column total of TU                         [K*Pa*m/s] MN

  86. VTVcol   0 201,1,0  ** Column total of TV                         [K*Pa*m/s] MN

  87. VWVcol   0 152,1,0  ** Column total of meridional water vapor flux  [Kg/m/s] MN

  88. WSMXsfc  0 219,1,0  ** Surface 10m maximum surface wind                [m/s]

  89. WSMXhbl  0 219,109,1 ** Maximum surface wind at lowest model level     [m/s]

  90. WTMPsfc  0 80,1,0   ** SST and sea ice surface temperature               [K] SNP

  91. ENDVARS

  92. * WTMPsfc includes reversed weighted-mean ground and canopy tempereture

  93. * over land area. Please use GrADS commands like;

  94. * d abs(WTMPsfc)             ---> Effective skin temperature

  95. * d maskout(WTMPsfc,WTMPsfc) ---> SST and sea ice surface temperature


  96. 批量读取出图程序:

  97. 'reinit'

  98. 'open f:\fcst_phy2m.1979_2004.ctl'

  99. year=1979

  100. **设定开始的年

  101. month=1

  102. day=1

  103. hour=00

  104. t=1

  105. while(year<2011)

  106. while(month<13)

  107. while(day<32)

  108. while(hour<24)

  109. if(month<10)

  110.     if(day<10)

  111.         if(hour<10)

  112. ***  设定输出的字符,输出的格式是4位年+2位月

  113. aaa=year%0%month%0%day%0%hour

  114. ***如果月小于10,则在月前加0,保证月是两位

  115.         else

  116.           aaa=year%0%month%0%day%hour

  117.         endif

  118.     else

  119.      aaa=year%0%month%day%hour

  120.     endif

  121. else

  122. aaa=year%month%day%hour

  123. endif




  124. 'set t 't   




  125. 'set gxout shaded'

  126. 'set mpdset cnworld'

  127. 'set grads off'




  128. **30-36:  red (rr%: 0, 600%)

  129. *'set rgb    30 255 215 225'

  130. *'set rgb    31 255 190 190'

  131. *'set rgb    32 255 160 150'

  132. *'set rgb    33 255 130 115'

  133. *'set rgb     34 255 100 85'

  134. *'set rgb      35 255 70 50'

  135. *'set rgb       36 255 40 0'

  136. *'set rgb      37 161 1   1'

  137. *'set rgb      38 121  1  1'

  138. *'set rgb      39 80   1  1'

  139. **40-46:green (rr%: 0, 600%)

  140. *'set rgb 40 225 255 225'

  141. *'set rgb 41 190 255 190'

  142. *'set rgb 42 150 255 150'

  143. *'set rgb 43 115 255 115'

  144. *'set rgb 44 75  255 75 '

  145. *'set rgb 45 45  255 45 '

  146. *'set rgb 46 0   255   0'

  147. **50-56:  blue (rr%: 0,600%)

  148. *'set rgb   50  200 254 254'

  149. *'set rgb   51  178 251 254'

  150. *'set rgb   52  155 242 254'

  151. *'set rgb   53  130 230 254'

  152. *'set rgb   54  108 211 254'

  153. *'set rgb    55  90 191 254'

  154. *'set rgb   56   70 166 254'

  155. *'set rgb   57   42 136 254'

  156. *'set rgb   58   24 105 254'

  157. *'set rgb     59   0 64 254'

  158. **40-46: yello (rr%: 0,600%)

  159. *'set rgb   60  254 254 230'

  160. *'set rgb   61  254 254 205'

  161. *'set rgb   62  254 254 180'

  162. *'set rgb   63  254 253 155'

  163. *'set rgb   64  254 253 130'

  164. *'set rgb   65  254 250 105'

  165. *'set rgb   66  254 240  80'

  166. *'set rgb   67  254 238  50'

  167. **50-56:purple (rr%: 0, 600%)  

  168. *'set rgb 70 225 225 255'

  169. *'set rgb 71 190 190 255'

  170. *'set rgb 72 150 150 255'

  171. *'set rgb 73 115 115 255'

  172. *'set rgb 74 75 75 255'

  173. *'set rgb 75 45 45 255'

  174. *'set rgb 76 0 0 255'




  175. *'set clevs 0.001 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0'

  176. *'set ccols 0 71 51 54 55 42 45 62 64 66 33 35'

  177. 'set csmooth on'

  178. 'd TMAXsfc'

  179. 'draw title JAR_'%aaa%''

  180. 'cbarn.gs '

  181. 'enable print f:\1\JAR_'%aaa%'.gmf'

  182. 'printim  f:\1\JAR_'%aaa%'.png x1600 y1200 white'

  183. 'print'

  184. 'disable print'

  185. 'c'




  186. t=t+6

  187. hour=hour+6

  188. endwhile

  189. hour=0

  190. day=day+1

  191. endwhile




  192. day=1

  193. month=month+1

  194. endwhile




  195. month=1

  196. year=year+1

  197. endwhile



  198. 'reinit'
复制代码
以上程序仅供抛砖引玉。以前用到的时候写的,水平不是很高,请大家指正

评分

参与人数 2金钱 +18 贡献 +4 收起 理由
river + 6 + 1 赞一个!
mofangbao + 12 + 3

查看全部评分

密码修改失败请联系微信:mofangbao
发表于 2013-11-18 10:01:49 | 显示全部楼层
先收藏,谢谢!
密码修改失败请联系微信:mofangbao
发表于 2013-11-18 10:32:32 | 显示全部楼层
谢谢版主,学习了
密码修改失败请联系微信:mofangbao
发表于 2013-11-21 08:54:19 | 显示全部楼层
是JRA-25吧?谢谢分享
密码修改失败请联系微信:mofangbao
发表于 2014-2-21 15:29:55 | 显示全部楼层
请问楼主fcst_phy2m的意思是预报场吗,那还是再分析资料吗?
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2014-2-21 18:49:26 | 显示全部楼层
密码修改失败请联系微信:mofangbao
发表于 2014-4-16 11:20:29 | 显示全部楼层
同求anl和fcst的区别
密码修改失败请联系微信:mofangbao
发表于 2015-10-30 09:36:40 | 显示全部楼层
楼主能否说说下载JRA的流程?谢谢了
密码修改失败请联系微信:mofangbao
发表于 2016-11-28 16:33:07 | 显示全部楼层
dannyjoyride 发表于 2014-4-16 11:20
同求anl和fcst的区别

Analysis & forecast
密码修改失败请联系微信:mofangbao
发表于 2017-6-21 18:50:19 | 显示全部楼层
请问这个资料是.grib还是.grd呀
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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