请选择 进入手机版 | 继续访问电脑版
爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
楼主: 天目神眉

修改USGS静态地形数据方法探讨

  [复制链接]

新浪微博达人勋

发表于 2012-12-19 14:41:55 | 显示全部楼层

回帖奖励 +10 金钱

辛苦楼主了 正好用到唉 不过还是有点难看懂
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2012-12-19 14:44:21 | 显示全部楼层
如何改地面类型呢 我现在要把某一地区的地面全部换成snow and ice   求助
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-7-20 14:09:35 | 显示全部楼层
可以直接用read_wrf_nc修改,wrf-manual里有使用说明,不过还是羡慕直接写程序的牛人!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2013-7-21 18:59:24 | 显示全部楼层
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-12-19 11:41:00 | 显示全部楼层
program geogrid_clc
implicit none

integer :: i,j
integer :: isigned, endian, wordsize
integer :: nx, ny, nz
real :: scalefactor
real*8 :: xllcorner, yllcorner, cellsize, missvalue
character :: head12
real, allocatable :: rarray(:,:), iarray(:,:)

isigned = 1
endian = 0
wordsize = 2
scalefactor = 1.0
nz = 1


! read in the ascii new landuse data
open (10, file = 'file.asc')

!read in the header
read(10,*) head12, nx
read(10,*) head12, ny
read(10,*) head12, xllcorner
read(10,*) head12, yllcorner
read(10,*) head12, cellsize
read(10,*) head12, missvalue

allocate(rarray(nx,ny))
allocate(iarray(nx,ny))

!read in the data
do j = 1,ny
read(10,*) iarray(:,j)
end do

! reverse the data so that it begins at the lower-left corner
do j = 1,ny
rarray(:,j) = iarray(:,ny-(j-1))
enddo

!set the missing values
do j = 1, ny
do i = 1, nx
if ( rarray(i,j) < 0 ) then
rarray(i,j) = -99 ! set negative terrain to be zero since those are near coastal or river
banks
end if
end do
end do


call write_geogrid(rarray, nx, ny, nz, isigned, endian, scalefactor, wordsize)

end program
到这一步是怎么运行呢,把write_geogrid.c这个程序接在end program后面就好了吗,还是怎么弄得,程序write_geogrid.c里看不到输出到哪个目录,请指导,最好给我发一个脚本就好了!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-2-10 17:23:20 | 显示全部楼层
非常感谢
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-3-23 19:14:06 | 显示全部楼层
随缘 发表于 2012-4-9 10:54
改地形有实际意义吗?好多人在质疑改地形好假,改变地形的那段高度的气压怎么补偿?

最近模拟一次暴雨过程,用了多个微物理方案,单参数和双参数的,报的过程降水结果,个人认为全部脱靶,
问题在哪里?
直觉是WRF模式对地形考虑的不到位.

适当的修改地形高度,是不是就不那么假了呢?也就不用考虑要素补偿问题了呢?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-3-24 10:26:15 | 显示全部楼层
本帖最后由 sywyx 于 2014-3-24 10:27 编辑

直接修改USGS静态地形数据,怕是要有后遗症。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2014-4-18 16:46:43 | 显示全部楼层
看到楼主此文真的如获至宝,但是看完又没看懂,请教楼主一下:
其实我是学遥感的,不是做数值预报,但是要为别人更新一个区域的静态数据也就是landuse,目前我得到两个文件一个是土地利用现状还有dem文件,调用什么模块可以把这二者写成可输入的二进制文件?write_geogrid.c对无编程基础的人来说可以胜任吗?
ps:我还在尝试安装WRF的阶段
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-1-11 10:23:13 | 显示全部楼层
sywyx 发表于 2014-3-23 19:14
最近模拟一次暴雨过程,用了多个微物理方案,单参数和双参数的,报的过程降水结果,个人认为全部脱靶,
问题 ...

你是觉得原有的地形高度太低了?应该增大地形高度?这样结果如何?
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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