爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 3215|回复: 1

[分享资料] 对站点进行格点转换,但是出不了图,全是缺测,为什么

[复制链接]

新浪微博达人勋

发表于 2013-4-27 16:06:40 | 显示全部楼层 |阅读模式

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

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

x
parameter(m=66)
real vec(m)
     open(1,file='e:\sx\pr_ens4_evf.grd',form='binary')
     read(1)(vec(i),i=1,m)
     close(1)   
  call stntogrd(vec)
  end
   subroutine stntogrd(h)
   parameter (n=66)
         real lat(N),lon(N),h(n)
         character*8 stid(N)
   open(20,file='e:\sx\lon_lat-deal.txt')
   
!读经纬度
do  k=1,n
      read(20,100)lat(k),lon(k)
   print*,lat(k),lon(k)
enddo
100 format(f5.2,2x,f6.2)
      close(20)
!站号赋值
       do 2 i=1,n
2    stid(i)=char(i)


!cccc  Note: recl=9*4 means: stid*8: 2*4,  rlat,rlon tim,nlev,nflag,x,y:7*4
!cccc   so total recl=9*4
OPEN(9,FILE='e:\sx\66winter.grd',form='binary')
OPEN(10,FILE='e:\sx\66winter.txt')
       TIM=0.0
       NLEV=1
       NFLAG=1
       IREC=1
       DO 40 I=1,n
       WRITE(9) STID(I),LAT(I),LON(I),TIM,NLEV,NFLAG,h(i)
WRITE(10,*) STID(I),LAT(I),LON(I),TIM,NLEV,NFLAG,h(i)
40     continue
!cccc   On end of file write last time group terminator.
       NLEV = 0
       WRITE(9) STID(I-1),LAT(I-1),LON(I-1),TIM,NLEV,NFLAG
    WRITE(10,*) STID(I-1),LAT(I-1),LON(I-1),TIM,NLEV,NFLAG
  Close(9)
  close(10)
       return
end

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

新浪微博达人勋

发表于 2013-6-13 16:22:57 | 显示全部楼层
飘过,我也在学习啊!
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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