爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
楼主: sywyx

UBUNTU12.04+WRFV3.5.1安装作业,献给在WRF革命过程中被虐和自虐的亲们

  [复制链接]

新浪微博达人勋

发表于 2013-12-2 13:53:26 | 显示全部楼层
楼主,要不要生命c++编译器为g++呢?怎么帖子里面都没有说c++的事情呢?是不是用不到c++?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-12-2 13:54:32 | 显示全部楼层

老天真是捉弄我,刚回复完又装成了。。难道要我装n遍就会成功一次?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-12-2 13:56:20 | 显示全部楼层
destroyer 发表于 2013-12-2 13:51
为什么昨天晚上装netcdf一点问题都木有,今天起来打死也装不上了。

老天真是捉弄我,刚回复完又装成了。。难道要我装n遍就会成功一次?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-12-2 16:44:34 | 显示全部楼层
请问楼主,拟在./configure WPS的时候有没有遇到Your Fortran + NETCDF did not run successfully.么?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2013-12-4 09:13:16 | 显示全部楼层
用 ldd 察看软件依赖的库,如:
ldd ungrib.exe
        linux-gate.so.1 =>  (0xb77da000)
        libpng16.so.16 => /usr/local/jasper/lib/libpng16.so.16 (0xb77a1000)
        libgfortran.so.3 => /usr/lib/i386-linux-gnu/libgfortran.so.3 (0xb7690000)
        libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7663000)
        libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb7645000)
        libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb749b000)
        libz.so.1 => /usr/local/jasper/lib/libz.so.1 (0xb7483000)
        libquadmath.so.0 => /usr/lib/i386-linux-gnu/libquadmath.so.0 (0xb740f000)
        /lib/ld-linux.so.2 (0xb77db000)

假设缺:libpng16.so.16
locate  libpng16
假设libpng16.so.16在/usr/local/jasper/lib,则:
export LD_LIBRARY_PAH=/usr/local/jasper/lib


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

新浪微博达人勋

 楼主| 发表于 2013-12-4 09:15:40 | 显示全部楼层
安装GEOG,直接解压就可以:
tar zxvf geog_v3.4.tar.gz
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2013-12-4 09:43:18 | 显示全部楼层
本帖最后由 sywyx 于 2013-12-23 22:44 编辑

WRF(三层嵌套)试运行:
修改namelist.wps:
&share
wrf_core = 'ARW',
max_dom = 3,
start_date = '2013-08-16_00:00:00','2013-08-16_00:00:00','2013-08-16_00:00:00',
end_date   = '2013-08-16_12:00:00','2013-08-16_12:00:00','2013-08-16_12:00:00',
interval_seconds = 21600
io_form_geogrid = 2,
/
&geogrid
parent_id         =   1,  1,    2,
parent_grid_ratio =   1,  3,    3,
i_parent_start    =   1, 27,   30,
j_parent_start    =   1, 11,   22,
e_we              =  74, 124, 232,
e_sn              =  61, 118, 220,
geog_data_res     = '10m','2m','30s',
dx = 30000,
dy = 30000,
map_proj = 'lambert',
ref_lat   =  42.00,
ref_lon   = 118.00,
truelat1  =  30.0,
truelat2  =  60.0,
stand_lon = 118.0,
geog_data_path = '/home/wrf/geog'
/

&ungrib
out_format = 'WPS',
prefix = 'FILE',
/

&metgrid
fg_name = 'FILE'
io_form_metgrid = 2,
/
以上namelist.wps完整文件

./geogrid.exe
ln -s /home/wrf/WPS/ungrib/Variable_Tables/Vtable.GFS Vtable
./link_grib.csh /home/wrf/fnl_wyx/fnl_20130816_*
./ungrib.exe
./metgrid.exe

以上WPS处理过程!

cd .../WRFV3/test/em_real
修改namelist.input:
&time_control
run_days                            = 0,
run_hours                           = 12,
run_minutes                         = 0,
run_seconds                         = 0,
start_year                          = 2013, 2013, 2013,
start_month                         = 08,   08,   08,
start_day                           = 16,   16,   16,
start_hour                          = 00,   00,   00,
start_minute                        = 00,   00,   00,
start_second                        = 00,   00,   00,
end_year                            = 2013, 2013, 2013,
end_month                           = 08,   08,   08,
end_day                             = 16,   16,   16,
end_hour                            = 12,   12,   12,
end_minute                          = 00,   00,   00,
end_second                          = 00,   00,   00,
interval_seconds                    = 21600
input_from_file                     = .true.,.true.,.true.,
history_interval                    = 180,  60,   60,
frames_per_outfile                  = 1000, 1000, 1000,
restart                             = .false.,
restart_interval                    = 5000,
io_form_history                     = 2
io_form_restart                     = 2
io_form_input                       = 2
io_form_boundary                    = 2
debug_level                         = 0
/

&domains
time_step                           = 180,
time_step_fract_num                 = 0,
time_step_fract_den                 = 1,
max_dom                             = 3,
e_we                                = 74,    124,  232,
e_sn                                = 61,    118,  220,
e_vert                              = 30,    30,    30,
p_top_requested                     = 5000,
num_metgrid_levels                  = 27,
num_metgrid_soil_levels             = 4,
dx                                  = 30000, 10000,  3333.33,
dy                                  = 30000, 10000,  3333.33,
grid_id                             = 1,     2,     3,
parent_id                           = 0,     1,     2,
i_parent_start                      = 1,     27,    30,
j_parent_start                      = 1,     11,    22,
parent_grid_ratio                   = 1,     3,     3,
parent_time_step_ratio              = 1,     3,     3,
feedback                            = 1,
smooth_option                       = 0
/

&physics
mp_physics                          = 3,     3,     3,
ra_lw_physics                       = 1,     1,     1,
ra_sw_physics                       = 1,     1,     1,
radt                                = 30,    30,    30,
sf_sfclay_physics                   = 1,     1,     1,
sf_surface_physics                  = 2,     2,     2,
bl_pbl_physics                      = 1,     1,     1,
bldt                                = 0,     0,     0,
cu_physics                          = 1,     1,     0,
cudt                                = 5,     5,     5,
isfflx                              = 1,
ifsnow                              = 1,
icloud                              = 1,
surface_input_source                = 1,
num_soil_layers                     = 4,
sf_urban_physics                    = 0,     0,     0,
/

&fdda
/

&dynamics
w_damping                           = 0,
diff_opt                            = 1,
km_opt                              = 4,
diff_6th_opt                        = 0,      0,      0,
diff_6th_factor                     = 0.12,   0.12,   0.12,
base_temp                           = 290.
damp_opt                            = 0,
zdamp                               = 5000.,  5000.,  5000.,
dampcoef                            = 0.2,    0.2,    0.2
khdif                               = 0,      0,      0,
kvdif                               = 0,      0,      0,
non_hydrostatic                     = .true., .true., .true.,
moist_adv_opt                       = 1,      1,      1,     
scalar_adv_opt                      = 1,      1,      1,     
/

&bdy_control
spec_bdy_width                      = 5,
spec_zone                           = 1,
relax_zone                          = 4,
specified                           = .true., .false.,.false.,
nested                              = .false., .true., .true.,
/

&grib2
/

&namelist_quilt
nio_tasks_per_group = 0,
nio_groups = 1,
/
以上namelist.input完整文件

ln -s /home/wrf/WPS/met_em.d0* ./
./real.exe
./wrf.exe

12 小时 30分后形成:

-rw-r--r-- 1 root root   45160832 12月  4 00:05 wrfout_d01_2013-08-16_00:00:00
-rw-r--r-- 1 root root  385124632 12月  4 00:05 wrfout_d02_2013-08-16_00:00:00
-rw-r--r-- 1 root root 1353001672 12月  4 00:05 wrfout_d03_2013-08-16_00:00:00

以上WRF处理过程!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2013-12-4 11:26:49 | 显示全部楼层
修改namelist.ARWpost:
&datetime
start_date = '2013-08-16_00:00:00',
end_date   = '2013-08-16_12:00:00',
interval_seconds = 3600,
tacc = 0,
debug_level = 0,
/

&io
input_root_name = '/home/wrf/fnl_wyx/wrfout_d03_2013-08-16_00:00:00'
output_root_name = '/home/wrf/grads_wyx/grads_wyx'
plot = 'all_list'
fields = 'height,pressure,tk,tc'
mercator_defs = .true.
/
split_output = .true.
frames_per_outfile = 2

plot = 'all'
plot = 'list'
plot = 'all_list'
! Below is a list of all available diagnostics
fields = 'height,geopt,theta,tc,tk,td,td2,rh,rh2,umet,vmet,pressure,u10m,v10m,wdir,wspd,wd10,ws10,slp,mcape,mcin,lcl,lfc,cape,cin,dbz,max_dbz,clfr'

&interp
interp_method = 1,
interp_levels = 1000.,950.,900.,850.,800.,750.,700.,650.,600.,550.,500.,450.,400.,350.,300.,250.,200.,150.,100.,
/
extrapolate = .true.

interp_method = 1,     ! 0 is model levels, -1 is nice height levels, 1 is user specified pressure/height

interp_levels = 1000.,950.,900.,850.,800.,750.,700.,650.,600.,550.,500.,450.,400.,350.,300.,250.,200.,150.,100.,
interp_levels = 0.25, 0.50, 0.75, 1.00, 2.00, 3.00, 4.00, 5.00, 6.00, 7.00, 8.00, 9.00, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0,
以上namelist.ARWpost完整文件

./ARWpost.exe

形成的grads_wyx.ctl文件如下:

dset ^grads_wyx.dat
options  byteswapped
undef 1.e30
title  OUTPUT FROM WRF V3.5.1 MODEL
pdef  231 219 lcc  41.674  122.481  116.000  110.000  60.00000  30.00000  118.00000   3333.330   3333.330
xdef  691 linear  117.54185   0.01501500
ydef  494 linear   37.87466   0.01501500
zdef   19 levels  
1000.00000
950.00000
900.00000
850.00000
800.00000
750.00000
700.00000
650.00000
600.00000
550.00000
500.00000
450.00000
400.00000
350.00000
300.00000
250.00000
200.00000
150.00000
100.00000
tdef   13 linear 00Z16AUG2013      60MN      
VARS  101
XLAT           1  0  LATITUDE, SOUTH IS NEGATIVE (degree_north)
XLONG          1  0  LONGITUDE, WEST IS NEGATIVE (degree_east)
LU_INDEX       1  0  LAND USE CATEGORY (-)
VAR_SSO        1  0  variance of subgrid-scale orography (m2)
LAP_HGT        1  0  Laplacian of orography (m)
U             19  0  x-wind component (m s-1)
V             19  0  y-wind component (m s-1)
W             19  0  z-wind component (m s-1)
PH            19  0  perturbation geopotential (m2 s-2)
PHB           19  0  base-state geopotential (m2 s-2)
T             19  0  perturbation potential temperature (theta-t0) (K)
MU             1  0  perturbation dry air mass in column (Pa)
MUB            1  0  base state dry air mass in column (Pa)
NEST_POS       1  0  - (-)
P             19  0  perturbation pressure (Pa)
PB            19  0  BASE STATE PRESSURE (Pa)
P_HYD         19  0  hydrostatic pressure (Pa)
Q2             1  0  QV at 2 M (kg kg-1)
T2             1  0  TEMP at 2 M (K)
TH2            1  0  POT TEMP at 2 M (K)
PSFC           1  0  SFC PRESSURE (Pa)
U10            1  0  U at 10 M (m s-1)
V10            1  0  V at 10 M (m s-1)
QVAPOR        19  0  Water vapor mixing ratio (kg kg-1)
QCLOUD        19  0  Cloud water mixing ratio (kg kg-1)
QRAIN         19  0  Rain water mixing ratio (kg kg-1)
SHDMAX         1  0  ANNUAL MAX VEG FRACTION (-)
SHDMIN         1  0  ANNUAL MIN VEG FRACTION (-)
SNOALB         1  0  ANNUAL MAX SNOW ALBEDO IN FRACTION (-)
TSLB           4  0  SOIL TEMPERATURE (K)
SMOIS          4  0  SOIL MOISTURE (m3 m-3)
SH2O           4  0  SOIL LIQUID WATER (m3 m-3)
SMCREL         4  0  RELATIVE SOIL MOISTURE (-)
SEAICE         1  0  SEA ICE FLAG (-)
XICEM          1  0  SEA ICE FLAG (PREVIOUS STEP) (-)
SFROFF         1  0  SURFACE RUNOFF (mm)
UDROFF         1  0  UNDERGROUND RUNOFF (mm)
IVGTYP         1  0  DOMINANT VEGETATION CATEGORY (-)
ISLTYP         1  0  DOMINANT SOIL CATEGORY (-)
VEGFRA         1  0  VEGETATION FRACTION (-)
GRDFLX         1  0  GROUND HEAT FLUX (W m-2)
ACGRDFLX       1  0  ACCUMULATED GROUND HEAT FLUX (J m-2)
ACSNOM         1  0  ACCUMULATED MELTED SNOW (kg m-2)
SNOW           1  0  SNOW WATER EQUIVALENT (kg m-2)
SNOWH          1  0  PHYSICAL SNOW DEPTH (m)
CANWAT         1  0  CANOPY WATER (kg m-2)
SSTSK          1  0  SKIN SEA SURFACE TEMPERATURE (K)
COSZEN         1  0  COS of SOLAR ZENITH ANGLE (dimensionless)
LAI            1  0  Leaf area index (area/area)
VAR            1  0  OROGRAPHIC VARIANCE (-)
MAPFAC_M       1  0  Map scale factor on mass grid (-)
MAPFAC_MX      1  0  Map scale factor on mass grid, x direction (-)
MAPFAC_MY      1  0  Map scale factor on mass grid, y direction (-)
MF_VX_INV      1  0  Inverse map scale factor on v-grid, x direction (-)
F              1  0  Coriolis sine latitude term (s-1)
E              1  0  Coriolis cosine latitude term (s-1)
SINALPHA       1  0  Local sine of map rotation (-)
COSALPHA       1  0  Local cosine of map rotation (-)
HGT            1  0  Terrain Height (m)
TSK            1  0  SURFACE SKIN TEMPERATURE (K)
RAINC          1  0  ACCUMULATED TOTAL CUMULUS PRECIPITATION (mm)
RAINSH         1  0  ACCUMULATED SHALLOW CUMULUS PRECIPITATION (mm)
RAINNC         1  0  ACCUMULATED TOTAL GRID SCALE PRECIPITATION (mm)
SNOWNC         1  0  ACCUMULATED TOTAL GRID SCALE SNOW AND ICE (mm)
GRAUPELNC      1  0  ACCUMULATED TOTAL GRID SCALE GRAUPEL (mm)
HAILNC         1  0  ACCUMULATED TOTAL GRID SCALE HAIL (mm)
REFL_10CM     19  0  Radar reflectivity (lamda = 10 cm) (dBZ)
CLDFRA        19  0  CLOUD FRACTION (-)
SWDOWN         1  0  DOWNWARD SHORT WAVE FLUX AT GROUND SURFACE (W m-2)
GLW            1  0  DOWNWARD LONG WAVE FLUX AT GROUND SURFACE (W m-2)
SWNORM         1  0  NORMAL SHORT WAVE FLUX AT GROUND SURFACE (SLOPE-DEPENDENT) (W m-2)
SWDDIR         1  0  Shortwave surface downward direct irradiance (W/m^2)
SWDDNI         1  0  Shortwave surface downward direct normal irradiance (W/m^2)
SWDDIF         1  0  Shortwave surface downward diffuse irradiance (W/m^2)
OLR            1  0  TOA OUTGOING LONG WAVE (W m-2)
ALBEDO         1  0  ALBEDO (-)
CLAT           1  0  COMPUTATIONAL GRID LATITUDE, SOUTH IS NEGATIVE (degree_north)
ALBBCK         1  0  BACKGROUND ALBEDO (-)
EMISS          1  0  SURFACE EMISSIVITY (-)
NOAHRES        1  0  RESIDUAL OF THE NOAH SURFACE ENERGY BUDGET (W m{-2})
FLX4           1  0  sensible heat from canopy (W m{-2})
FVB            1  0  fraction of vegetation with snow below (-)
FBUR           1  0  fraction of vegetation covered by snow (-)
FGSN           1  0  fraction of ground covered by snow (-)
TMN            1  0  SOIL TEMPERATURE AT LOWER BOUNDARY (K)
XLAND          1  0  LAND MASK (1 FOR LAND, 2 FOR WATER) (-)
UST            1  0  U* IN SIMILARITY THEORY (m s-1)
PBLH           1  0  PBL HEIGHT (m)
HFX            1  0  UPWARD HEAT FLUX AT THE SURFACE (W m-2)
QFX            1  0  UPWARD MOISTURE FLUX AT THE SURFACE (kg m-2 s-1)
LH             1  0  LATENT HEAT FLUX AT THE SURFACE (W m-2)
ACHFX          1  0  ACCUMULATED UPWARD HEAT FLUX AT THE SURFACE (J m-2)
ACLHF          1  0  ACCUMULATED UPWARD LATENT HEAT FLUX AT THE SURFACE (J m-2)
SNOWC          1  0  FLAG INDICATING SNOW COVERAGE (1 FOR SNOW COVER) (-)
SR             1  0  fraction of frozen precipitation (-)
LANDMASK       1  0  LAND MASK (1 FOR LAND, 0 FOR WATER) (-)
SST            1  0  SEA SURFACE TEMPERATURE (K)
pressure      19  0  Model pressure (hPa)
height        19  0  Model height (km)
tk            19  0  Temperature (K)
tc            19  0  Temperature (C)
ENDVARS
@ global String comment TITLE =  OUTPUT FROM WRF V3.5.1 MODEL
@ global String comment START_DATE = 2013-08-16_00:00:00
@ global String comment SIMULATION_START_DATE = 2013-08-16_00:00:00
@ global String comment WEST-EAST_GRID_DIMENSION =   232
@ global String comment SOUTH-NORTH_GRID_DIMENSION =   220
@ global String comment BOTTOM-TOP_GRID_DIMENSION =    30
@ global String comment DX =      3333.33
@ global String comment DY =      3333.33
@ global String comment STOCH_FORCE_OPT =     0
@ global String comment GRIDTYPE = C
@ global String comment DIFF_OPT =     1
@ global String comment KM_OPT =     4
@ global String comment DAMP_OPT =     0
@ global String comment DAMPCOEF =         0.20
@ global String comment KHDIF =         0.00
@ global String comment KVDIF =         0.00
@ global String comment MP_PHYSICS =     3
@ global String comment RA_LW_PHYSICS =     1
@ global String comment RA_SW_PHYSICS =     1
@ global String comment SF_SFCLAY_PHYSICS =     1
@ global String comment SF_SURFACE_PHYSICS =     2
@ global String comment BL_PBL_PHYSICS =     1
@ global String comment CU_PHYSICS =     0
@ global String comment SURFACE_INPUT_SOURCE =     1
@ global String comment SST_UPDATE =     0
@ global String comment GRID_FDDA =     0
@ global String comment GFDDA_INTERVAL_M =     0
@ global String comment GFDDA_END_H =     0
@ global String comment GRID_SFDDA =     0
@ global String comment SGFDDA_INTERVAL_M =     0
@ global String comment SGFDDA_END_H =     0
@ global String comment HYPSOMETRIC_OPT =     2
@ global String comment SF_URBAN_PHYSICS =     0
@ global String comment SHCU_PHYSICS =     0
@ global String comment MFSHCONV =     0
@ global String comment FEEDBACK =     1
@ global String comment SMOOTH_OPTION =     0
@ global String comment SWRAD_SCAT =         1.00
@ global String comment W_DAMPING =     0
@ global String comment DT =        20.00
@ global String comment RADT =        30.00
@ global String comment BLDT =         0.00
@ global String comment CUDT =         5.00
@ global String comment SWINT_OPT =     0
@ global String comment MOIST_ADV_OPT =     1
@ global String comment SCALAR_ADV_OPT =     1
@ global String comment TKE_ADV_OPT =     1
@ global String comment DIFF_6TH_OPT =     0
@ global String comment DIFF_6TH_FACTOR =         0.12
@ global String comment OBS_NUDGE_OPT =     0
@ global String comment BUCKET_MM =        -1.00
@ global String comment BUCKET_J =        -1.00
@ global String comment PREC_ACC_DT =         0.00
@ global String comment SF_OCEAN_PHYSICS =     0
@ global String comment ISFTCFLX =     0
@ global String comment ISHALLOW =     0
@ global String comment DFI_OPT =     0
@ global String comment WEST-EAST_PATCH_START_UNSTAG =     1
@ global String comment WEST-EAST_PATCH_END_UNSTAG =   231
@ global String comment WEST-EAST_PATCH_START_STAG =     1
@ global String comment WEST-EAST_PATCH_END_STAG =   232
@ global String comment SOUTH-NORTH_PATCH_START_UNSTAG =     1
@ global String comment SOUTH-NORTH_PATCH_END_UNSTAG =   219
@ global String comment SOUTH-NORTH_PATCH_START_STAG =     1
@ global String comment SOUTH-NORTH_PATCH_END_STAG =   220
@ global String comment BOTTOM-TOP_PATCH_START_UNSTAG =     1
@ global String comment BOTTOM-TOP_PATCH_END_UNSTAG =    29
@ global String comment BOTTOM-TOP_PATCH_START_STAG =     1
@ global String comment BOTTOM-TOP_PATCH_END_STAG =    30
@ global String comment GRID_ID =     3
@ global String comment PARENT_ID =     2
@ global String comment I_PARENT_START =    30
@ global String comment J_PARENT_START =    22
@ global String comment PARENT_GRID_RATIO =     3
@ global String comment CEN_LAT =        41.67
@ global String comment CEN_LON =       122.48
@ global String comment TRUELAT1 =        30.00
@ global String comment TRUELAT2 =        60.00
@ global String comment MOAD_CEN_LAT =        42.00
@ global String comment STAND_LON =       118.00
@ global String comment POLE_LAT =        90.00
@ global String comment POLE_LON =         0.00
@ global String comment GMT =         0.00
@ global String comment JULYR =  2013
@ global String comment JULDAY =   228
@ global String comment MAP_PROJ =     1
@ global String comment MAP_PROJ_CHAR = Lambert Conformal
@ global String comment MMINLU = USGS
@ global String comment NUM_LAND_CAT =    24
@ global String comment ISWATER =    16
@ global String comment ISLAKE =    -1
@ global String comment ISICE =    24
@ global String comment ISURBAN =     1
@ global String comment ISOILWATER =    14

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

新浪微博达人勋

 楼主| 发表于 2013-12-4 22:33:51 | 显示全部楼层
usa_Heights_Temperature_500.jpg

画图看看,崩溃啊
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2013-12-4 22:46:50 | 显示全部楼层
usa_Heights_Temperature_500.jpg


t=7,应该是8月16日当天北京时间15时,辽宁一场暴雨快要结束。

在这张图上,好象看到了碎雨云。
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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